HughP / simal

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

Ampersands in URLs in the DOAP RDF/XML not processed correctly by addProject REST API #328

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I add a project through the REST API and there is an ampersand in one of 
the URLs, eg. the homepage is http://www.project.com?a=b&c=d, the conversion 
from request to RESTcommands breaks the RDF/XML because of the ampersand.

Note the '&' is already escaped when submitted correctly, ie. in the example 
the url will be http://www.project.com?a=b&c=d

Original issue reported on code.google.com by sander.v...@oucs.ox.ac.uk on 23 Jul 2010 at 9:26

GoogleCodeExporter commented 9 years ago
Combination of bug in Wookie [1] and incorrect processing of the REST API.
It's not (easily?) possible to use parameters with ampersands, so refactored to 
post as proper text/xml request with the DOAP RDF in the body of the request.

[1] https://issues.apache.org/jira/browse/WOOKIE-148

Original comment by sander.v...@oucs.ox.ac.uk on 23 Jul 2010 at 10:38

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1978.

Original comment by sander.v...@oucs.ox.ac.uk on 23 Jul 2010 at 10:48