Skip to content

Conversation

@meven
Copy link
Contributor

@meven meven commented Feb 9, 2026

If the LastModifiedTime field is missing from the put_file upload, we would set the lastModifiedTiem to an invalid "".

And output a warning if LastModifiedTime is not set as expected.

Change-Id: Ib2d789f1bedd1621744f989065924e78169c0fd9

  • Resolves: #
  • Target version: main

Summary

So that the log can help us detect wopi issues.

The warning might be excessive, LastModifiedTime could be considered optional.

But this causes timestamp comparison failure creating conflicts.

To help upholding https://sdk.collaboraonline.com/docs/advanced_integration.html#detecting-external-document-change

Like in https://gitlab.com/pleio/platform/-/merge_requests/769/diffs

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

If the LastModifiedTime field is missing from the put_file upload, we
would set the lastModifiedTiem to an invalid "".

And output a warning if LastModifiedTime is not set as expected.

Signed-off-by: Méven Car <[email protected]>
Change-Id: Ib2d789f1bedd1621744f989065924e78169c0fd9
LOG_TRC(wopiLog << " returns LastModifiedTime [" << lastModifiedTime << "].");
setLastModifiedTime(lastModifiedTime);
if (lastModifiedTime.empty()) {
LOG_WRN(wopiLog << " Missing LastModifiedTime from PutFile answer.");
Copy link
Contributor Author

@meven meven Feb 10, 2026

Choose a reason for hiding this comment

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

It could even be considered error/critical.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Review

Development

Successfully merging this pull request may close these issues.

1 participant