Skip to content

URLs need sanitization when creating resources #144

@hvarg

Description

@hvarg

When using the API to create files we can set an invalid URL as a new File.
e.g.:

POST {server}/users/{username}/{domain}/data/addDataForType
{
  "data_id": "http://example.org/this_url_\"is\"_invalid",
  "data_type": "SOME_VALID_FILE_TYPE"
}

The new files appear in the UI but with no name and gives error when clicking on them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions