Nicolas Raoul
Nicolas Raoul

Reputation: 60213

Most efficient way to rename a content stream with CMIS

Every CMIS document has:

(well except CMIS documents that have a null content stream)

Paragraph 2.1.4.3.3 of the CMIS 1.1 specification says that contentStreamFileName is NOT updatable.

So, when a CMIS client wants to rename myvideo.ogv to cinematon.ogv, how should it do?

Anything more efficient than downloading and re-uploading the same binary with a different name?
The binary can be several gigabytes.

Upvotes: 1

Views: 580

Answers (1)

Florian Müller
Florian Müller

Reputation: 3235

A generic CMIS client cannot rename a content stream without replacing the content (with the same content). There is no unified definition among repositories how the content stream filename is handled. That's why the property is read-only.

Some repositories allow changing the filename, but how is repository specific.

Upvotes: 1

Related Questions