Closed AcckiyGerman closed 6 years ago
FIXED: https://github.com/datahq/data-cli/issues/265#issuecomment-366716624 Fix works only on testing server ATM
@zelima could you update the production specstore with your "return errors" fix https://github.com/datahq/specstore/commit/fde06cdbbc223b7f33dcae7d4787af439383ea33 and I will close the issue.
@AcckiyGerman updated
TESTED & FIXED
invalid-backward-path$ data push
> Error! Unexpected error: Local path "../../files/csv/separators/comma.csv" is not safe
As a user I want to see a readable error when I push the data, so I could fix my dataset. But now, when I push a dataset with invalid
resources.path
I've got> Error! [object Promise]
if I have../
in the path ORdata-cli
, dataset is pushed and then I haveNot Found for url:
error on the frontend.How to reproduce
Push datasets with following errors in the
datapackage.json
(use https://github.com/frictionlessdata/test-data/packages/ ...invalid packages):../
in theresource.path
Expected behavior
data push dp.json
with../
in theresources.path
the path of <name> resource is invalid
ORusing backwards "../" in the path is prohibited due to security reasons
the path of <name> resource is invalid
ORfile not found on path <path>
Related issues: