Issue with rest api, HTTP get all passed, PUT/POST failed
249 views
Skip to first unread message
Yan Bi
unread,
Jan 24, 2016, 8:12:26 PM1/24/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Repo and Gerrit Discussion
I just use apache http client to access gerrit via rest api. All the http method with get, e.g. query changes, list projects work fine. But the methods with put/post failed with error "Status:HTTP/1.1 403 Forbidden". Any idea? Thanks!
David Pursehouse
unread,
Jan 24, 2016, 8:16:28 PM1/24/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
I just use apache http client to access gerrit via rest api. All the http method with get, e.g. query changes, list projects work fine. But the methods with put/post failed with error "Status:HTTP/1.1 403 Forbidden". Any idea? Thanks!
Make sure you are sending authenticated requests by adding /a/ in the URL. Also make sure you are authenticating with the HTTP username and password, not your SSH password.