HughP / simal

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

URLs are not always encoded for submission #364

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When submitting the DOAP below, created by the DOAP creator, I get an error:

It seems that saving the project remotely did not succeed. The message from the 
remote server is :
'ERROR: Unable to add RDF data
'

I tried submitting the DOAP via the DOAP form and got a much more useful error:

Unable to add doap using RDF supplied

Error reported by: class uk.ac.osswatch.simal.wicket.doap.DoapFormPage

<snip/>

Caused by: org.xml.sax.SAXParseException: The reference to entity "w" must end 
with the ';' delimiter.

So it's just an encoding issue. In this case it will almost certainly be in the 
URL for the image of the project maintainer.

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
xmlns="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" 
xmlns:v="http://www.w3.org/2006/vcard/ns#" xmlns:dc="http://purl.org/dc/core/" 
xmlns:dcterms="http://purl.org/dc/terms/" 
xmlns:simal="http://oss-watch.ac.uk/ns/0.2/simal#" 
xmlns:cerif="http://www.dotac.info/ontology/CERIF2008.owl#" > <Project 
rdf:about="http://registry.oss-watch.ac.uk/projects/Onesocialweb"> 
<created>2010-12-10</created> <name>Onesocialweb</name> 
<shortname>Onesocialweb</shortname> <shortdesc xml:lang="en">Free open 
decentralized social network platform</shortdesc> <description xml:lang="en">We 
dream of a world where all social networks are connected and work together in a 
way similar to email. Our projects aims to define a language to bridge these 
networks and make it easy for social networks to join a bigger social 
web.</description> <homepage rdf:resource="http://onesocialweb.org/"/> 
<simal:project-director> <foaf:Person 
rdf:about="http://registry.oss-watch.ac.uk/people/536579e135825c8604eedd58d3dfdd
b83a84861d"> <foaf:name>Laurent Eschena</foaf:name> <foaf:depiction 
rdf:resource="http://groups.google.com/groups/profile/img?r=enfocus%3A%2F%2FKYfL
4i8AAAAKbUtYpqHVNcSHtnb9YG4iAUJ99pgzzshZPDOCGiEzmJY-AK1EE1ukkkPSSI4r7Rc&w=50&h=5
0/"/> <foaf:mbox rdf:resource="REMOVED for privacy" /> 
<foaf:mbox_sha1sum>536579e135825c8604eedd58d3dfddb83a84861d</foaf:mbox_sha1sum> 
</foaf:Person> </simal:project-director> <repository> <GitRepository> <location 
rdf:resource="https://github.com/onesocialweb"/> <browse 
rdf:resource="https://github.com/onesocialweb"/> </GitRepository> </repository> 
<bug-database rdf:resource="https://github.com/onesocialweb"/> <license 
rdf:resource="http://usefulinc.com/doap/licenses/asl20"/> </Project> </rdf:RDF> 

Original issue reported on code.google.com by ross.gardler on 10 Dec 2010 at 2:08