Options

Lower case album titles fail

nzsnappernzsnapper Registered Users Posts: 34 Big grins
edited August 25, 2013 in Bug Reporting
One of my customers was having persistent problems creating new galleries, a system error was being reported. After a little digging it appears that titles starting with a lower case letter trigger the bug, start with an upper case letter and all is well.

The behaviour is the same with API 1.2.2 and 1.3.0, the issue is seen with the new SmugMug. I haven't checked with an old style SmugMug site. Sample debug from my plugin demonstrates the difference in behaviour.
2013/08/25 10:44:03 DEBUG +[RLSmugMugAlbum createAlbumForSession:withTitle:andOptions:andError:] <> - Create album with arguments {
    AlbumTemplateID = 328070;
    CategoryID = 58133244;
    ThemeID = 0;
    Title = "small case test";    <---   LOWER CASE 
}
2013/08/25 10:44:03 DEBUG -[RLSmugMugRequestMethodHelper makeSynchronousRequest:withArguments:error:] <> - Make request <OAMutableURLRequest http://api.smugmug.com/services/api/json/1.3.0/?method=smugmug.albums.create&AlbumTemplateID=328070&ThemeID=0&CategoryID=58133244&Title=small%20case%20test> {
    Authorization = "OAuth realm=\"\", oauth_consumer_key=\"WW1U80oIBzOLSOHUvoWgM5GzfU3qsfTX\", oauth_token=\"53b785e17c94bdc180d14e255d737849\", oauth_signature_method=\"HMAC-SHA1\", oauth_signature=\"AoFPMISwz8mpN%2FvErnjYWiemv2Y%3D\", oauth_timestamp=\"1377384243\", oauth_nonce=\"04647F76-72C3-48FD-AEC2-6FE6E309997C\", oauth_version=\"1.0\"";
    "User-Agent" = "SmuginPro/1.7";
}
2013/08/25 10:44:05 DEBUG -[RLSmugMugRequestMethodHelper makeSynchronousRequest:withArguments:error:] <> - Text: {"stat":"fail","method":"smugmug.albums.create","code":5,"message":"system error"}
2013/08/25 10:44:05 INFO -[RLSmugmugResponse initWithDictionary:] <> - Request failed : {
    code = 5;
    message = "system error";                     <-- FAIL
    method = "smugmug.albums.create";
    stat = fail;
}
2013/08/25 10:44:05 DEBUG -[RLSmugMugRequestMethodHelper makeSynchronousRequest:withArguments:error:] <> - JSON: {
    code = 5;
    message = "system error";
    method = "smugmug.albums.create";
    stat = fail;
}




2013/08/25 10:44:13 INFO -[RLCreateGallerySheetController doCreate:] <> - Do create
2013/08/25 10:44:13 DEBUG -[RLCreateGallerySheetController doCreate:] <> - Setting a template AlbumTemplate: 328070 Size Limited
2013/08/25 10:44:13 DEBUG +[RLSmugMugAlbum createAlbumForSession:withTitle:andOptions:andError:] <> - Create album with arguments {
    AlbumTemplateID = 328070;
    CategoryID = 58133244;
    ThemeID = 0;
    Title = "Small case test";    <-- UPPER CASE 
}
2013/08/25 10:44:13 DEBUG -[RLSmugMugRequestMethodHelper makeSynchronousRequest:withArguments:error:] <> - Make request <OAMutableURLRequest http://api.smugmug.com/services/api/json/1.3.0/?method=smugmug.albums.create&AlbumTemplateID=328070&ThemeID=0&CategoryID=58133244&Title=Small%20case%20test> {
    Authorization = "OAuth realm=\"\", oauth_consumer_key=\"WW1U80oIBzOLSOHUvoWgM5GzfU3qsfTX\", oauth_token=\"53b785e17c94bdc180d14e255d737849\", oauth_signature_method=\"HMAC-SHA1\", oauth_signature=\"qaP5QcPT8Frl7Vl7Cvy2EPf%2FGGU%3D\", oauth_timestamp=\"1377384253\", oauth_nonce=\"4CE7B83D-5749-4094-8C86-4AF036097403\", oauth_version=\"1.0\"";
    "User-Agent" = "SmuginPro/1.7";
}
2013/08/25 10:44:14 DEBUG -[RLSmugMugRequestMethodHelper makeSynchronousRequest:withArguments:error:] <> - Text: {"stat":"ok","method":"smugmug.albums.create","Album":{"id":31425716,"Key":"mCj9ws"}}
2013/08/25 10:44:14 DEBUG -[RLSmugMugRequestMethodHelper makeSynchronousRequest:withArguments:error:] <> - JSON: {
    Album =     {
        Key = mCj9ws;
        id = 31425716;
    };
    method = "smugmug.albums.create";  <-- SUCCESS
    stat = ok;
}

Comments

Sign In or Register to comment.