Skip to content

Public share of filtered album is not working #3222

@juliusknorr

Description

@juliusknorr

Describe the bug
A public link of a album based on filters is not wokring

To Reproduce
Steps to reproduce the behavior:

  1. Create an album with a date filter (e.g last month)
  2. Share the album as a public link
Image

Expected behavior
The link works

Screenshots
If applicable, add screenshots to help explain your problem.

Nextcloud log

{
  "reqId": "aOqCF_ZsSNYytAiR6sgg6wAAcxQ",
  "level": 3,
  "time": "2025-10-11T16:13:11+00:00",
  "remoteAddr": "2001:16b8:ce57:3d00:6105:f710:cf5a:c7e6",
  "user": "--",
  "app": "no app in context",
  "method": "PROPFIND",
  "url": "/remote.php/dav/photospublic/Zy3QZDUijAYIF9eqINf8iYQyoEJmOuq1/",
  "message": "Uncaught exception",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:143.0) Gecko/20100101 Firefox/143.0",
  "version": "32.0.0.13",
  "exception": {
    "Exception": "Error",
    "Message": "Call to a member function getUid() on null",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/apps/photos/lib/Filters/FiltersManager.php",
        "line": 89,
        "function": "getUserConfig",
        "class": "OCA\\Photos\\Service\\UserConfigService",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/photos/lib/Filters/FiltersManager.php",
        "line": 64,
        "function": "getPhotosDefaultSearchConditions",
        "class": "OCA\\Photos\\Filters\\FiltersManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/photos/lib/Album/AlbumMapper.php",
        "line": 535,
        "function": "getFilesBasedOnFilters",
        "class": "OCA\\Photos\\Filters\\FiltersManager",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/photos/lib/Sabre/PublicRootCollection.php",
        "line": 69,
        "function": "getSharedAlbumsForCollaboratorWithFiles",
        "class": "OCA\\Photos\\Album\\AlbumMapper",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php",
        "line": 95,
        "function": "getChild",
        "class": "OCA\\Photos\\Sabre\\PublicRootCollection",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 971,
        "function": "getNodeForPath",
        "class": "Sabre\\DAV\\Tree",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1664,
        "function": "getPropertiesIteratorForPath",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1649,
        "function": "writeMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line": 346,
        "function": "generateMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "httpPropFind",
        "class": "Sabre\\DAV\\CorePlugin",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 472,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php",
        "line": 211,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/dav/lib/Server.php",
        "line": 424,
        "function": "start",
        "class": "OCA\\DAV\\Connector\\Sabre\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/dav/appinfo/v2/remote.php",
        "line": 22,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/remote.php",
        "line": 151,
        "args": [
          "/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/nextcloud/apps/photos/lib/Service/UserConfigService.php",
    "Line": 36,
    "message": "Uncaught exception",
    "exception": {},
    "CustomMessage": "Uncaught exception"
  }
}

Additional context
Nextcloud 32.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejection. This issue is pending approval.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions