[MGNLREST-305] Brackets In Filtered Rest Calls Do Not Work Created: 04/May/21 Updated: 05/May/21 Resolved: 05/May/21 |
|
| Status: | Closed |
| Project: | Magnolia REST Framework |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Julian Nodarse | Assignee: | Unassigned |
| Resolution: | Not an issue | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Template: |
|
||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||||||
| Date of First Response: | |||||||||||||||||
| Description |
|
The following error comes up when trying to use a rest call with brackets:
java.lang.IllegalArgumentException: Invalid character found in the request target [/.rest/delivery/tours/v2/?@name[eq]=kyoto]. The valid characters are defined in RFC 7230 and RFC 3986
Here is an example of the rest call I used : You can do this with any filtered rest call with brackets on the demo. |
| Comments |
| Comment by Mikaël Geljić [ 05/May/21 ] |
|
One must configure the relaxedQueryChars="[]|" on the HTTP Connector in server.xml, this is documented here => https://docs.magnolia-cms.com/product-docs/Upgrading-to-Magnolia.html#_apache_tomcat, and should probably be mentioned in other places too. Filing a docu ticket. |