Bug 401389 - Using 'Replace' and 'Replace All' options result in 'Bad Request' error
Summary: Using 'Replace' and 'Replace All' options result in 'Bad Request' error
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Google (show other bugs)
Version: 5.9.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-25 08:43 UTC by Bast Bech
Modified: 2023-10-15 12:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Error (29.21 KB, image/png)
2018-11-25 08:43 UTC, Bast Bech
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bast Bech 2018-11-25 08:43:44 UTC
Created attachment 116496 [details]
Error

If uploading image files that were previously uploaded to a Google Album, the user is presented with an expected dialog with the message "A linked item already exists."  The 'Add as New' and 'Add all' options work fine, but when selecting 'Replace' or 'Replace All', the following error message appears:  

Error transferring https://picasaweb.google.com/data/media/api/user/111635581176234910848/albumid/6627647181286961185/photoid/6627650555585237618/6 - server replied: Bad Request


STEPS TO REPRODUCE
1. Select a couple of images in digiKam.
2. Select 'Export->Export to Google Photos/PicasaWeb'
3. Select an album.
4. Select 'Start Upload'.
5. Observe the images uploaded successfully to the Google Photos Album.
6. Close the dialog. 
7. Repeat Steps 2 through 4 using the same two images and the same album.
8. digiKam and Google Photos recognize the file being uploaded and the file existing in the album match and the user is presented with the message 'A linked item already exists.'
9. Select 'Replace All'.
10. Observe the error.


Error transferring https://picasaweb.google.com/data/media/api/user/111635581176234910848/albumid/6627647181286961185/photoid/6627650602783826146/7 - server replied: Bad Request


SOFTWARE/OS VERSIONS
Windows: Windows 10
Comment 1 Maik Qualmann 2018-11-25 10:43:03 UTC
Google has removed the update of images from the Picasa Web API, as it is also outdated, have been ported to the new Google Photo API in digiKam-6.0.0. But here, too, there is currently no way to update an uploaded image. See comments in the bug report.

Bug 376913
Bug 400187

Maik
Comment 2 caulier.gilles 2019-07-27 12:54:05 UTC
Please test with 6.2.0 pre-release bundles available here :

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier
Comment 3 caulier.gilles 2020-01-10 09:02:46 UTC
Git commit 9c3c4778c3e62b5c656ae88b48a59f13ad6932e8 by Gilles Caulier.
Committed on 10/01/2020 at 08:42.
Pushed by cgilles into branch 'master'.

QtWebKit under Windows provide now 3 binrary used in background as gateway when browser is used in client application.
Without these binaries, logging to cloud services cannot work as expected
Related: bug 386141

M  +9    -6    project/bundles/mxe/04-build-installer.sh

https://invent.kde.org/kde/digikam/commit/9c3c4778c3e62b5c656ae88b48a59f13ad6932e8
Comment 4 caulier.gilles 2022-01-09 22:27:50 UTC
Hi and happy new year,

Can you check if problem remain with digiKam 7.5.0 pre-release Windows installer available
here :

https://files.kde.org/digikam/

Thanks in advance

GilleS Caulier
Comment 5 caulier.gilles 2023-04-29 09:32:56 UTC
@Bast

digiKam 8.0.0 is out. This entry still valid with this release ?

Best regards

Gilles Caulier
Comment 6 caulier.gilles 2023-10-15 12:38:30 UTC
@Bast,


This problem still reproducible with the new digiKam 8.2.0 pre-release Windows
installer available at usual place:

https://files.kde.org/digikam/

This new bundle is based on last Qt framework 5.15.11 and KDE framework 5.110.

Thanks in advance

Gilles Caulier