-
Notifications
You must be signed in to change notification settings - Fork 35
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
URL enconding of AID alias name in rest calls #233
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## development #233 +/- ##
===============================================
- Coverage 82.86% 82.85% -0.01%
===============================================
Files 46 47 +1
Lines 4190 4200 +10
Branches 1044 1046 +2
===============================================
+ Hits 3472 3480 +8
- Misses 689 691 +2
Partials 29 29 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! It would be nice with a unit test for the path encoding. Should be fairly straightforward in aiding.test.ts
added |
I believe the added test does not invoke the Should be something like this
|
You are right. I updated the code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Daniel Lenksjö <[email protected]>
@rodolfomiranda Should we merge this? |
Yes! |
* URL enconding of name in api call * prettier * content-lenght header not needed * add test * remove debris * fix test * pretty * Update test/app/aiding.test.ts
This PR fix issue #204 Handling of special characters and white spaces in alias names by adding a missing url encoding and the correct
content-length
calculation.Without changes in KERIA it will fix the spaces and some special characters such as @ and $, but not other special character such as the
ö
letter used in Swedish.In KERIA, it seems that Falcon modifies the
req.path
when passing it to the middleware that check signatures. Need further investigation.