MoMaR5 / regalandroid

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

[Piwigo] stat fail err 400 Unknown request format #52

Closed GoogleCodeExporter closed 8 years ago

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

What version of regalandroid are you using? On what Android versions?
1.0.1 on Android 2.3.2, Sony Ericsson Arc (LT15i)

Can you provide your gallery url so that a developer can reproduce the
issue ? do we need to login ? in which album the problem occurred ?
http://sbfgalleri.web.surftown.se/galleri/

What steps will reproduce the problem?
1. open app
2. change url to http://sbfgalleri.web.surftown.se/galleri/
3. open gallery -> crash

What is the expected output? What do you see instead?
See the Gallery. Pop-up with error (Process net.dahanne.android.regalandroid 
for program ReGalAndroid stopped unexpectedly. Try again. "Force shutdown" or 
"Report")

pop-up here translated from Swedish

Please provide any additional information below.
Exception class name: java.lang..NullPointerException
source file: CategoryDao.java
source class: fr.mael.jiwigo.dao.CategoryDao
source method: listing
line number: 74

Original issue reported on code.google.com by per%pp-p...@gtempaccount.com on 14 Apr 2011 at 10:20

GoogleCodeExporter commented 8 years ago

Original comment by anthony....@gmail.com on 19 Apr 2011 at 5:49

GoogleCodeExporter commented 8 years ago
Hello, 
you gallery returned the following error while trying to connect through the 
web service api :
{"stat":"fail",err:400,message:"Unknown request format"

could you please provide your piwigo version and also, if possible, give me a 
test account (via email to anthony.dahanne@gmail.com)

thanks

Original comment by anthony....@gmail.com on 20 Apr 2011 at 2:51

GoogleCodeExporter commented 8 years ago
Hi

Piwigo 2.2.0

login: anthony
pass: regal

Original comment by per%pp-p...@gtempaccount.com on 20 Apr 2011 at 4:48

GoogleCodeExporter commented 8 years ago
hello, 
trying to login in, I still have the same response.
I also tried with Jiwigo (the java desktop client), same thing.
I think the problem is related to your piwigo installation.
ask your question on their forum, they should get back to you.
here is the detail :

request
POST /galleri//ws.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded; charset=iso-8859-1
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.1) Gecko/20090715 
Firefox/3.5.1
Host: sbfgalleri.web.surftown.se
Content-Length: 56

method=pwg.session.login&username=anthony&password=regal

response :

HTTP/1.1 400 Unknown request format
Date: Sat, 23 Apr 2011 14:50:00 GMT
Server: Apache/2.2.6 mod_auth_kerb/5.3 PHP/5.2.17 mod_fcgid/2.3.5
X-Powered-By: PHP/5.2.17
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: pwg_id=6ksrldfgc8tqrfbhrk663hhhj2; path=/galleri/; HttpOnly
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain; charset=utf-8

{"stat":"fail","err":400,"message":"Unknown request format"}

Original comment by anthony....@gmail.com on 23 Apr 2011 at 2:53

GoogleCodeExporter commented 8 years ago
one more thing; I also tried with this script:

#!/usr/bin/perl

use LWP::UserAgent;

my %conf = (
    base_url => 'http://sbfgalleri.web.surftown.se/galleri/',
    username => 'anthony',
    password => 'regal',
    image_path => '/tmp/voiture.jpg',
    category => 98
);

my $ua = LWP::UserAgent->new;
$ua->cookie_jar({});

$ua->post(
    $conf{base_url}.'/ws.php',
    {
        method => 'pwg.session.login',
        username => $conf{username},
        password => $conf{password},
    }
);

same thing (err 400); so it confirms something is wrong with your gallery (at 
least the web services)

Original comment by anthony....@gmail.com on 23 Apr 2011 at 3:02

GoogleCodeExporter commented 8 years ago

Original comment by anthony....@gmail.com on 30 Apr 2011 at 3:29

GoogleCodeExporter commented 8 years ago
closing this issue, I remember the problem was fixed in Piwigo.
if the problem is still there, please re open the issue

Original comment by anthony....@gmail.com on 18 Jun 2011 at 4:16