Bug ST00002: Inconsistent Error Responses for POST Upload

luke_churchluke_church Registered Users Posts: 507 Major grins
Hi All,

There isn't (yet) any test case value associated with this.

Tested against HTTP POST returning XML-RPC using MD5 and Byte length vefication. Sample POST available on request.

Bug: XML-RPC reponses to POST Upload failures seem to use an inconsistent error reporting scheme. (Either that or the meaning of 'System Error' is insufficently clear).

Reproduction context: Automated upload. Transfer of some 900 images. I'm getting high failure rates with these 'system errors' but the process does recover eventually so the user account and password are correct.

I believe the correct error (if an error should be returned) would be Fault Code 4: Invalid Login. Alternatively I may be mis-understanding this error message.

Sample response (cleaned):

(Please perform s / &lt / < vBulletin was being a pain again)
 
&ltmethodResponse>
&ltfault>
 &ltvalue>
&ltstruct>
   &ltmember>
    &ltname>faultCode&lt/name>
    &ltvalue>
     &ltint>5&lt/int>
    &lt/value>
   &lt/member>
   &ltmember>
    &ltname>faultString&lt/name>
    &ltvalue>
&ltstring>system error (nologin)&lt/string>
    &lt/value>
   &lt/member>
  &lt/struct>
 &lt/value>
&lt/fault>
&lt/methodResponse>
 
 


Sample reponse from packet-capture (I think this is Ethereal/PCap messing up with multi-TCP stream interleaving, rather than a Smugmug bug, but just in case):
 
HTTP/11 200 OK
Date: Sun, 18 Dec 2005 15:40:53 GMT
Server: Apache
Set-Cookie: smstatus=102727131134920453307223; path=/; max-age=3024000; domain=smugmugcom
X-Powered-By: smugmug/120
Set-Cookie: ; path=/; domain=smugmugcom
Cache-Control: private, max-age=1, must-revalidate
Pragma: 
Transfer-Encoding: chunked
Content-Type: text/xml
 
2d
&lt?xml version='10' encoding="iso-8859-1" ?>
 
13
&ltmethodResponse>
 
1c
&ltfault>
 &ltvalue>
 
2
&lts
be
truct>
   &ltmember>
    &ltname>faultCode&lt/name>
    &ltvalue>
     &ltint>5&lt/int>
    &lt/value>
   &lt/member>
   &ltmember>
    &ltname>faultString&lt/name>
    &ltvalue>
 
2
&lts
14
tring>system error (
7
nologin
56
)&lt/string>
    &lt/value>
   &lt/member>
  &lt/struct>
 &lt/value>
&lt/fault>
 
16
&lt/methodResponse>
 
 
 
 

Sorry for the haziness of the report, this is a sligthly ugly one...

Luke

Comments

  • NikolaiNikolai Registered Users Posts: 19,035 Major grins
    edited December 18, 2005
    Luke,
    The prior version of VBulleting was allowing to post "less than" sign if it was followed by space, like that:
    < This should work>
    it works
    < /This should work>
    Looks like the current one works, too:-)

    HTH
    "May the f/stop be with you!"
  • luke_churchluke_church Registered Users Posts: 507 Major grins
    edited December 18, 2005
    Ahhhh, so that was it, was it....

    OK, I'll do the replace all from '<' to '< ' instead next time.

    Thanks,

    Luke
Sign In or Register to comment.