You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call /api/Sharing::List doesn't work for non admin user (it works fine for admin). Calls ends with rc 500. The log: [2020-11-09 09:55:20] production.ERROR: Undefined property: stdClass::$parent_id {"exception":"[object] (ErrorException(code: 0): Undefined property: stdClass::$parent_id at /var/www/html/Lychee/app/Models/Album.php:269)
[stacktrace]
#0 /var/www/html/Lychee/app/Models/Album.php(269): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 /var/www/html/Lychee/app/Http/Controllers/SharingController.php(78): App\Models\Album::getFullPath() #2 /var/www/html/Lychee/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(230): App\Http\Controllers\SharingController->App\Http\Controllers\{closure}() #3 /var/www/html/Lychee/app/Http/Controllers/SharingController.php(79): Illuminate\Support\Collection->each() #4 [internal function]: App\Http\Controllers\SharingController->listSharing().
Steps to reproduce the issue
Steps to reproduce the behavior:
Go to the main screen as a non-admin user
Create an album
Leave it private
Go to sharing and share the album to someone.
The previous step should fail
Click on 'Sharing' in the menu causes a 500 error from now on.
Output of the diagnostics [REQUIRED]
Diagnostics
-------
Warning: You may experience problems when uploading a photo of large size. Take a look in the FAQ for details.
Warning: Dropbox import not working. dropbox_key is empty.
I'm guessing it worked at some point... I'm sure I have tested album sharing between users in the past, although perhaps I always configured the sharing as admin?
Either way, I agree it's an issue due to our incomplete regression tests coverage...
I'm sure I have tested album sharing between users in the past
No, this was broken when the parent was added to differentiate multiple albums with the same name. But I don't remember if it was you or me who added that.
Detailed description of the problem [REQUIRED]
Call /api/Sharing::List doesn't work for non admin user (it works fine for admin). Calls ends with rc 500. The log: [2020-11-09 09:55:20] production.ERROR: Undefined property: stdClass::$parent_id {"exception":"[object] (ErrorException(code: 0): Undefined property: stdClass::$parent_id at /var/www/html/Lychee/app/Models/Album.php:269)
[stacktrace]
#0 /var/www/html/Lychee/app/Models/Album.php(269): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /var/www/html/Lychee/app/Http/Controllers/SharingController.php(78): App\Models\Album::getFullPath()
#2 /var/www/html/Lychee/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(230): App\Http\Controllers\SharingController->App\Http\Controllers\{closure}()
#3 /var/www/html/Lychee/app/Http/Controllers/SharingController.php(79): Illuminate\Support\Collection->each()
#4 [internal function]: App\Http\Controllers\SharingController->listSharing().
Steps to reproduce the issue
Steps to reproduce the behavior:
Output of the diagnostics [REQUIRED]
Diagnostics
-------
Warning: You may experience problems when uploading a photo of large size. Take a look in the FAQ for details.
Warning: Dropbox import not working. dropbox_key is empty.
Browser and system
Chromium: 86.0.4240.183 (64bit)
Windows 10
The text was updated successfully, but these errors were encountered: