Bug 400187 - Export to google photo in an existing album: bad request
Summary: Export to google photo in an existing album: bad request
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Google (show other bugs)
Version: 6.2.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-23 09:01 UTC by Dav
Modified: 2023-07-22 11:13 UTC (History)
8 users (show)

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


Attachments
Screenshot of the error displayed (140.59 KB, image/png)
2018-10-23 09:01 UTC, Dav
Details
Screenshot showing failure with newly created album (62.87 KB, image/png)
2019-04-12 07:25 UTC, jon33040
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dav 2018-10-23 09:01:13 UTC
Created attachment 115847 [details]
Screenshot of the error displayed

SUMMARY

Hi there, I'm not able to export my pictures to google photos in an existing folder: each time I'll get a bad request error.
The only way I have to export on google photos is to choose the folder "auto-create" option.

STEPS TO REPRODUCE
1. Connect to google photos
2. Create a folder (not a shareable one) named testXX
3. Add one picture in this album
4. From digikam, select pictures to export (RAW, JPEG)
5. Export them to google photo with folder testXX, no others options checked.
6. See that at the end of the export process, the attached screenshot appear

OBSERVED RESULT

See screenshot

Additionally, in debug mode, I get:
reply error :  QNetworkReply::NetworkError(ProtocolInvalidOperationError)  -  "Error transferring https://photoslibrary.googleapis.com/v1/mediaItems:batchCreate - server replied: Bad Request"

EXPECTED RESULT

No errors.

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2018-10-24 20:00:10 UTC
Git commit dda0dddf7e0f635419bdce03794d5ae21ae79a1d by Maik Qualmann.
Committed on 24/10/2018 at 19:58.
Pushed by mqualmann into branch 'master'.

show locked folder icon if digiKam does not have write access to the album

M  +1    -0    core/utilities/assistants/webservices/google/gphoto/gptalker.cpp
M  +5    -5    core/utilities/assistants/webservices/google/gsitem.h
M  +13   -13   core/utilities/assistants/webservices/google/gswindow.cpp

https://commits.kde.org/digikam/dda0dddf7e0f635419bdce03794d5ae21ae79a1d
Comment 2 Maik Qualmann 2018-10-24 20:23:35 UTC
That we only have access to albums at the moment that have been created by digiKam and not on other albums is a Google bug:

https://issuetracker.google.com/issues/79497397

Maik
Comment 3 Maik Qualmann 2018-10-24 20:27:42 UTC
And the feature request:

https://issuetracker.google.com/issues/110692941

Maik
Comment 4 Dav 2018-10-25 20:12:21 UTC
Hello Maik,

Ok I understand.
Can we imagine having listed only the digikam albums were we can upload pictures?
Or having a more explicit error message?

Regards
Comment 5 Maik Qualmann 2019-02-28 12:58:01 UTC
*** Bug 404900 has been marked as a duplicate of this bug. ***
Comment 6 Philippe ROUBACH 2019-03-01 13:00:37 UTC
(In reply to Maik Qualmann from comment #2)
> That we only have access to albums at the moment that have been created by
> digiKam and not on other albums is a Google bug:
> 
> https://issuetracker.google.com/issues/79497397
> 
> Maik

i created by digikam almost 90 % of my albums, and they are locked.

perhaps because i created them in picasa site
Comment 7 Maik Qualmann 2019-03-01 15:08:18 UTC
Right, the old albums were created using the Picasa API, which has now been turned off. The new Google Photo API has been greatly reduced in functionality and is currently unable to upload photos to existing albums. As I said, is a Google bug or feature, the forum slowly fills up from Google.

Maik
Comment 8 jon33040 2019-04-12 06:58:21 UTC
I'm now getting bad request with albums created by digikam - ones with the icon indicating this.
Comment 9 Maik Qualmann 2019-04-12 07:21:21 UTC
If the albums were created with digiKam < 6.0.0 (old PicasaWeb API) it is no longer possible to upload images there. As I said, this is a Google problem...

Maik
Comment 10 jon33040 2019-04-12 07:24:54 UTC
(In reply to Maik Qualmann from comment #9)
> If the albums were created with digiKam < 6.0.0 (old PicasaWeb API) it is no
> longer possible to upload images there. As I said, this is a Google
> problem...
> 
> Maik

These are emails created **today** with DK 6.0.0 on Windows.
Comment 11 jon33040 2019-04-12 07:25:45 UTC
Created attachment 119367 [details]
Screenshot showing failure with newly created album
Comment 12 Maik Qualmann 2019-04-12 10:23:00 UTC
Tested here with digiKam-6.1.0 for Windows and Linux no problem could be reproduced. Album created and uploaded images without problems.

Maik
Comment 13 Philippe ROUBACH 2019-04-12 10:33:18 UTC
(In reply to jon33040 from comment #11)
> Created attachment 119367 [details]
> Screenshot showing failure with newly created album

Perhaps you may try to disconnect then connect from digikam to your google account ?
Comment 14 jon33040 2019-04-12 16:13:44 UTC
I just uninstalled DK, downloaded DK, reinstalled DK, disconnected f/ reconnected from/to my Google account & it still does 'bad request'.
Comment 15 caulier.gilles 2019-07-27 11:51:03 UTC
Please test with 6.2.0 pre-release bundles available here :

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

Thanks in advance

Gilles Caulier
Comment 16 Maik Qualmann 2019-07-27 12:38:40 UTC
It's a bug or missing feature in the Google API:

https://issuetracker.google.com/issues/110692941

This problem persists, so in albums has a lock icon, digiKam can not upload anything.

Maik
Comment 17 caulier.gilles 2019-07-27 13:15:00 UTC
Please test with 6.2.0 pre-release bundles available here :

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

Thanks in advance

Gilles Caulier
Comment 18 matkam 2019-07-27 22:08:16 UTC
(In reply to caulier.gilles from comment #17)
> Please test with 6.2.0 pre-release bundles available here :
> 
> https://files.kde.org/digikam/
> 
> Thanks in advance
> 
> Gilles Caulier

I still cannot add photos to an existing Google Photo album with the DigiKam 6.2.0 pre-release
Comment 19 matkam 2019-07-27 22:12:39 UTC
The debug log has a base64 encoded response:

unknown: reply error: QNetworkReply::NetworkError(NoError) - "Unknown error"
unknown: parseResponseAddPhoto
unknown: response "CAISiQMASsyg4M6MSS1cNTHJgq+4xTT8N9fbcEcglA9zicqvVc6k9+WsnNggeqa+09UuWmf7WPbJ/KfxDfnj/Y5dfBn/ReSr2l8sbmSLHZkDKgA2A5ANqMj2WcJAS4VRvUt3pXVv0E1DwYgHLJJqQUIRRC6pcSzrztxaQ5d3ezUFe/H3nqKYgL9b2Y2MvwMP6vMgTVTCHn3if7FF66cCYsXJYpljKwImZs6KZKFIpPp6Bw4g0hwhLEzSK1+JowVfHacwB9NsW1+ysD7vVkNVnvBOWy/hRUVIezLpyfNpzZD8BE1yxlQEGXLwbEyqtyAbGCrq//+26KlKP9SLGYK3MKO8Og9rjCfEAtOt0dfirCXysEspQo4qjL5CuimIMkpDic6YufG4xqiPEFCjQIdkZWRBfYwif8g4IbcsYWVNbvWJ5tAwufw5f3UpqRa1moZ0BdHn2rteeBL/JUPdkiRMHCx9xUqKtkuQEHJ9Taclf3pKt+6xNmP292cJNE/kojIxPxcDJNSRfML1YU50VMU"
unknown: In slotAddPhotoSucceeded 4
unknown: in upload nextphoto 0
unknown: reply error: QNetworkReply::NetworkError(ProtocolInvalidOperationError) - "Error transferring https://photoslibrary.googleapis.com/v1/mediaItems:batchCreate - server replied: Bad Request"

Decoded, it says: "No printable characters found, try another source charset, or upload your data as a file for binary decoding."
Comment 20 Maik Qualmann 2019-07-27 22:18:10 UTC
Please read comment 16. This is a Google error.

Maik
Comment 21 Philippe ROUBACH 2019-07-28 09:06:51 UTC
problem still there.

google photo api bug is still there.
Comment 22 Maik Qualmann 2020-07-18 08:12:13 UTC
*** Bug 424363 has been marked as a duplicate of this bug. ***
Comment 23 caulier.gilles 2020-07-31 11:27:04 UTC
digiKam 7.0.0 stable release is now published:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Best Regards

Gilles Caulier
Comment 24 openkartat 2020-11-22 17:29:17 UTC
Hi, same error is still in 7.0.0. I can only add photos to albums which is created in Digikam. 


Hi,(In reply to caulier.gilles from comment #23)
> digiKam 7.0.0 stable release is now published:
> 
> https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/
> 
> We need a fresh feedback on this file using this version.
> 
> Best Regards
> 
> Gilles Caulier
Comment 25 Philippe ROUBACH 2020-11-23 14:21:34 UTC
i replicate the experiment in description.

no more problem with 7.1.0

be careful problem description is different from locked albums problem.

locked albums problem is about albums created during picasa web life.
Comment 26 caulier.gilles 2023-07-22 10:44:18 UTC
*** Bug 472494 has been marked as a duplicate of this bug. ***
Comment 27 Ilgaz Öcal 2023-07-22 11:13:27 UTC
(In reply to caulier.gilles from comment #26)
> *** Bug 472494 has been marked as a duplicate of this bug. ***

Hello
I found this bug which happened to my setup a long time ago. I know the principle, you should add own albums from Digikam so a lock icon isn't displayed. The current situation is the error is displayed _right after_ authenticating therefore no albums or sign in displayed.  This issue could be different. I can try things if you need. Thanks for caring.