keitaroinc / ckanext-cas

CAS (Central Authentication Service) client extension for CKAN
GNU Affero General Public License v3.0
4 stars 8 forks source link

URL encoding and CAS redirect #4

Open gsueur opened 6 years ago

gsueur commented 6 years ago

Hi,

It appears that the URL encoding is wrong when it is redirect to the CAS server. From a disconnected user, make a simple request in CKAN, with special characters, something like "vélo". This gives a redirect URL of https://publier.datasud.fr/signin?gateway=true&service=https://trouver.datasud.fr/cas/callback?next=/dataset?q%3Dv%25C3%25A9lo%26sort%3Dscore%2Bdesc%252C%2Bmetadata_modified%2Bdesc

CKAN retrieves an encoding string of https://trouver.datasud.fr/dataset?q=v%E9lo, I can't figure out if it comes from the cas plugin or mama-can itself...

Any clue ?

Thanks

polarp commented 6 years ago

Hi @gsueur, it seems that this issue is resolved with this PR. Can you confirm so I can close this issue?

Thanks