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
Metadata must be set a editable for PROPPATCH #41390
Conversation
* Disable modification of the displayname property for files and | ||
* folders via PROPPATCH. See PROPFIND for more information. | ||
*/ | ||
$propPatch->handle(self::DISPLAYNAME_PROPERTYNAME, function ($displayName) { |
Check notice
Code scanning / Psalm
MissingClosureParamType Note
8235cdc
to
9cac531
Compare
9cac531
to
76b44a5
Compare
cypress error not related |
1ebc2e1
to
e25ebe6
Compare
11395c9
to
8e4f8e9
Compare
cypress error does not seems related |
edd8494
to
b9f5552
Compare
61a26fc
to
a460d61
Compare
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
a460d61
to
847c687
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small improvements needed on phpdoc for the EDIT_* enum
* @param string $key metadata key | ||
* | ||
* @inheritDoc | ||
* @return int edit permission |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @return int edit permission | |
* @return IMetadataValueWrapper::EDIT_* edit permission level |
@@ -133,7 +134,20 @@ public function getKnownMetadata(): IFilesMetadata; | |||
* @param string $key metadata key | |||
* @param string $type metadata type | |||
* @param bool $indexed TRUE if metadata can be search | |||
* @param int $editPermission remote edit permission via Webdav PROPPATCH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param int $editPermission remote edit permission via Webdav PROPPATCH | |
* @param IMetadataValueWrapper::EDIT_* $editPermission remote edit permission level via Webdav PROPPATCH |
* (Webdav PROPPATCH) | ||
* | ||
* @param string $key metadata key | ||
* @param int $permission remote edit permission |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param int $permission remote edit permission | |
* @param IMetadataValueWrapper::EDIT_* $permission remote edit permission level |
* | ||
* @param string $key metadata key | ||
* | ||
* @return int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @return int | |
* @return IMetadataValueWrapper::EDIT_* edit permission level |
* set remote edit permission | ||
* (Webdav PROPPATCH) | ||
* | ||
* @param int $permission edit permission |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param int $permission edit permission | |
* @param IMetadataValueWrapper::EDIT_* $permission edit permission level |
* get remote edit permission | ||
* (Webdav PROPPATCH) | ||
* | ||
* @return int edit permission |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @return int edit permission | |
* @return IMetadataValueWrapper::EDIT_* edit permission level |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let me do this on a separated PR, post merge
With the implementation of metadata and its compatibility with webdav PROPPATCH request, and to avoid unexpected behavior, 2 things needs to be implemented:
throws exception on fail, might be better to just log a warning but keep the process running ?