Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Riva overwrite content directory #1032

Open
JarCz opened this issue Jul 30, 2020 · 3 comments · Fixed by #1038 or #1140
Open

Riva overwrite content directory #1032

JarCz opened this issue Jul 30, 2020 · 3 comments · Fixed by #1038 or #1140
Assignees

Comments

@JarCz
Copy link
Contributor

JarCz commented Jul 30, 2020

If I'm upload file to root path "/" Reva overwrite user content directory with single file. User lost all data.

Steps to reproduce:

cd reva/cmd/reva
echo "Test" >test.txt
./reva --insecure login basic
./reva --insecure upload test.txt /

after this operation directory "/var/tmp/reva/data" has only file "einstein", not directory "einstein"

@labkode
Copy link
Member

labkode commented Jul 30, 2020

@JarCz thanks for reporting this. We'll look into it.

@glpatcern
Copy link
Member

Still seen today testing federated shares, reproduced on a local folder.

@glpatcern
Copy link
Member

@ishank011 had actually reverted the fix, because it breaks the sync clients (one needs to be able to upload a file to a folder, not within it, from a sync client perspective).
The solution is discussed at sciencemesh/sciencemesh#108 (comment) and it is to change the reva CLI only, not the server side.

@glpatcern glpatcern reopened this Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants