Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: base64-url encoded participantId in API controllers #272

Conversation

bscholtes1A
Copy link
Contributor

What this PR changes/adds

This PR changes behavior of the controllers to that the participantId passed in the request path segment is now assumed to be base64-url encoded.

Why it does that

Avoid collision when the actual participantId contains characters that should not be encoded when calling the APIs.

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Linked Issue(s)

Closes # <-- insert Issue number if one exists

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@bscholtes1A bscholtes1A added enhancement New feature or request breaking-change Will require manual intervention for version update labels Feb 12, 2024
@@ -16,6 +16,8 @@ dependencies {
testImplementation(testFixtures(project(":spi:identity-hub-spi")))
testImplementation(libs.nimbus.jwt)
testImplementation(libs.jakarta.rsApi)

testRuntimeOnly(project(":launcher"))
Copy link
Member

@paullatzelsperger paullatzelsperger Feb 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this on purpose? and if so, am I correct in assuming that this is to add a task dependency from :e2e-tests:api-tests -> :launcher, causing the latter to be compiled with the earlier?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my windows laptop, it does not work without that addition.

Copy link
Member

@paullatzelsperger paullatzelsperger Feb 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you tried executing compileJava and compileTestJava first? We really shouldn't have dependencies onto launcher modules....

@bscholtes1A bscholtes1A force-pushed the feat/participant_id_path_segment_base64url branch from 112cba2 to 9dd8602 Compare February 13, 2024 10:25
@bscholtes1A bscholtes1A merged commit 0be42d0 into eclipse-edc:main Feb 13, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Will require manual intervention for version update enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants