{"action":"closed","issue":{"url":"https://api.github.com/repos/rometools/rome-propono/issues/3","labels_url":"https://api.github.com/repos/rometools/rome-propono/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rometools/rome-propono/issues/3/comments","events_url":"https://api.github.com/repos/rometools/rome-propono/issues/3/events","html_url":"https://github.com/rometools/rome-propono/issues/3","id":20505572,"number":3,"title":"'Category' in service document not correctly parsed","user":{"login":"PatrickGotthard","id":2995260,"avatar_url":"https://avatars.githubusercontent.com/u/2995260?v=3","gravatar_id":"","url":"https://api.github.com/users/PatrickGotthard","html_url":"https://github.com/PatrickGotthard","followers_url":"https://api.github.com/users/PatrickGotthard/followers","following_url":"https://api.github.com/users/PatrickGotthard/following{/other_user}","gists_url":"https://api.github.com/users/PatrickGotthard/gists{/gist_id}","starred_url":"https://api.github.com/users/PatrickGotthard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatrickGotthard/subscriptions","organizations_url":"https://api.github.com/users/PatrickGotthard/orgs","repos_url":"https://api.github.com/users/PatrickGotthard/repos","events_url":"https://api.github.com/users/PatrickGotthard/events{/privacy}","received_events_url":"https://api.github.com/users/PatrickGotthard/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-10-04T06:57:49Z","updated_at":"2015-02-14T06:48:04Z","closed_at":"2015-02-14T06:48:04Z","body":"<pre>=== This issue was migrated from JIRA ===\r\nType: Bug\r\nPriority: Major\r\nStatus: Open\r\nResolution: UNRESOLVED\r\nReported by: floysand\r\nAssigned to: ROME Jira Lead\r\nCreated: Fri Jan 29 14:54:34 CET 2010\r\nUpdated: Wed Mar 31 10:41:33 CEST 2010\r\nResolved: Wed Mar 31 10:41:33 CEST 2010\r\nVersion: current\r\nFix version: milestone 1\r\nJIRA Link: <a href=\"https://rometools.jira.com/browse/ROME-139\">https://rometools.jira.com/browse/ROME-139</a>\r\n=========================================</pre>\r\nThere is a problem with attributes on \"category\" elements of a service document.\r\n\r\nThe rome propono library won't recognize the attribute \"term\" (or any other attributes) unless they are prefixed with namespace \"atom:\".\r\n\r\nThis prefix on the attributes should not be needed if the namespaces are defined correctly. An example of this can be seen in the examples provided by the APP RFC: <a href=\"http://www.atomenabled.org/developers/protocol/atom-protocol-spec.php#appdocs_example\" class=\"external-link\" rel=\"nofollow\">http://www.atomenabled.org/developers/protocol/atom&#45;protocol&#45;spec.php#appdocs&#95;example</a>.\r\n\r\nIf I use the following code to parse the service document given in the example, the attributes of the \"atom:category\" elements in the second collection are null.\r\n\r\n<pre>// jdom_doc is a org.jdom.Document of the example atom service document\r\nAtomService atomService = ClientAtomService.documentToService(jdom_doc);</pre>\r\n\r\nThe term attributes and scheme attributes should both have a value, as the draft from the example shows:\r\n<pre>&lt;categories fixed=\"yes\"&gt;\r\n\t&lt;atom:category scheme=\"http://example.org/extra-cats/\" term=\"joke\" /&gt;\r\n\t&lt;atom:category scheme=\"http://example.org/extra-cats/\" term=\"serious\" /&gt;\r\n&lt;/categories&gt;</pre>\r\nI also tried to make a call to cateogoriesToElement() on the \"Categories\" object, but this throws an exception due to that a null value is not allowed for the \"term\" attribute.\r\n\r\nIf I prefix the attributes of the \"atom:cateogory\" with \"atom:\", then all is fine."}}