MoMaR5 / regalandroid

Automatically exported from code.google.com/p/regalandroid
0 stars 0 forks source link

Crash after selecting 'Enter gallery' (G3) #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On which type of gallery your problem occurred ? (G2, G3, Piwigo ?)
G3

What version of regalandroid are you using? On what Android versions?
1.0.0 on Android 2.2

Upon initially launching, ReGalAndroid hits the server (can see in the Apache 
logs) and in red text below the 'Enter gallery' button says that I'm logged in 
as the user specified in the settings.
When clicking 'Enter gallery', I get a non-specific error saying that 
ReGalAndroid has stopped unexpectedly, and am just given the option to 'force 
close'.

My G3 install has permissions of the root album set to none for Everybody and 
view + view full size for Registered Users.
If I change this to allow view + view full size for Everybody, when clicking 
'Enter gallery', I get a different error:

A problem occurred during the gallery connection, the detail is: 
net.dahanne.gallery3.client.business.exceptions.G3GalleryException: Value [] at 
relationships of type orj.json.JSONArray cannot be converted to JSONObject. 
Pressing ok takes me to a screen saying 'This album does not contain any 
pictures!'

Original issue reported on code.google.com by CaCtus...@gmail.com on 25 Dec 2010 at 10:00

GoogleCodeExporter commented 8 years ago
hello !
could you please give me your gallery url + credentials so that I can reproduce 
the error ? if private, send me an email to anthony dot dahanne at gmail dot com
thanks

Original comment by anthony....@gmail.com on 29 Dec 2010 at 6:18

GoogleCodeExporter commented 8 years ago
hello, could you reproduce this problem ? if so, can you find a way for me to 
reproduce it ?
thanks

Original comment by anthony....@gmail.com on 4 Jan 2011 at 6:37

GoogleCodeExporter commented 8 years ago
I get a crash at this point as well. From the logs:

E/AndroidRuntime( 2485): Caused by: java.lang.ClassCastException: 
java.lang.String
E/AndroidRuntime( 2485):    at 
net.dahanne.gallery3.client.business.G3Client.getItem(G3Client.java:99)
E/AndroidRuntime( 2485):    at 
net.dahanne.gallery3.client.business.G3Client.getItems(G3Client.java:371)
E/AndroidRuntime( 2485):    at 
net.dahanne.gallery3.client.business.G3Client.getAlbumAndSubAlbumsAndPictures(G3
Client.java:336)
E/AndroidRuntime( 2485):    at 
net.dahanne.android.regalandroid.remote.G3Connection.getAlbumAndSubAlbumsAndPict
ures(G3Connection.java:119)
E/AndroidRuntime( 2485):    at 
net.dahanne.android.regalandroid.tasks.FetchAlbumAndSubAlbumsAndPicturesTask.doI
nBackground(FetchAlbumAndSubAlbumsAndPicturesTask.java:59)
E/AndroidRuntime( 2485):    at 
net.dahanne.android.regalandroid.tasks.FetchAlbumAndSubAlbumsAndPicturesTask.doI
nBackground(FetchAlbumAndSubAlbumsAndPicturesTask.java:36)
E/AndroidRuntime( 2485):    at android.os.AsyncTask$2.call(AsyncTask.java:185)
E/AndroidRuntime( 2485):    at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)

If you want to connect to reproduce, you can use the credentials I emailed you 
previously.

Original comment by ciaran.g...@gmail.com on 4 Jan 2011 at 11:02

GoogleCodeExporter commented 8 years ago
hello Ciaran!
I think you are talking about bug #34
could you please send me your gallery credentials as the ones you gave me do 
not work.
and thanks in advance, this issue is reported as the most frequent issue from 
Android market

Original comment by anthony....@gmail.com on 4 Jan 2011 at 3:26

GoogleCodeExporter commented 8 years ago
hello,
there is something weird with your gallery...
ReGalAndroid sends the correct HTTP request for getting the API key :
POST /index.php/rest HTTP/1.1
X-Gallery-Request-Method: post
User-Agent: Unit Test
Content-Length: 40
Content-Type: application/x-www-form-urlencoded; charset=ISO-8859-1
Host: www.host.com
Connection: Keep-Alive
Expect: 100-Continue
user=regaltest&password=correctpassword

as described in 
http://codex.gallery2.org/Gallery3:API:REST#Example_Login_request

and it returns an HTML page, inviting me to login to the gallery; instead of 
the API key in json format.

Could you provide more detail Ciaran about how did you install G3 ? what 
version ? can you also please take a screenshot of the modules page in your G3 
admin area ?
Thanks again; you seem not to be the only to have this; I'd like to know why 
your G3 is behaving like this.

On a side note, ReGalAndroid should have caught the problem and telling you G3 
is not responding expectedly (instead of force close); I just fixed this

Original comment by anthony....@gmail.com on 5 Jan 2011 at 4:10

GoogleCodeExporter commented 8 years ago
Issue 34 has been merged into this issue.

Original comment by anthony....@gmail.com on 5 Jan 2011 at 4:11

GoogleCodeExporter commented 8 years ago
It seems a Gallery3 bug... try this fix. 

http://sourceforge.net/apps/trac/gallery/ticket/1424

Original comment by dpe...@gmail.com on 12 Jan 2011 at 6:50

GoogleCodeExporter commented 8 years ago
I had the problem too.
The fix (http://sourceforge.net/apps/trac/gallery/ticket/1424) solves my 
problem.
Now it work fine.
Thanks for the hint, dpeddi.

Original comment by PataGoni...@gmail.com on 12 Jan 2011 at 8:48

GoogleCodeExporter commented 8 years ago
excellent! ciaran, could you confirm the fix works for you ?
So that I can close the issue ?
thanks a lot dpeddi !

Original comment by anthony....@gmail.com on 12 Jan 2011 at 2:48

GoogleCodeExporter commented 8 years ago
This fix for Gallery helped, the app now no longer crashes, but still won't let 
me view the albums. It now complains:
net.dahanne.gallery3.client.business.exceptions.G3GalleryException: Value [] at 
relationships of type org.json.JSONArray cannot be converted to JSONObject

I've finally gotten around to setting up a test account for you.
G3 URL: http://kr.scuznet.com/gallery3
user: test
pass: testtest

Original comment by CaCtus...@gmail.com on 14 Jan 2011 at 10:54

GoogleCodeExporter commented 8 years ago
Cactus, I could reproduce your error; I created a new issue, #38 

Original comment by anthony....@gmail.com on 16 Jan 2011 at 9:32