Bug: smugmug.images.getStats fails with Fault code 4

luke_churchluke_church Registered Users Posts: 507 Major grins
Description: smugmug.images.getStats fails inappropiately with Fault Code 4: Invalid user

Behaviour confirmed against XML-RPC 1.1.0, XML-RPC 1.1.1

Test:

- Login with wait
- Get ImageInfo and check that priviledge info is being returned
- Get Stats -> Fails

Note: S*E does not seem to be using this API call, rather it seems to work with HTML queries. Nik: Can you confirm this?

XML, targetting XML-RPC 1.1.0

[php]

<?xml version="1.0"?>
<methodCall>
<methodName>smugmug.images.getInfo</methodName>
<params>
<param>
<value>
<string>...</string>
</value>
</param>
<param>
<value>
<i4>35655765</i4>
</value>
</param>
</params>
</methodCall>
Header
<?xml version="1.0" encoding="iso-8859-1"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>AlbumID</name>
<value>
<int>801895</int>
</value>
</member>
<member>
<name>FileName</name>
<value>
<string>10-0.jpg</string>
</value>
</member>
<member>
<name>Caption</name>
<value>
<string/>
</value>
</member>
<member>
<name>Keywords</name>
<value>
<string/>
</value>
</member>
<member>
<name>Position</name>
<value>
<int>1</int>
</value>
</member>
<member>
<name>Date</name>
<value>
<string>2005-09-11 18:03:16</string>
</value>
</member>
<member>
<name>Format</name>
<value>
<string>JPG</string>
</value>
</member>
<member>
<name>Serial</name>
<value>
<int>0</int>
</value>
</member>
<member>
<name>Watermark</name>
<value>
<string>0</string>
</value>
</member>
<member>
<name>Size</name>
<value>
<int>7452</int>
</value>
</member>
<member>
<name>Width</name>
<value>
<int>640</int>
</value>
</member>
<member>
<name>Height</name>
<value>
<int>480</int>
</value>
</member>
<member>
<name>MD5Sum</name>
<value>
<string>sm-21e6f0b0ee3f6a804a60f86dd0e64e2b-sm</string>
</value>
</member>
<member>
<name>LastUpdated</name>
<value>
<string>20050911180714</string>
</value>
</member>
<member>
<name>OriginalURL</name>
<value>
<string>http://SmugTools.smugmug.com/photos/35655765-O.jpg</string&gt;
</value>
</member>
<member>
<name>LargeURL</name>
<value>
<string>http://SmugTools.smugmug.com/photos/35655765-L.jpg</string&gt;
</value>
</member>
<member>
<name>MediumURL</name>
<value>
<string>http://SmugTools.smugmug.com/photos/35655765-M.jpg</string&gt;
</value>
</member>
<member>
<name>SmallURL</name>
<value>
<string>http://SmugTools.smugmug.com/photos/35655765-S.jpg</string&gt;
</value>
</member>
<member>
<name>TinyURL</name>
<value>
<string>http://SmugTools.smugmug.com/photos/35655765-Ti.jpg</string&gt;
</value>
</member>
<member>
<name>ThumbURL</name>
<value>
<string>http://SmugTools.smugmug.com/photos/35655765-Th.jpg</string&gt;
</value>
</member>
<member>
<name>AlbumURL</name>
<value>
<string>http://SmugTools.smugmug.com/gallery/801895/1/35655765</string&gt;
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>
Header
<?xml version="1.0"?>
<methodCall>
<methodName>smugmug.images.getStats</methodName>
<params>
<param>
<value>
<string>...</string>
</value>
</param>
<param>
<value>
<i4>35655765</i4>
</value>
</param>
<param>
<value>
<i4>9</i4>
</value>
</param>
</params>
</methodCall>
Header
<?xml version="1.0" encoding="iso-8859-1"?>
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value>
<int>4</int>
</value>
</member>
<member>
<name>faultString</name>
<value>
<string>invalid user</string>
</value>
</member>
</struct>
</value>
</fault>
</methodResponse>


[/php]
Sign In or Register to comment.