-
Notifications
You must be signed in to change notification settings - Fork 395
URI Parameter Encoding #10043
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
URI Parameter Encoding #10043
Conversation
c2067a1 to
3b1f96a
Compare
|
Sorry, there were unneeded changes and I had to rebase this. I ran into the same issue now, when working on #9516 . |
thibsy
left a comment
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.
Hi @kergomard,
I went another way to address this, see https://mantis.ilias.de/view.php?id=45677.
However, I think for 12 we can still use the fix you propose for the data component. If you would discard all other changes I would be willing to shepherd here (since no one is responsible atm).
Thx still for your proposal!
Kind regards,
@thibsy
3b1f96a to
ec262f2
Compare
thibsy
left a comment
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.
Hi @kergomard,
Thx for updating the PR. The pipelines are failing due to ilCtrl targets passed along to data URI's. This should be resolved once you rebase onto latest trunk, since I changed the delimiter there.
A minor addition I would ask for:
- Unit test: please implement some unit test(s) for the removed characters.
Kind regards,
@thibsy
ec262f2 to
b0ba202
Compare
|
Hi @thibsy You were too quick for me as I had to run: I fixed them all and added an additional test. Best, |
thibsy
left a comment
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.
Hi @kergomard
Good catch! LGTM now, I approve the changes to UI as coordinator and the changes to data as shepherd. Maybe @mjansenDatabay wants to check the legal documents.
Kind regards,
@thibsy
|
The "LegalDocuments" changes LGTM, thanks a lot. |
|
Argghhh, this breaks the "Support Contact" feature in the ILIAS footer, which seems to be provided as an email address (at least in my local inst. this is set to |
|
@mjansenDatabay oh, good catch. I assume the |
Yes, @lscharmer will provide a PR for this. |
|
Ok this PR is actually fine, the issue is that it was already broken ^^. See PR #10748 this will fix the issue: #10043 (comment) when picked to trunk. |
Hi @thibsy and @klees
This is a PR to start a discussion about fixing:
In a first discussion with @thibsy we came to the conclusion that it was wrong, that URI treated the uri-string passed through the constructor differently then when adding a parameter through
URI::withParameter<s>(). I believe now, that I was wrong: These two cases should be treated differently as they are different.From where I stand the problem is, that we do accept ':' and '@' in query parameters probably for legacy reasons.
I thus suggest to remove the exception for ':' in trunk. As I personally also think the exception for '@', but am not sure we want to tackle this right now, I remove this in a separate commit.
There are four commits here:
ilCtrlto work with encoded ":" (0a860ef).Thank you very much and best,
@kergomard
PS: I will fix the failing test and add corresponding additional tests, as soon as we know what way we want to take.