Skip to content

Conversation

@solracsf
Copy link
Member

@solracsf solracsf commented Aug 27, 2025

Summary

Actually it throws a OCP\\Files\\NotFoundException if folder is not created/found.

Fixes:

{
  "reqId": "GN8O3iRfYZrIzBWcTFQR",
  "level": 3,
  "time": "2025-08-27T15:03:14+02:00",
  "remoteAddr": "83.13.22.4",
  "user": "user",
  "app": "no app in context",
  "method": "MOVE",
  "url": "/remote.php/dav/files/user/2024",
  "message": "Exception thrown: OCP\\Files\\NotFoundException",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36",
  "version": "30.0.14.1",
  "exception": {
    "Exception": "OCP\\Files\\NotFoundException",
    "Message": "/user/files_versions",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php",
        "line": 141,
        "function": "get",
        "class": "OC\\Files\\Node\\Root",
        "type": "->",
        "args": [
          "/user/files_versions"
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/files_versions/lib/Versions/LegacyVersionsBackend.php",
        "line": 373,
        "function": "get",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->",
        "args": [
          "user/files_versions"
        ]
      },
...

Checklist

@solracsf solracsf requested a review from a team as a code owner August 27, 2025 20:07
@solracsf solracsf requested review from CarlSchwan, leftybournes and yemkareems and removed request for a team August 27, 2025 20:07
@solracsf solracsf added this to the Nextcloud 32 milestone Aug 27, 2025
@nextcloud-bot nextcloud-bot mentioned this pull request Aug 28, 2025
@CarlSchwan CarlSchwan enabled auto-merge August 28, 2025 08:17
@solracsf
Copy link
Member Author

/backport to stable31

@solracsf
Copy link
Member Author

/backport to stable30

@solracsf solracsf requested a review from artonge August 28, 2025 16:02
@solracsf solracsf force-pushed the createFilesVersionsFolder branch from 7926c47 to 4c3f002 Compare August 28, 2025 19:19
@solracsf solracsf force-pushed the createFilesVersionsFolder branch from 4c3f002 to c5fa862 Compare August 28, 2025 19:24
@solracsf solracsf requested a review from CarlSchwan August 28, 2025 19:25
@solracsf solracsf changed the title fix(files_versions): Create version folder if it doesn't exist fix(files_versions): Use helper function to get versions folder Aug 29, 2025
@CarlSchwan CarlSchwan merged commit 5a73733 into master Aug 29, 2025
198 checks passed
@CarlSchwan CarlSchwan deleted the createFilesVersionsFolder branch August 29, 2025 06:11
@nextcloud-bot nextcloud-bot mentioned this pull request Sep 2, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 33, Nextcloud 32 Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants