Plus sign in Group Member's email address

159 views
Skip to first unread message

Elliott Williams

unread,
Jun 14, 2012, 7:50:15 PM6/14/12
to google-app...@googlegroups.com
Hello!

I'm using the Provisioning API to add / retrieve / remove users from a Google Apps group (via direct HTTP calls). Problem is, I can't retrieve an email address containing a plus sign without a GData error being thrown.

Example request:
GET /a/feeds/group/2.0/example.com/test-group/member/exampl...@example.com HTTP/1.1
Content-Type: application/atom+xml
Authorization: GoogleLogin Auth=<authkey>
 
and what I get back is a 
HTTP/1.1 400 Bad Request
 
<?xml version="1.0" encoding="UTF-8"?>
<AppsForYourDomainErrors>
  <error errorCode="1303" invalidInput="example us...@example.com" reason="EntityNameNotValid" />
</AppsForYourDomainErrors> 

HTTP is translating the plus to a space (as it is supposed to). I've tried URL-encoding the plus, but get the same EntityNameNotValid error. The API seems to not accept any url-encoded parameters, as it will fail if I encode the @ sign in any valid address.

Is any way to force the API to use url-encoded paramaters, or achieve the same request using a POST body?
Reply all
Reply to author
Forward
0 new messages