Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined index: extension at /apps/files_versions/lib/Storage.php#466 #7967

Closed
rubrik opened this issue Jan 19, 2018 · 11 comments
Closed

Undefined index: extension at /apps/files_versions/lib/Storage.php#466 #7967

rubrik opened this issue Jan 19, 2018 · 11 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: versions needs info

Comments

@rubrik
Copy link

rubrik commented Jan 19, 2018

Just a heads up about an undefined extension error.

I was testing automated tagging and deleted a tagged text file at the time.

System setup in #7831 but with RC2

@juliushaertl juliushaertl added bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap feature: versions labels Jan 20, 2018
@juliushaertl
Copy link
Member

@schiessle

@MorrisJobke
Copy link
Member

@schiessle Ping

@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 29, 2018
@MorrisJobke
Copy link
Member

cc @nickvergessen

@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Aug 24, 2018
@MorrisJobke MorrisJobke removed this from the Nextcloud 14 milestone Aug 24, 2018
@nickvergessen
Copy link
Member

string(25) "pathinfo('path/test.txt')"
array(4) { ["dirname"]=> string(4) "path" ["basename"]=> string(8) "test.txt" ["extension"]=> string(3) "txt" ["filename"]=> string(4) "test" }

string(21) "pathinfo('path/test')"
array(3) { ["dirname"]=> string(4) "path" ["basename"]=> string(4) "test" ["filename"]=> string(4) "test" } 

So yes extension can be missing. But in the versions there should always be the timestamp.
Fighting the problem in Storage sounds like only hiding the real issue

@nickvergessen
Copy link
Member

cc @schiessle please have a look

@skjnldsv
Copy link
Member

Ping! :)

@szaimen
Copy link
Contributor

szaimen commented May 26, 2021

I'm closing this issue due to inactivity. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen.

@szaimen szaimen closed this as completed May 26, 2021
@solracsf
Copy link
Member

solracsf commented Jun 9, 2021

This still an issue in recent (20) versions.

@solracsf solracsf reopened this Jun 9, 2021
@solracsf solracsf changed the title Undefined index: extension at /var/www/nextcloud/apps/files_versions/lib/Storage.php#466 Undefined index: extension at /apps/files_versions/lib/Storage.php#466 Jun 9, 2021
@szaimen szaimen removed the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Jun 9, 2021
@szaimen szaimen added the 1. to develop Accepted and waiting to be taken care of label Jun 9, 2021
@juliushaertl
Copy link
Member

A full log message with one of the recent versions might be helpful and giving more hints on the root cause. @acsfer Could you maybe check if you can provide that?

@solracsf
Copy link
Member

@juliushaertl tell me if this helps:

{
  "reqId": "BWSFySiQhgROtREuoISE",
  "level": 3,
  "time": "2021-06-10T15:40:45+00:00",
  "remoteAddr": "77.159.197.226",
  "user": "benja",
  "app": "PHP",
  "method": "DELETE",
  "url": "/remote.php/dav/files/benja/Partage%20Service%20Technique/00%20-%20Pilotage/04%20-%20Factures",
  "message": {
    "Exception": "Error",
    "Message": "Undefined index: extension at /apps/files_versions/lib/Storage.php#465",
    "Code": 0,
    "Trace": [
      {
        "file": "/apps/files_versions/lib/Storage.php",
        "line": 465,
        "function": "onError",
        "class": "OC\\Log\\ErrorHandler",
        "type": "::",
        "args": [
          8,
          "Undefined index: extension",
          "/apps/files_versions/lib/Storage.php",
          465,
          {
            "0": "And 6 more entries, set log level to debug to see all entries",
            "uid": "GroupServiceTechnique",
            "filename": "04 - Factures",
            "userFullPath": "",
            "versions": [],
            "view": {
              "__class__": "OC\\Files\\View"
            }
          }
        ]
      },
      {
        "file": "/apps/files_versions/lib/Storage.php",
        "line": 250,
        "function": "getVersions",
        "class": "OCA\\Files_Versions\\Storage",
        "type": "::",
        "args": [
          "GroupServiceTechnique",
          "04 - Factures"
        ]
      },
      {
        "file": "/apps/files_versions/lib/Hooks.php",
        "line": 76,
        "function": "delete",
        "class": "OCA\\Files_Versions\\Storage",
        "type": "::",
        "args": [
          "/Partage Service Technique/00 - Pilotage/04 - Factures"
        ]
      },
      {
        "file": "/lib/private/legacy/OC_Hook.php",
        "line": 110,
        "function": "remove_hook",
        "class": "OCA\\Files_Versions\\Hooks",
        "type": "::",
        "args": [
          {
            "run": true,
            "path": "/Partage Service Technique/00 - Pilotage/04 - Factures"
          }
        ]
      },
      {
        "file": "/lib/private/Files/View.php",
        "line": 1280,
        "function": "emit",
        "class": "OC_Hook",
        "type": "::",
        "args": [
          "OC_Filesystem",
          "post_delete",
          {
            "run": true,
            "path": "/Partage Service Technique/00 - Pilotage/04 - Factures"
          }
        ]
      },
      {
        "file": "/lib/private/Files/View.php",
        "line": 1208,
        "function": "runHooks",
        "class": "OC\\Files\\View",
        "type": "->",
        "args": [
          [
            "delete"
          ],
          "/Partage Service Technique/00 - Pilotage/04 - Factures",
          true
        ]
      },
      {
        "file": "/lib/private/Files/View.php",
        "line": 350,
        "function": "basicOperation",
        "class": "OC\\Files\\View",
        "type": "->",
        "args": [
          "rmdir",
          "/Partage Service Technique/00 - Pilotage/04 - Factures",
          [
            "delete"
          ]
        ]
      },
      {
        "file": "/apps/dav/lib/Connector/Sabre/Directory.php",
        "line": 309,
        "function": "rmdir",
        "class": "OC\\Files\\View",
        "type": "->",
        "args": [
          "/Partage Service Technique/00 - Pilotage/04 - Factures"
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Tree.php",
        "line": 183,
        "function": "delete",
        "class": "OCA\\DAV\\Connector\\Sabre\\Directory",
        "type": "->",
        "args": []
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line": 295,
        "function": "delete",
        "class": "Sabre\\DAV\\Tree",
        "type": "->",
        "args": [
          "files/benja/Partage Service Technique/00 - Pilotage/04 - Factures"
        ]
      },
      {
        "file": "/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "httpDelete",
        "class": "Sabre\\DAV\\CorePlugin",
        "type": "->",
        "args": [
          {
            "__class__": "Sabre\\HTTP\\Request"
          },
          {
            "__class__": "Sabre\\HTTP\\Response"
          }
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 474,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          "method:DELETE",
          [
            {
              "__class__": "Sabre\\HTTP\\Request"
            },
            {
              "__class__": "Sabre\\HTTP\\Response"
            }
          ]
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 251,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": [
          {
            "__class__": "Sabre\\HTTP\\Request"
          },
          {
            "__class__": "Sabre\\HTTP\\Response"
          }
        ]
      },
      {
        "file": "/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 319,
        "function": "start",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "/apps/dav/lib/Server.php",
        "line": 320,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->",
        "args": []
      },
      {
        "file": "/remote.php",
        "line": 167,
        "args": [
          "/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/lib/private/Log/ErrorHandler.php",
    "Line": 91,
    "CustomMessage": "--"
  },
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0",
  "version": "19.0.12.0",
  "id": "60c23a192dd20"
}

@szaimen
Copy link
Contributor

szaimen commented Jan 9, 2023

Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!

@szaimen szaimen added needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap and removed 1. to develop Accepted and waiting to be taken care of labels Jan 9, 2023
@szaimen szaimen closed this as completed Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: versions needs info
Projects
None yet
Development

No branches or pull requests

8 participants