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

Fix unset xattr on darwin #2260

Merged
merged 3 commits into from
Nov 12, 2021
Merged

Fix unset xattr on darwin #2260

merged 3 commits into from
Nov 12, 2021

Conversation

micbar
Copy link
Member

@micbar micbar commented Nov 10, 2021

2 Bugfixes

Empty Xattr for quota was creating error logs only on darwin

ENODATA error code is ENOATTR on darwin

Before

{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}
{"level":"error","service":"storage","pkg":"rgrpc","error":"xattr.get /Users/mbarz/.ocis/storage/metadata/nodes/root user.ocis.quota: attribute not found","nodepath":"/Users/mbarz/.ocis/storage/metadata/nodes/root","time":"2021-11-10T22:02:26+01:00","message":"could not read quota"}

2 Propfind with invalid depth did not return a body

@micbar micbar requested review from C0rby and refs November 10, 2021 21:05
@micbar micbar marked this pull request as ready for review November 10, 2021 21:05
@micbar micbar requested review from ishank011, labkode and a team as code owners November 10, 2021 21:05
@micbar
Copy link
Member Author

micbar commented Nov 10, 2021

@C0rby can you confirm and test on linux?

@C0rby
Copy link
Contributor

C0rby commented Nov 11, 2021

@micbar how can I test this? Do you have an example request?

@micbar
Copy link
Member Author

micbar commented Nov 11, 2021

@micbar how can I test this? Do you have an example request?

The errors did happen during startup.

So a simple startup of ocis should be sufficient.

@micbar micbar requested a review from dragotin November 11, 2021 08:47
@C0rby
Copy link
Contributor

C0rby commented Nov 11, 2021

I don't see any errors during startup on linux. 👍

Copy link
Member

@refs refs left a comment

Choose a reason for hiding this comment

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

small confusion

dragotin
dragotin previously approved these changes Nov 11, 2021
Copy link
Contributor

@dragotin dragotin left a comment

Choose a reason for hiding this comment

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

Approval from my side whatsoever ;-)

Copy link
Contributor

@C0rby C0rby left a comment

Choose a reason for hiding this comment

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

LGTM

@micbar micbar merged commit 17606d3 into cs3org:master Nov 12, 2021
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.

5 participants