Paste P4121

api errors testing
ActivePublic

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