Announcement

  •  » Beta testing
  •  » Piwigo iOS version 2.0, beta-test - Download Error

#1 2015-04-04 10:29:05

photo_friend
Member
Berlin
1970-01-01
194

Piwigo iOS version 2.0, beta-test - Download Error

Hello

I can not download photos over the iOS app. I get this error Message:
Failed to download image! Request failed: bad request (400).

I'm login as admin in the app and I have no problem to download photos on my piwigo web gallery.



Piwigo version: 2.7.4
PHP version: 5.3.3
MySQL version: 5.1.73


Uploaded Images

Last edited by photo_friend (2015-04-04 10:30:19)

Offline

 

#2 2015-04-07 01:12:56

Hoser
Member
Utah
2015-01-14
88

Re: Piwigo iOS version 2.0, beta-test - Download Error

Hey photo_friend,

Could you do the following:
In your Piwigo web viewer, go to this image and open it in detail. Look at your url and it should look something like this:
{your server URL}/picture.php?/4955/category/3

The 4955 is the image ID (yours should be different). Then with that ID, open a new tab in your browser and navigate to:
{your server URL}/ws.php?format=json&method=pwg.images.getInfo&image_id={imageID}

Replace "{your server URL}" with your Piwigo address and "{imageID}" with the image ID you found earlier.

It should spit out a bunch of text (JSON). Could you PM what it spit out to me?
This will help why it's giving a 400.

I'm assuming this is happening to all your images?

Offline

 

#3 2015-04-08 19:04:58

photo_friend
Member
Berlin
1970-01-01
194

Re: Piwigo iOS version 2.0, beta-test - Download Error

You got a PM.


Maybe to give you a clue: I use 'original_url_protection' and did the .htaccess modification. There must  be another way to download the photo instead to just download direclty the file from the server.
See also:
http://piwigo.org/forum/viewtopic.php?id=24090
http://piwigo.org/forum/viewtopic.php?id=21392
http://piwigo.org/forum/viewtopic.php?id=24077

Thanks a lot
Hagen

Last edited by photo_friend (2015-04-08 19:09:07)

Offline

 

#4 2015-04-09 03:50:27

Hoser
Member
Utah
2015-01-14
88

Re: Piwigo iOS version 2.0, beta-test - Download Error

I didn't know that the direct URL was public... interesting.

I, personally, don't know another way to get the full resolution image besides the direct image URL (known as the element_url from the web API).

Anyone know another way?

Offline

 

#5 2015-04-19 23:17:01

photo_friend
Member
Berlin
1970-01-01
194

Re: Piwigo iOS version 2.0, beta-test - Download Error

Anybody any idea? How we can move forward with this issue?

Thanks a lot
Hagen

Offline

 

#6 2015-05-07 23:25:28

photo_friend
Member
Berlin
1970-01-01
194

Re: Piwigo iOS version 2.0, beta-test - Download Error

Hoser wrote:

I didn't know that the direct URL was public... interesting.

I, personally, don't know another way to get the full resolution image besides the direct image URL (known as the element_url from the web API).

Anyone know another way?

Hello together,

what can we do, that the download is possible? Anybody any idea?

Thanks so much for any support
Best
Hagen

Offline

 

#7 2017-09-09 09:16:24

photo_friend
Member
Berlin
1970-01-01
194

Re: Piwigo iOS version 2.0, beta-test - Download Error

Hello,

I'm still having the same problem. Any solution for it?

Piwigo version: 2.9.1
iOS App Version: 2.1.2

Thanks for any kind of Support

Offline

 

#8 2017-09-27 08:24:34

cryopad
Member
Grenoble, France
2015-11-01
45

Re: Piwigo iOS version 2.0, beta-test - Download Error

Hello,

Would it be possible to send me by email credentials allowing to debug this issue (access to a temporary album without admin rights) ? The next iOS release 2.1.3 will bring HTTP(S) authentication and other things but from what I’ve read this will not fix your issue.

All the best

Offline

 

#9 2017-10-08 11:05:44

photo_friend
Member
Berlin
1970-01-01
194

Re: Piwigo iOS version 2.0, beta-test - Download Error

Hello,

I think some investigation about this issue a while ago. I think it is related to this setting:
// one of '', 'images', 'all'
//TODO: Put this in admin and also manage .htaccess in #sites and upload folders
$conf['original_url_protection'] = 'all';

But this setting us necessary to protect my images.

Moreover: I wanted to do some test regarding the settings today. But looks like there is a bug in the latest App version (2.1.3). If I want to download an image in the app, the IOS app crash.

Please contact me for any future questions.

Best
Hagen

Offline

 

#10 2017-10-08 14:35:21

cryopad
Member
Grenoble, France
2015-11-01
45

Re: Piwigo iOS version 2.0, beta-test - Download Error

Hi Hagen,

Thanks for reporting.
Would it be possible to provide a temporary access to a public album for allowing me to debug the 2.1.3 beta of the iOS app? You can send the credentials using my email.
Thanks.

Offline

 

#11 2017-10-09 22:47:28

cryopad
Member
Grenoble, France
2015-11-01
45

Re: Piwigo iOS version 2.0, beta-test - Download Error

Hi,

I could finally reproduce this crash, so no need to prepare a test account.

Best

Offline

 

#12 2017-10-12 21:29:43

cryopad
Member
Grenoble, France
2015-11-01
45

Re: Piwigo iOS version 2.0, beta-test - Download Error

Hi Hagen,

The crash is now fixed in the new build but as I never looked at the use of $conf['original_url_protection'] = 'images' or 'all', the app is not prepared for this configuration.

I've added it on [Github] Piwigo-Mobile issue #188 for a later look.

Best regards

Offline

 

#13 2017-10-12 21:40:11

photo_friend
Member
Berlin
1970-01-01
194

Re: Piwigo iOS version 2.0, beta-test - Download Error

Thanks a lot for your support!

Offline

 

#14 2017-10-14 19:10:26

cryopad
Member
Grenoble, France
2015-11-01
45

Re: Piwigo iOS version 2.0, beta-test - Download Error

Hi Hagen,

It appears that the iOS app gets an incorrect URL when using $conf['original_url_protection'] = 'images' or 'all'. I have therefore added a patch and reported the issue at [Github] Piwigo issue #796.

Please confirm if this issue is fixed when the next build is available.

Cheers

Offline

 

#15 2017-10-15 09:55:54

photo_friend
Member
Berlin
1970-01-01
194

Re: Piwigo iOS version 2.0, beta-test - Download Error

Hi!

I have tested with Version Piwigo 2.1.3 (63) on Testflight and now the download works! THANKS!!!!
One more question: Which version of the photo will be download? The original photo in the original size or one version of the pre- processed multiple Size photos (like the XXL - huge version)? Why I ask: The photo I could download over the IOS App has absolutely no meta data anymore (Date, place, Camera type, Rating, ...). This makes it hard to work with the downloaded photo with on any catalog system (iPhone Photo library or Lightroom).
May it would be possible to download the original photo in full-size, like I do so over the web frontend.

Thanks again for your time and effort






cryopad wrote:

Hi Hagen,

It appears that the iOS app gets an incorrect URL when using $conf['original_url_protection'] = 'images' or 'all'. I have therefore added a patch and reported the issue at [Github] Piwigo issue #796.

Please confirm if this issue is fixed when the next build is available.

Cheers

Offline

 
  •  » Beta testing
  •  » Piwigo iOS version 2.0, beta-test - Download Error

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact