mohan-nishit / opendatakit

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

Collect: "Error Getting Form List" from local Aggregate #221

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Collect 1.5.1 and Aggregate 0.9.6;
2. Launch local test server;
3. Add a form to Aggregate;
4. Launch Collect;
5. Attempt to list forms from server.

What is the expected output?

  List of available forms.

What do you see instead?

  The following error message:

    Error Getting Form List.
    Form listing failed.
    DocumentBuilderFactory error: attr value delimiter missing!
    (position:START_TAG <FONT COLOR='icon'>@1:128 in java.io.InputStreamReader@4374c748)."

What version of the product are you using? On what operating system?

  Collect 1.5.1 and Aggregate 0.9.6 on Android 1.5 and Windows XP respectively.

Please provide any additional information below.

  Collect is able to connect to the server successfully.

Original issue reported on code.google.com by samwilsonau on 27 May 2011 at 2:28

Attachments:

GoogleCodeExporter commented 9 years ago
I don't think is a problem as most likely you are not hitting the form list 
page. As there would be no font listed in the xml on the formslist. Please 
check your server settings and insure that you are not hitting a http proxy.

Assigning to Carl to maybe put up a better error in 1.1.7 that if we don't get 
a well formed form XML list then display form list not found.

Original comment by wbrune...@gmail.com on 27 May 2011 at 7:15

GoogleCodeExporter commented 9 years ago
Thanks for the info; good to know the problem's at my end.  I thought that font 
tag seemed out of place!

So, I've had a look into what's being sent and received:

The client sends GET //formlist (I don't know why it's got the double slash, 
but that doesn't matter does it?) and is redirected (302 Found) to GET 
//formlist/ (with the trailing slash), which in turn returns 200 OK and this 
content:

[truncated] <html><link rel="icon" type="image/png" 
href="/odk_color_sq.png"><head><title>ODK 
AGGREGATE</title></head><body><h2><FONT COLOR=330066 size=7><img 
src='/odk_color.png'/> ODK AGGREGATE</h2></FONT><br><br><h1>Login Required<

Which is the ODK home page ("Login Required" etc.)!

So, not hitting a proxy, but not hitting the formlist either.

What's the correct URL for the form list?

Oh... hang on...

That double slash: it was because I'd entered the server address in the client 
as http://10.73.55.32:8080/ WITH A TRAILING SLASH.  I removed that slash, and 
the client sent GET /formList (with a capital L) and the correct XML was 
returned!

So all is working!  :-)

Might be nice for Collect to not mind about trailing slashes, though.  :-)

Thanks for building great software!

Original comment by samwilsonau on 2 Jun 2011 at 2:02

GoogleCodeExporter commented 9 years ago
Thanks for the report and update, Sam.  I actually just updated the 1.1.7 code 
a couple days ago to not care about trailing slahes, so hopefully that'll fix 
things.

Original comment by carlhart...@gmail.com on 2 Jun 2011 at 10:44