Page MenuHomePhabricator
Paste P4121

api errors testing
ActivePublic

Authored by Prtksxna on Sep 27 2016, 2:22 PM.
Testing case (when IP editing is blocked):
1. Add annotation, log out in another tab, add annotation
"error":{"code":"permissiondenied","info":"Permission denied","*":"See http://localhost:8080/w/api.php for API usage"}}
2. Log out in another tab, add annotation
{"error":{"code":"permissiondenied","info":"Permission denied","*":"See http://localhost:8080/w/api.php for API usage"}}
3. Add annotation, logout in another tab, login as another user, add annotation
Saves the next annotation as the newly logged in user
4. Logout in another tab, login as another user, add annotation
Saves the annotation as the newly logged in user