Bug 123978 - "Invalid response" error when exporting images
Summary: "Invalid response" error when exporting images
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Piwigo (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-20 12:48 UTC by lenz
Modified: 2023-02-25 08:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lenz 2006-03-20 12:48:12 UTC
Version:           1.3.1 (using KDE 3.5.1 Level "a" , SUSE 10.0 UNSUPPORTED)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15.8-default

I use the "Export to remote Gallery" plugin to upload images to my local Gallery server running Gallery v1.5.2-pl2 (Debian Linux/PPC, Apache 2.0.55, PHP Version 4.4.2-1). I can create new albums just fine, but for each image I upload an error window pops up:

"Failed to upload photo into remote gallery. Invalid response received from remote Gallery Do you want to continue?"

If I click "Continue", the export proceeds with the next picture and the upload eventually finishes. All pictures are uploaded just fine, but having to confirm this error message for every image is very tedious. FWIW, I selected "Resize photos before uploading/Maximum dimension: 1024" to shrink the images.

Let me know, if you need further details. Thanks!
Comment 1 Angelo Naselli 2006-03-20 12:55:13 UTC
wrong product
Comment 2 Colin Guthrie 2006-05-21 21:45:32 UTC
Hi

Latest SVN removes support for Gallery 1.5 and adds support for Gallery 2. I hope this is not a problem for you and that you are able to upgrade to Gallery 2 (it's way nicer IMO!).

Hopefully this new release will fix things for you (assuming you u/g G2).

Col.
Comment 3 Colin Guthrie 2006-05-30 17:12:50 UTC
We have decided to support G1 also in the gallery plugin so I am just correcting my last statement about G1 support being removed. I will test shortly and see this code still works OK and if I can recreate this error.
Comment 4 Colin Guthrie 2006-05-31 11:39:12 UTC
Reassign to me - I'll take a look and see if I can recreate.
Comment 5 Angelo Naselli 2006-05-31 12:32:36 UTC
I should understand you're kde developer now shouldn't I?
:)

Angelo
Comment 6 Colin Guthrie 2006-06-01 10:23:47 UTC
Indeed you should Angelo :)

I have replicated this bug and will fix it before the next release.
Comment 7 Colin Guthrie 2006-06-01 19:20:47 UTC
SVN commit 547312 by cguthrie:

Fix the invalid response error when uploading photos to gallery1. It would appear G1 is outputting some information stating that it is resizing the uploaded image and prevents us properly detecting the #__GR2PROTO__ trigger.
BUG: 123978


 M  +5 -1      gallerytalker.cpp  


--- trunk/extragear/libs/kipi-plugins/galleryexport/gallerytalker.cpp #547311:547312
@@ -600,7 +600,11 @@
 
         if (!foundResponse)
         {
-            foundResponse = line.startsWith("#__GR2PROTO__");
+            // Gallery1 sends resizing debug code sometimes so we
+            // have to detect things slightly differently
+            foundResponse = (line.startsWith("#__GR2PROTO__")
+                             || (line.startsWith("<br>- Resizing")
+                                 && line.endsWith("#__GR2PROTO__")));
         }
         else
         {
Comment 8 Harley Stenzel 2007-01-01 20:29:22 UTC
In what release was this to be fixed?

In current deb testing / kipi-plugins v. 0.1.2-3 there exists a checkbox for selecting gallery2.  Furthermore, while I do receive the invalid response error, the upload itself succeeds.

Thanks.

--Harley
Comment 9 Colin Guthrie 2007-01-01 21:47:42 UTC
Hmm, I thought this was fixed before 0.1.2 was released. Could be wrong there tho' as just going from memory, but certainly this fix is in the 0.1.3rc that is currently out.

If you still get a problem, please let me know as I'll need to readdress it if there is another bug.