Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

Avoid file creation with file already used #195

Open
Sergio-Muriel opened this issue Jan 12, 2016 · 2 comments
Open

Avoid file creation with file already used #195

Sergio-Muriel opened this issue Jan 12, 2016 · 2 comments
Labels

Comments

@Sergio-Muriel
Copy link

When making a request to POST /ds-api/data/
with:
{
docType: 'folder'
path: '',
name: 'my_folder'
}

It allows me to create a folder with the same name of a folder in my root directory (it shouldn't be allowed).

@poupotte
Copy link
Contributor

Actually, it should be application which checks if folder is duplicated or not.

@nono
Copy link
Member

nono commented Feb 1, 2016

Currently, the data-system lets the applications write whatever they want if they have the permission for that (related to the docType). And each app have to check to not create duplicate files or folders, or that a file is in an existing folder.

It's tedious, so I think on the long term, we should propose a Files API (probably as a part of the data-system) to implement the manipulation of files with high-level methods. This bug will probably stay in the idea box for some time, to let us mature this idea.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants