Bug: smugmug.categories.delete fails to report correctly
luke_church
Registered Users Posts: 507 Major grins
Description: smugmug.categories.delete fails to report statuses correctly.
1. Attempting to delete a category from an anonymous connection returns a blank string, rather than a fault code. Thankfully it does not delete the category!
2. Attempting to delete a standard category from an authenticated connection returns a blank string, rather than a fault code. Again, it does not delete the category.
3. Attempting to use an authenticated connection to delete a custom category owned by that connection, returns a blank string rather than "SUCCESS" as indicated in the documentation www.smugmug.com/hack/method-smugmug.categories.delete. *However* it does delete the category
4. Attempting to use an authenticated connection to delete a custom category not owned by that connection, returns a blank string rather than a fault code, but does not delete the category
Tested with XML-RPC 1.1.0 and XML-RPC 1.1.1 BETA, same behaviour.
Sample return for type 3 against 1.1.1:
[php]
<methodCall>
<methodName>smugmug.categories.delete</methodName>
<params>
<param>
<value>
<string>...</string>
</value>
</param>
<param>
<value>
<i4>38302</i4>
</value>
</param>
</params>
</methodCall>
Header
<?xml version="1.0" encoding="iso-8859-1"?>
<methodResponse>
<params>
<param>
<value>
<string/>
</value>
</param>
</params>
</methodResponse>
[/php]
1. Attempting to delete a category from an anonymous connection returns a blank string, rather than a fault code. Thankfully it does not delete the category!
2. Attempting to delete a standard category from an authenticated connection returns a blank string, rather than a fault code. Again, it does not delete the category.
3. Attempting to use an authenticated connection to delete a custom category owned by that connection, returns a blank string rather than "SUCCESS" as indicated in the documentation www.smugmug.com/hack/method-smugmug.categories.delete. *However* it does delete the category
4. Attempting to use an authenticated connection to delete a custom category not owned by that connection, returns a blank string rather than a fault code, but does not delete the category
Tested with XML-RPC 1.1.0 and XML-RPC 1.1.1 BETA, same behaviour.
Sample return for type 3 against 1.1.1:
[php]
<methodCall>
<methodName>smugmug.categories.delete</methodName>
<params>
<param>
<value>
<string>...</string>
</value>
</param>
<param>
<value>
<i4>38302</i4>
</value>
</param>
</params>
</methodCall>
Header
<?xml version="1.0" encoding="iso-8859-1"?>
<methodResponse>
<params>
<param>
<value>
<string/>
</value>
</param>
</params>
</methodResponse>
[/php]
0