Whenever trying to share a photo album by public link such as this one https://something.nonya.com/apps/photos/public/r1B8mqA5p1zfTat17BJZ4lJm4gflTyLk
The actual album will load but the individual photos are still protected and cannot be loaded by the viewer or player without getting an error like this one.
It seems like a bug but it could also be intentional I suppose. I don’t know what a public link is good for though if it isn’t making photos available to the public via a viewer or download without credentials. Internal users would be shared to and use the collaborative albums menu item. This is Nextcloud 25.0.2and Hub 3.
1 Like
bb77
December 24, 2022, 7:35am
2
Hi @dittmanfamily
It’s a bug and it has already been reported on GitHub:
opened 05:09PM - 09 Dec 22 UTC
bug
0. Needs triage
**Describe the bug**
When I try to view an image of a public shared album, a di… alog box appears and I have to login with my account.
**To Reproduce**
Steps to reproduce the behavior:
1. Import some images to a folder of my Nextcloud account.
2. Launch the Photos app, view these images and ...
3. ... add these images to a newly created album.
4. Switch to the album view of this album, ...
5. ... open the sharing dialog (Add collaboratos),
6. ... click the button "Share via public link",
7. ... click the modified button "Copy public link", and
8. ... close the dialog using button "Save".
9. Open a second web browser that does not have a Nextcloud account logged in.
10. Paste the copied URL (clipboard) to the address bar, open the shared album, and view it.
11. Click on any of the images
**Expected behavior**
The image viewer should show this image.
**Screenshots**
Example, public link: https://cloud-test.fwidmann.net/apps/photos/public/7Z5wtC7ODReVOfxGTpcrFNfsnBZv1bzz
![grafik](https://user-images.githubusercontent.com/4623128/206751312-aa40aec0-9b6f-40dc-8cf9-062128837972.png)
**Server, Nextcloud**
- Docker image (nextcloud:25.0.2-apache) on a cloud server of IONOS
- NC 25.0.2
- Photos V2.0.1
**Nextcloud Protocol**
***Reloading the shared album***
<html><body>
Level | App | Message | Â | Time
-- | -- | -- | -- | --
Info | no app in context | IP address throttled because it reached the attempts limit in the last 30 minutes [action: publicphotos_webdav_auth, delay: 400, ip: 89.244.253.162] | Â | 2022-12-09T17:57:29+0100
</body>
</html>
***Other info message in the same context***
<html><body>
Level | App | Message | Â | Time
-- | -- | -- | -- | --
Info | core | Bruteforce attempt from "89.244.253.162" detected for action "publicphotos_webdav_auth". | Â | 2022-12-09T17:43:29+0100
</body>
</html>
**Desktop (please complete the following information):**
- OS: Win 10 Enterprise 21H2
- Browser: Firefox 107.0.1 (x64)
**Browser log**
```

7Z5wtC7ODReVOfxGTpcrFNfsnBZv1bzz:1 Refused to apply style from 'https://cloud-test.fwidmann.net/apps/photos/css/icons.css?v=47354877-7' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
index.es.js:2337 Proxying an event bus of version 2.1.1 with 1.3.0
jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 3.4.0
index.es.js:2337 Proxying an event bus of version 2.1.1 with 1.3.0
index.js:19 Proxying an event bus of version 2.1.1 with 3.0.0
globals.js:60 jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
globals.js:60 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ProxyBus.ts:11 Proxying an event bus of version 2.1.1 with 3.0.2
index.es.js:2337 Proxying an event bus of version 2.1.1 with 1.3.0
ConsoleLogger.js:60 [WARN] viewer: Some mimes were ignored because they are not enabled in the server previews config
{level: 0, app: 'viewer', ignoredMimes: Array(3)}
ConsoleLogger.js:56 [INFO] viewer: No OCA.Files app found, viewer is now in standalone mode
{level: 0, app: 'viewer'}
index.es.js:2337 Proxying an event bus of version 2.1.1 with 1.3.0
index.es.js:2337 Proxying an event bus of version 2.1.1 with 1.3.0
index.esm.js:11 Proxying an event bus of version 2.1.1 with 3.0.2
viewer.js:63 Uncaught TypeError: Cannot read properties of undefined (reading 'fileActions')
at viewer.js:63:13
at viewer.js:65:2
at viewer.js:65:2
index.js:19 Proxying an event bus of version 2.1.1 with 3.0.2
globals.js:60 oc_appswebroots is deprecated: use OC.appswebroots instead, this will be removed in Nextcloud 20
index.esm.js:11 Proxying an event bus of version 2.1.1 with 3.0.2
index.js:19 Proxying an event bus of version 2.1.1 with 3.0.2
index.esm.js:11 Proxying an event bus of version 2.1.1 with 3.0.2
ProxyBus.ts:16 Proxying an event bus of version 2.1.1 with 3.0.2
index.es.js:2337 Proxying an event bus of version 2.1.1 with 1.3.0
ProxyBus.ts:16 Proxying an event bus of version 2.1.1 with 3.0.2
globals.js:60 jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
globals.js:60 jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ConsoleLogger.js:56 [INFO] viewer: 6 viewer handlers registered
{level: 0, app: 'viewer', handlers: Array(6)}
globals.js:60 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
globals.js:60 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
globals.js:60 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
session-heartbeat.js:103 session heartbeat polling started
A bad HTTP response code (401) was received when fetching the script.
ConsoleLogger.js:64 [ERROR] photos: SW registration failed:
{level: 0, app: 'photos', error: TypeError: Failed to register a ServiceWorker for scope ('https://cloud-test.fwidmann.net/apps/phot…}
globals.js:60 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ConsoleLogger.js:56 [INFO] viewer: Opening viewer for fileInfo
{level: 0, app: 'viewer', fileInfo: {…}}
null:1
GET https://cloud-test.fwidmann.net/apps/files_sharing/publicpreview/null?file=…1bzz/179497-IMG_20220819_193936_DRO.jpg&fileId=179497&x=1280&y=1024&a=true 404
Images.vue:263 Loading of file preview 179497-IMG_20220819_193936_DRO.jpg failed, falling back to original file
null:1
GET https://cloud-test.fwidmann.net/apps/files_sharing/publicpreview/null?file=…nBZv1bzz/179498-IMG_20220819_194021.jpg&fileId=179498&x=1280&y=1024&a=true 404
Images.vue:263 Loading of file preview 179498-IMG_20220819_194021.jpg failed, falling back to original file
null:1
GET https://cloud-test.fwidmann.net/apps/files_sharing/publicpreview/null?file=…1bzz/179499-IMG_20220819_193943_DRO.jpg&fileId=179499&x=1280&y=1024&a=true 404
Images.vue:263 Loading of file preview 179499-IMG_20220819_193943_DRO.jpg failed, falling back to original file
179499-IMG_20220819_193943_DRO.jpg:1
GET https://cloud-test.fwidmann.net/remote.php/dav//photospublic/7Z5wtC7ODReVOfxGTpcrFNfsnBZv1bzz/179499-IMG_20220819_193943_DRO.jpg 401
179498-IMG_20220819_194021.jpg:1
GET https://cloud-test.fwidmann.net/remote.php/dav//photospublic/7Z5wtC7ODReVOfxGTpcrFNfsnBZv1bzz/179498-IMG_20220819_194021.jpg 401
179497-IMG_20220819_193936_DRO.jpg:1
GET https://cloud-test.fwidmann.net/remote.php/dav//photospublic/7Z5wtC7ODReVOfxGTpcrFNfsnBZv1bzz/179497-IMG_20220819_193936_DRO.jpg 401
Mime.js:135 Error loading /photospublic/7Z5wtC7ODReVOfxGTpcrFNfsnBZv1bzz/179499-IMG_20220819_193943_DRO.jpg
Event {isTrusted: true, type: 'error', target: img.viewer__file.viewer__file--active, currentTarget: img.viewer__file.viewer__file--active, eventPhase: 2, …}
Mime.js:135 Error loading /photospublic/7Z5wtC7ODReVOfxGTpcrFNfsnBZv1bzz/179498-IMG_20220819_194021.jpg
Event {isTrusted: true, type: 'error', target: img.viewer__file--hidden.viewer__file, currentTarget: img.viewer__file--hidden.viewer__file, eventPhase: 2, …}
Mime.js:135 Error loading /photospublic/7Z5wtC7ODReVOfxGTpcrFNfsnBZv1bzz/179497-IMG_20220819_193936_DRO.jpg
Event {isTrusted: true, type: 'error', target: img.viewer__file--hidden.viewer__file, currentTarget: img.viewer__file--hidden.viewer__file, eventPhase: 2, …}
```
**Additional context**
Add any other context about the problem here.
opened 06:08PM - 03 Nov 22 UTC
bug
0. Needs triage
**Describe the bug**
When clicking on a thumbnail in public album view, the ima… ge is not loaded, but an error message "Error loading ..." is displayed.
The console reveals that the app is trying to load something like
https://nextcloud.example.com/apps/files_sharing/publicpreview/null?file=/photospublic/G3gmrpTgqfRLI1GA6RRG1yoyLoIhGyVM/275392-myimage.jpg&fileId=275392&x=2560&y=1440&a=true
which returns a 404 error.
**To Reproduce**
Steps to reproduce the behavior:
1. Create an album
2. Create a public link
3. Open the link (in a fresh browser / incognito mode)
4. Click on a thumbnail
**Expected behavior**
The image should be displayed
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Server:**
- Nextcloud 25.0.1
2 Likes
Thank you so much! I came here looking for help on this specific issue, since I just installed Nextcloud with the intention of doing some photo sharing. I’ll go +1 those bugs.
You can also share the file folder. That may be not so nice but perhaps bypasses the problem.
It is still strange that no one has found this really serious error before the introduction of the app. As if you do not share photo albums also publicly. Or is it only a problem with Nextcloud 25.0.2?
The winning suggestion was to install the Memories app, which also has public link sharing. This was a life saver!
g-work
January 24, 2023, 9:25pm
6
The problem still existst in 25.0.3…
There seems to be a workaround for nginx:
opened 06:08PM - 03 Nov 22 UTC
bug
1. to develop
feature: albums
**Describe the bug**
When clicking on a thumbnail in public album view, the ima… ge is not loaded, but an error message "Error loading ..." is displayed.
The console reveals that the app is trying to load something like
https://nextcloud.example.com/apps/files_sharing/publicpreview/null?file=/photospublic/G3gmrpTgqfRLI1GA6RRG1yoyLoIhGyVM/275392-myimage.jpg&fileId=275392&x=2560&y=1440&a=true
which returns a 404 error.
**To Reproduce**
Steps to reproduce the behavior:
1. Create an album
2. Create a public link
3. Open the link (in a fresh browser / incognito mode)
4. Click on a thumbnail
**Expected behavior**
The image should be displayed
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Server:**
- Nextcloud 25.0.1
1 Like
nicrame
February 9, 2023, 11:12am
7
And it is still on NC 26 beta 2.
Yeah that work around didn’t help either even thought I am also using nginx.
This seems like a fairly serious bug. I’ve just installed nextcloud and cannot share any of my albums. That was sort of my primary use case. Any plans for a fix?
+1
Having the same problem. My error looks like:
devnull
February 26, 2023, 8:59am
11
Problem was solved with Nextcloud 25.0.4. Thanks.
Here a public share of an album.
overview (was not the problem):
single photo (this was the problem):