CMIS layer into an honest CMIS 1.1
This commit is contained in:
parent
ebace73761
commit
7855a8bfd0
13 changed files with 498 additions and 87 deletions
|
|
@ -534,7 +534,14 @@ class ServiceRuntime:
|
|||
expected = properties.pop("expected_current_version_id", payload.get("expected_current_version_id", None))
|
||||
for key, value in properties.items():
|
||||
if key.startswith("cmis:"):
|
||||
continue
|
||||
raise ValidationError(
|
||||
"Unsupported CMIS property update",
|
||||
details={
|
||||
"property": key,
|
||||
"operation": "updateProperties",
|
||||
"supported": ["kontextual:metadata:<key>"],
|
||||
},
|
||||
)
|
||||
self.asset_service().add_metadata_record(
|
||||
asset_id,
|
||||
MetadataRecord(key=_cmis_metadata_key(key), value=value, confirmed=bool(payload.get("confirmed", True))),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue