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

ocis driver: access shares, trash, revisions, metadata #1155

Merged
merged 30 commits into from
Sep 11, 2020

Conversation

butonic
Copy link
Contributor

@butonic butonic commented Sep 9, 2020

continuation of #559

Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sharing code commit looks fine so far, see a few comments

pkg/storage/fs/ocis/ocis.go Outdated Show resolved Hide resolved
pkg/storage/fs/ocis/ocis.go Show resolved Hide resolved
pkg/storage/fs/ocis/ocis.go Outdated Show resolved Hide resolved
pkg/storage/fs/ocis/path.go Outdated Show resolved Hide resolved
pkg/storage/fs/ocis/path.go Show resolved Hide resolved
pkg/storage/fs/ocis/tree.go Outdated Show resolved Hide resolved
return
}
for err == nil && node.ID != root.ID { // TODO propagate up to where?
if err := xattr.Set(filepath.Join(t.pw.Root, "nodes", node.ID), "user.ocis.etag", []byte(etag)); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using the same etag value for all parent members ?

pkg/storage/fs/ocis/ocis.go Show resolved Hide resolved
pkg/storage/fs/ocis/ocis.go Show resolved Hide resolved
pkg/storage/fs/ocis/path.go Outdated Show resolved Hide resolved
@PVince81
Copy link
Contributor

👍 for the latest refactorings based on my comments.

please check the linter

@PVince81 PVince81 mentioned this pull request Sep 10, 2020
3 tasks
@butonic butonic changed the title [WIP] ocis driver: access shares [WIP] ocis driver: access shares, trash Sep 10, 2020
PVince81
PVince81 previously approved these changes Sep 10, 2020
Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me except for the attr name, feel free to change

pkg/storage/fs/ocis/ocis.go Outdated Show resolved Hide resolved
pkg/storage/fs/ocis/recycle.go Show resolved Hide resolved
@butonic
Copy link
Contributor Author

butonic commented Sep 10, 2020

-> running `props':
 0. init.................. pass
 1. begin................. pass
 2. propfind_invalid...... pass
 3. propfind_invalid2..... pass
 4. propfind_d0........... pass
 5. propinit.............. pass
 6. propset............... pass
 7. propget............... pass
 8. propextended.......... pass
 9. propmove.............. pass
10. propget............... pass
11. propdeletes........... pass
12. propget............... pass
13. propreplace........... FAIL (PROPPATCH on `/remote.php/dav/files/4c510ada-c86b-4815-8820-42cdf82c3d51/litmus/prop2': 500 Internal Server Error)
14. propget............... FAIL (Property {http://example.com/neon/litmus/}prop9 had value value9, expected newvalue9)
15. propnullns............ pass
16. propget............... pass
17. propremoveset......... FAIL (PROPPATCH remove then set)
18. propget............... FAIL (No value given for property {http://example.com/neon/litmus/}removeset)
19. propsetremove......... pass
20. propget............... pass
21. propvalnspace......... pass
22. propwformed........... pass
23. propinit.............. pass
24. propmanyns............ pass
25. propget............... pass
26. propcleanup........... pass
27. finish................ pass
<- summary for `props': of 28 tests run: 24 passed, 4 failed. 85.7%

PVince81
PVince81 previously approved these changes Sep 11, 2020
Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest commits for trash, restore version and download versions look fine

@butonic butonic changed the title [WIP] ocis driver: access shares, trash ocis driver: access shares, trash Sep 11, 2020
@butonic butonic changed the title ocis driver: access shares, trash ocis driver: access shares, trash, revisions, metadata Sep 11, 2020
@butonic butonic mentioned this pull request Sep 11, 2020
14 tasks
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
@SamuAlfageme SamuAlfageme merged commit 51649e3 into cs3org:master Sep 11, 2020
SamuAlfageme pushed a commit to SamuAlfageme/reva that referenced this pull request Sep 15, 2020
* initial version

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* introduce NodeInfo

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix metadata normalization

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* stick to github.com/google/uuid

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* simpler layout, parentid and name as ext attr

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* manually adding mimetypes is no longer needed

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* rename Wrap to NodeFrom*

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* refactor node implementation

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix delete and overwrite

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* initial sharing, store owner as ext attr, fix NewNode

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* separate files for metadada, revisions and recycle

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* list revisions

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* refactor and use ACE package

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* refactor node api

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* add license headers

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* add changelog

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* remove duplicate docs (moved to ace.go)

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* make linter happy

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* ocis: access shares

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* refactorings

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix upload

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* implement commit trash

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* implement RestoreRecycleItem

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* complete trash

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* address trash review

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* restore revision

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* download revision

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix litmus 409me

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* set and unset metadata

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* read metadata

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
SamuAlfageme pushed a commit to SamuAlfageme/reva that referenced this pull request Sep 23, 2020
* initial version

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* introduce NodeInfo

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix metadata normalization

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* stick to github.com/google/uuid

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* simpler layout, parentid and name as ext attr

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* manually adding mimetypes is no longer needed

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* rename Wrap to NodeFrom*

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* refactor node implementation

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix delete and overwrite

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* initial sharing, store owner as ext attr, fix NewNode

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* separate files for metadada, revisions and recycle

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* list revisions

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* refactor and use ACE package

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* refactor node api

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* add license headers

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* add changelog

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* remove duplicate docs (moved to ace.go)

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* make linter happy

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* ocis: access shares

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* refactorings

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix upload

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* implement commit trash

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* implement RestoreRecycleItem

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* complete trash

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* address trash review

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* restore revision

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* download revision

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix litmus 409me

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* set and unset metadata

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* read metadata

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants