gauravtyagi2777 / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Problem with UpdateOrganizationUnit when the orgUnitPath contains spaces #498

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an Org Unit with a space like "Marketing US" at the root of your 
domain

2. Try this :
string path = "Marketing US";
IDictionary<OrganizationService.OrgUnitProperty, string> attributes = new 
Dictionary<OrganizationService.OrgUnitProperty, string>();
attributes.Add(OrganizationService.OrgUnitProperty.Name, "TEST");
oservice.UpdateOrganizationUnit(customerID, path, attributes);

3. I also tried this :
path = path.Replace(" ","+");
and path = path.Replace(" ","%20");

What is the expected output? What do you see instead?
We expect that the name of the OU will change to "TEST".
Instead I have an error :
[Line 5, Column 130, element link] Illegal character in path at index 68: 
https://apps-apis.google.com/a/feeds/orgunit/2.0/.../Marketing USA

What version of the product are you using? On what operating system?
I am using the 1.7.0.1 of Google Data API Setup

Please provide any additional information below.

Original issue reported on code.google.com by ad...@portaii.com on 12 Apr 2011 at 7:48

GoogleCodeExporter commented 8 years ago

Original comment by ccherub...@google.com on 12 Apr 2011 at 8:36

GoogleCodeExporter commented 8 years ago
Fixed in rev. 1083

Original comment by ccherub...@google.com on 12 Apr 2011 at 11:20