Bug 299552 - Export failed
Summary: Export failed
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Google (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-07 13:09 UTC by Robin Green
Modified: 2019-07-28 16:33 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Green 2012-05-07 13:09:22 UTC
The export to Picasaweb fails but without any reason why. If I click Continue it fails again.

Reproducible: Always

Steps to Reproduce:
1. Select photo in gwenview
2. Plugins->Export->Picasaweb
3. Start Upload
Actual Results:  
Dialog box appeared saying it had failed.

Expected Results:  
Success.

KDE 4.8.2.
Comment 1 caulier.gilles 2012-06-22 08:56:02 UTC
Official Kipi-plugins 2.6.0 release is out since few days now :

http://www.digikam.org/drupal/node/656

Please, check if this entry still valid, or update report accordingly.

Thanks in advance.

Gilles Caulier
Comment 2 Tomas Kindahl 2012-06-26 06:44:22 UTC
I get the same results in 2.6.0 (and 2.5.0). The error message is "Failed to upload photo into Picasaweb: Failed to upload photo
Do you want to continue?"

The response given by the Picasa server is "400 Bad Request" with the specific error "A title or Slug header is required".

Logging in to Picasa and creating new folders work fine.
Comment 3 Tomas Kindahl 2012-06-26 07:36:54 UTC
I found this after googling:
https://groups.google.com/forum/?fromgroups#!msg/google-picasa-data-api/1mmT_9RuKnM/eB_pdkKfLUUJ
"We recently made the server side validate the uploaded input in a more strict way. Upon first upload of a photo, we decided to insist on either a <title> element in the photo entry's meta data, or the special HTTP header "Slug". The reason is simply that parts of our web frontend are relying on a proper filename stored as the title of the photo."

Right now, the title element sent by kipi-plugins is there, but empty.
Comment 4 caulier.gilles 2012-06-26 09:20:00 UTC
I just tested with 2.6.0, and look into source code. Title info is given to PicasaWeb using filename and upload work fine here... My image do not have specific tag, comment, title and other metadata.

What's are you using as upload settings ? What's metadata have your image in digiKam ?

Gilles Caulier
Comment 5 Tomas Kindahl 2012-06-26 10:52:51 UTC
I'm sorry, I should have said that I use KPhotoAlbum (4.2.0).

For me, it kind of fails in digiKam, if I without selecting any picture (by starting in My Albums) go to the Export menu and select Picasaweb and add the pictures in that dialog by clicking the plus icon below the file list. Then, when uploading, I get the same error as described above.

However, it works if I first select a picture in digiKam (but not in KPhotoAlbum) and then upload. So I am not sure where the bug actually is.

Thanks for your support!
Comment 6 caulier.gilles 2012-06-26 10:57:18 UTC
The problem with KPhotoAlbum is probably due to a missing implementation in KIPI interface from this application... Please report this problem to KPhotoAlbum team.

About the file selection in digiKam, i will take a look...

Gilles Caulier
Comment 7 caulier.gilles 2012-06-26 13:36:45 UTC
>For me, it kind of fails in digiKam, if I without selecting any picture (by starting in My Albums) go to the Export >menu and select Picasaweb and add the pictures in that dialog by clicking the plus icon below the file list. Then, >when uploading, I get the same error as described above.

==> I just tested with 2.6.0, by this way, and i cannot reproduce the dysfunction...

Gilles Caulier
Comment 8 julien.t43+kde 2013-02-22 01:23:24 UTC
Just a side not on this not-so-digikam bug: the error message for picasaweb (or any other upload plugin) should have a button to get more details and hints on why it's failing:
- network
- re-authentication
- account quota
- account limit (http://support.google.com/picasa/answer/43879?hl=en  for number of albums, number of images in one album, ...)
- bad submission/slut http answer
- other

better to create a new bug ?
Comment 9 julien.t43+kde 2013-04-19 16:02:45 UTC
tody, doing a bunch of upload and keep failing tons of time ... :(
at beginning, I had a suspect connection blocked email but removed with UnlockCaptcha (https://accounts.google.com/DisplayUnlockCaptcha). still, it continues to fail a lot and I can only try again without knowing what is the problem ... no verbose option, no log to file

nothing useful in console mode
>>>
digikam(12765)/KIPI (general) KIPIPicasawebExportPlugin::PicasawebWindow::prepareImageForUpload: Resizing to  1600
digikam(12765)/KIPI (general) KIPIPicasawebExportPlugin::PicasawebWindow::prepareImageForUpload: Saving to temp file:  "/tmp/kde-julien/kipi-picasawebexportplugin-12765/20130310_085203--DSC_3482.jpg"
digikam(12765)/KIPI (general) KIPIPlugins::KPHostSettings::metadataSettings: KPMetaSettings::writeRawFiles: false, KPMetaSettings::updateFileTimeStamp: false, KPMetaSettings::useXMPSidecar4Reading: false, KPMetaSettings::metadataWritingMode: 0
digikam(12765)/KEXIV2 KExiv2Iface::KExiv2::save: KExiv2::metadataWritingMode 0
digikam(12765)/KEXIV2 KExiv2Iface::KExiv2::save: Will write Metadata to file "20130310_085203--DSC_3482.jpg"
digikam(12765)/KEXIV2 KExiv2Iface::KExiv2::save: Metadata for file "20130310_085203--DSC_3482.jpg" written to file.
digikam(12765)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0xa5c0828)
digikam(12765)/kio (KIOJob) KIO::TransferJob::slotFinished: KUrl("http://picasaweb.google.com/data/feed/api/user/118275187500972831043/albumid/5868584029285077249")
digikam(12765)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::TransferJob(0xa5c0828) KIO::Slave(0x1bb9b628)
digikam(12765)/KIPI (general) KIPIPlugins::KPHostSettings::metadataSettings: KPMetaSettings::writeRawFiles: false, KPMetaSettings::updateFileTimeStamp: false, KPMetaSettings::useXMPSidecar4Reading: false, KPMetaSettings::metadataWritingMode: 0
digikam(12765)/KIPI (general) KIPIPicasawebExportPlugin::PicasawebWindow::slotAddPhotoDone: bRet :  false
digikam(12765)/kdeui (KNotification) KNotificationManager::notificationClosed: 32
<<<
Comment 10 julien.t43+kde 2013-04-19 16:04:54 UTC
Note: digikam v3.0.0 (kde 4.8.5) on lubuntu 12.04
Comment 11 jos poortvliet 2013-06-11 19:52:39 UTC
It works here, I just have to enter my password every time (which, as I have two-step-authentication, is a big annoying issue so I have decided to just use the web upload for the time being)
Comment 12 caulier.gilles 2015-05-19 13:53:11 UTC
Following comment #11, i set this file as duplicate of bug #298020

Gilles Caulier

*** This bug has been marked as a duplicate of bug 298020 ***
Comment 13 caulier.gilles 2019-07-27 13:07:01 UTC
Please test with 6.2.0 pre-release bundles available here :

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

Thanks in advance

Gilles Caulier
Comment 14 caulier.gilles 2019-07-28 16:33:50 UTC
Fixed with bug #298020