Replies: 1 comment
-
That needs to be fixed indeed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Lychee version
v6.0.1
Which PHP version are you using?
PHP 8.2
Detailed description of the problem
This bug is regarding use of the "Download" function, found in the Lychee context menu:
The Download function is available to logged in users with permission to albums, or to public anonymous users IF the root album has "Downloadable" enabled.
If an attempt is made to use the context menu to download a single album's photo, the Zip function is invoked on the ID of the photo. However, it appears that the photo ID is being passed as an album, instead of as a photo ID.
Ex.
Go to: https://photos . nabein . me/gallery/joseX_QxkSFa-KTE4DtLy5aC
Right click an image
Select Download
API call made is: api/v2/Zip?album_ids=q5MYBmAuLNJ61S5X_Qgqs9Ae
Proper API call should be: api/v2/Zip?photo_ids=q5MYBmAuLNJ61S5X_Qgqs9Ae&variant=$variant
(where $variant reflects selected option)
Error generated with present API call to album_ids:
Full error output:
Steps to reproduce the issue
Go to: https://photos . nabein . me/gallery/joseX_QxkSFa-KTE4DtLy5aC
Right click an image
Select Download
API call made is: api/v2/Zip?album_ids=q5MYBmAuLNJ61S5X_Qgqs9Ae
Proper API call should be: api/v2/Zip?photo_ids=q5MYBmAuLNJ61S5X_Qgqs9Ae&variant=$variant
(where $variant reflects selected option)
Diagnostics [REQUIRED]
Browser & System [REQUIRED]
IceCat 115.16.1esr (64-bit) (Firefox ESR)
Firefox 131.0.2 (64-bit)
Librewolf 131.0.2-1
Linux 6.6.56-1-lts #1 SMP PREEMPT_DYNAMIC Thu, 10 Oct 2024 12:04:53 +0000 x86_64 GNU/Linux
Arch Linux
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions