Skip to content

Viewer does not advance to next photo in a nested shared folder; works in user's space and in final shared folder #2976

@vrrigs

Description

@vrrigs

Describe the bug
Viewer does not advance to next photo in a nested shared folder; works in user's space and when sharing the folder with jpegs. If you share Parent/Child and preview the images in Child via that public shared link, the images do not advance. If you share the Child folder directly, then you can advance through the photos.

Previews successfully render but it is when one attempts to open a photo (which does render) and then advance do the error present themselves. Console logs indicate the error occurs when trying to load the photo.

Relevant errors in the log:

  • TypeError: can't access property "filename", h is undefined (on initial preview of image)
  • TypeError: can't access property "mime", e is undefined (on attempts to advance)

To Reproduce
Steps to reproduce the behavior:

  1. Create a nested folder (example: Parent/Child) where Child contains .jpegs
  2. Share the Parent folder using a public link
  3. Click to Child folder
  4. Click on a photo (the image displays, though the console log says the file can't open)
  5. Click arrow to advance photo (on mobile, swipe to advance photo)

Expected behavior
See the next photo in the folder.

Desktop (please complete the following information):

  • OS: macOS Sequoia 15.7 (24G222)
  • Browser: Firefox
  • Version: 143.0 (aarch64)

Nextcloud version
This Nextcloud is on version 31.0.9

Smartphone (please complete the following information):

  • Device: iPhone SE 2020
  • OS: iOS 26
  • Browser: Firefox
  • Version: 1422.1 (60552)

Browser log

[WARN] viewer: Some mimes were ignored because they are not enabled in the server previews config 
Object { app: "viewer", level: 2, ignoredMimes: (1) […] }
viewerAction-DKhLC1sE.chunk.mjs:5:366
OCA.Files.Settings initialized files-main.js:1:221624
#imgframe element not found whiteboard-main.mjs:3:2120
    error logger.ts:41
    M main.tsx:106
    (Async: EventListener.handleEvent)
    M main.tsx:103
    <anonymous> main.tsx:65
Source map error: No sources are declared in this source map.
Resource URL: https://nextcloud/apps/text/js/_plugin-vue2_normalizer-wd1ZAbRr.chunk.mjs
Source Map URL: _plugin-vue2_normalizer-wd1ZAbRr.chunk.mjs.map
[WARN] viewer: No files provided, skipping update 
Object { app: "viewer", level: 2 }
viewerAction-DKhLC1sE.chunk.mjs:5:366
File info for /05 - Guest Photos/DSC_5065.JPG fetched 
Object { filename: "/05 - Guest Photos/DSC_5065.JPG", basename: "DSC_5065.JPG", lastmod: "Tue, 01 Jan 1980 04:00:00 GMT", size: 5393434, type: "file", etag: "b3a23027aa7caa9740acc0bbbc3eff8f", mime: "image/jpeg", getcontentlength: 5393434, getcontenttype: "image/jpeg", getetag: '"b3a23027aa7caa9740acc0bbbc3eff8f"', … }
viewer-main.mjs:8:14277
Could not open file /05 - Guest Photos/DSC_5065.JPG TypeError: can't access property "filename", h is undefined
    currentIndex Viewer.vue:800
    openFileInfo Viewer.vue:800
    openFile Viewer.vue:670
    file Viewer.vue:460
    VueJS 11
    open Viewer.js:313
    Rw viewerAction.ts:82
    execDefaultAction FileEntryMixin.ts:296
    click FileEntry.vue:5
    VueJS 33
viewer-main.mjs:8:14611
TypeError: can't access property "mime", e is undefined
    openFileFromList Viewer.vue:818
    next Viewer.vue:1085
    VueJS 4
    next NcModal.mjs:431
    VueJS 3
viewerAction-DKhLC1sE.chunk.mjs:2:28697

Additional info:
I tried with both the child folder name containing whitespace and not containing whitespace. It did not appear to have an impact on this issue.

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