Skip to content

Conversation

@Nugs
Copy link

@Nugs Nugs commented Feb 9, 2016

Unit tests and code fix for DATAREST-763.

Apologies I am unable to squash the commits at present as I'm working through the web UI due to access restrictions to gitHub.

This fix URL encodes/decodes entity ids to prevent the potential for invalid characters ending up in the URL. This is simply a case of encode/decode for all characters save for '/' which in its encoded form of %2F is not accepted by most webservers due to security issues (allowing for spurious modification of paths - partly what this change addresses from the DATAREST side!)

The proposed solution for this specific case is to double encode and decode the / --> %2F --> %252F which avoids this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

2 participants