OCHA-DAP / hdx-ckan

A repo for HDX's configurations and extensions to CKAN
Other
75 stars 24 forks source link

API: creating a filestore resource with accented characters in file name fails #3697

Open cjhendrix opened 9 years ago

cjhendrix commented 9 years ago

See issue https://github.com/OCHA-DAP/cod-migration/issues/83 for more details.

The actual file that is failing can be downloaded from https://www.humanitarianresponse.info/sites/www.humanitarianresponse.info/files/datasets/Camps_R%C3%A9fugi%C3%A9s_2.zip

teodorescuserban commented 9 years ago

After @danmihaila and @alexandru-m-g hacked at it a bit, the following conclusion can be made: when creating from api, the filename of the uploaded resource must NOT have funny characters.

This is solved in UI by converting funny chars to standard ones (Camps_Réfugiés_2.zip to Camps_Refugies_2.zip).

It is still to be determined what exactly in ckan does this conversion and why it doesn't do it for api calls as well.

tagging @cjhendrix

cjhendrix commented 9 years ago

I think we can drop the high priority on this one. It's not a big problem for the migration. But we can keep it in the backlog as something to look at when we have time.