Skip to content

Incorrect (extra) route for "save as" (WOPI PutRelativeFile / PUT_RELATIVE) file operation? #5614

@joshtrichards

Description

@joshtrichards

Should't PutRelativeFile / PUT_RELATIVE1 handling be via /wopi*/files/<fileId>? It's not supposed to be handled via the same route as PutFile / PUT2 from what I can tell:

#[FrontpageRoute(verb: 'POST', url: 'wopi/files/{fileId}/contents')]
public function putFile(
string $fileId,
#[\SensitiveParameter]
string $access_token,
): JSONResponse {
[$fileId, , ] = Helper::parseFileId($fileId);
$isPutRelative = ($this->request->getHeader('X-WOPI-Override') === 'PUT_RELATIVE');

https://sdk.collaboraonline.com/docs/How_to_integrate.html#connection-to-the-file-storage

Footnotes

  1. https://learn.microsoft.com/en-us/openspecs/office_protocols/ms-wopi/d12ab554-eab7-480f-bdc7-0bdf14922e6f

  2. https://learn.microsoft.com/en-us/openspecs/office_protocols/ms-wopi/42d0e5ae-074f-4d11-9d9b-706d843fad9c

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions