openknowledge-archive / dpm-py

DEPRECATED Data package manager written in Python
http://frictionlessdata.io/tools/
MIT License
8 stars 6 forks source link

Double-dots in resource paths should be prohibited. #70

Open Fak3 opened 7 years ago

Fak3 commented 7 years ago

We should keep and restrict all the data for any datapackage under the corresponding bitstore key (dir), in the subkeys (subdirs/files). So that malicious or careless user, uploading a datapackage resource will not ever overwrite any other datapackage's data or metadata. To achieve that we should forbid resource paths to refer to parent-directory with double-dots../. On the client it could be checked during the datapackage validation.

See also the same server side restriction: https://github.com/frictionlessdata/dpr-api/issues/189