-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Cannot add photo to album (Call to undefined method OCA\Photos\Sabre\Album\AlbumRoot::getPath
)
#1558
Comments
I somehow cannot reproduce this with |
With nextcloud 25.0.3 it adds without this patch, but error appeared in top right corner that it failed to add photo. |
I indeed cannot add a photo to an album if the photo is shared with me. I also get the 'Failed to add...' message in the top right corner. |
I see the same thing, and it's even more amusing because it happens when I upload a photo to a directory shared with me, and then try to add that photo to an album. I don't see any errors in the logs, just a failed message in the corner. |
Can anyone experiencing this provide the log entry (i.e. the full stack trace) from their |
Here are my entries from
Line 6 seems to hold a clue: As a user I would expect all photos that I can select from the 'Add photos to this album' popup picker to be addable to the album. Given that shared photos are shown in the picker I should be able to add them to the album. |
I still have this issue. Pictures from shared folders can't be added to shared albums. |
The error/issue is there: photos/lib/Sabre/Album/AlbumRoot.php Line 167 in 4c7c00e
But I guess there is a reason why we can not do it ... |
This behavior makes sense in many cases, however there are other use cases in which adding a picture to an album should be possible even though the picture was shared with the user adding it. For example Alice shares a folder and an Album with Bob, Bob should then be allowed to add Alice's pictures to Alice's album. |
Hi all, I have two user on my nexcloud 1=boss 2=employee. All pictures are uploaded by boss and the folder is shared with employee. Boss creates now an album and shared this with employee. Employee can display this album and can remove pictures but he can not add pictures even if they are uploaded by himselfe. For me this is a cleare bug and stops me to use nextcloud with multiple users. So please - can someone provide a fix for that? I also tried the app groupfolder but this is not really working with memories |
Same problem here, on 15 differents nextclouds. |
I also have the same issue. To me this is also clearly a bug and really limits my usability of nextcloud. Maybe it comes from the issue what to do with the album, if sharing is ended. But to me it should maybe just be a show list of files not accessible anymore, once the permission is revoked. |
I have the same issue. I also tried to create a group as admin and share a folder with this group. No one in the group can use photos from this folder then. I would expect the same behavior when the share is revoked as if they were deleted: placeholder thumbs. Steps to reproduce:
Or Bob can create an album an add Anna as collaborator, same result. |
Same problem here, with the "photo" application or the "memories" one. I can't share a folder and an album with my wife where we could choose which picture we want to show in this album :( |
wow .. it is now such a long time ago where a lot of people report this bug and nothing happend. |
The OP in this thread stated this is the error: Most of you sound like you're not experiencing that, but #2095. So please make sure you're looking at the correct issue. @HolgerDoerrschuck You're welcome to jump in, diagnose the root cause, and submit a bug fix in a PR. |
Call to undefined method OCA\Photos\Sabre\Album\AlbumRoot::getPath
)
To Reproduce
Expected behavior
Added photo
Desktop (please complete the following information):
Was able to fix it by adding following function to https://github.com/nextcloud/photos/blob/master/lib/Sabre/Album/AlbumRoot.php
Not sure if it is correct solution but photo was added somehow.
The text was updated successfully, but these errors were encountered: