{"action":"reopened","issue":{"url":"https://api.github.com/repos/marklogic/java-client-api/issues/266","labels_url":"https://api.github.com/repos/marklogic/java-client-api/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/marklogic/java-client-api/issues/266/comments","events_url":"https://api.github.com/repos/marklogic/java-client-api/issues/266/events","html_url":"https://github.com/marklogic/java-client-api/issues/266","id":59871197,"number":266,"title":"Missing QName value in Json Document properties ","user":{"login":"georgeajit","id":8634482,"avatar_url":"https://avatars.githubusercontent.com/u/8634482?v=3","gravatar_id":"","url":"https://api.github.com/users/georgeajit","html_url":"https://github.com/georgeajit","followers_url":"https://api.github.com/users/georgeajit/followers","following_url":"https://api.github.com/users/georgeajit/following{/other_user}","gists_url":"https://api.github.com/users/georgeajit/gists{/gist_id}","starred_url":"https://api.github.com/users/georgeajit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgeajit/subscriptions","organizations_url":"https://api.github.com/users/georgeajit/orgs","repos_url":"https://api.github.com/users/georgeajit/repos","events_url":"https://api.github.com/users/georgeajit/events{/privacy}","received_events_url":"https://api.github.com/users/georgeajit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marklogic/java-client-api/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/marklogic/java-client-api/labels/minor","name":"minor","color":"0052cc"},{"url":"https://api.github.com/repos/marklogic/java-client-api/labels/test","name":"test","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"georgeajit","id":8634482,"avatar_url":"https://avatars.githubusercontent.com/u/8634482?v=3","gravatar_id":"","url":"https://api.github.com/users/georgeajit","html_url":"https://github.com/georgeajit","followers_url":"https://api.github.com/users/georgeajit/followers","following_url":"https://api.github.com/users/georgeajit/following{/other_user}","gists_url":"https://api.github.com/users/georgeajit/gists{/gist_id}","starred_url":"https://api.github.com/users/georgeajit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgeajit/subscriptions","organizations_url":"https://api.github.com/users/georgeajit/orgs","repos_url":"https://api.github.com/users/georgeajit/repos","events_url":"https://api.github.com/users/georgeajit/events{/privacy}","received_events_url":"https://api.github.com/users/georgeajit/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/marklogic/java-client-api/milestones/9","html_url":"https://github.com/marklogic/java-client-api/milestones/java-client-api-2.0.5","labels_url":"https://api.github.com/repos/marklogic/java-client-api/milestones/9/labels","id":995879,"number":9,"title":"java-client-api-2.0.5","description":"Bugfixes for the Java Client version compatible with MarkLogic Server 7.0-5","creator":{"login":"grechaw","id":382672,"avatar_url":"https://avatars.githubusercontent.com/u/382672?v=3","gravatar_id":"","url":"https://api.github.com/users/grechaw","html_url":"https://github.com/grechaw","followers_url":"https://api.github.com/users/grechaw/followers","following_url":"https://api.github.com/users/grechaw/following{/other_user}","gists_url":"https://api.github.com/users/grechaw/gists{/gist_id}","starred_url":"https://api.github.com/users/grechaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grechaw/subscriptions","organizations_url":"https://api.github.com/users/grechaw/orgs","repos_url":"https://api.github.com/users/grechaw/repos","events_url":"https://api.github.com/users/grechaw/events{/privacy}","received_events_url":"https://api.github.com/users/grechaw/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":8,"state":"open","created_at":"2015-02-25T21:01:41Z","updated_at":"2015-11-06T22:06:29Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-03-04T22:14:38Z","updated_at":"2015-11-06T22:06:29Z","closed_at":null,"body":"A Java test case inserts QName for a JSON document and then reads back the properties.  Here is the snippet of that test case.\r\n\r\nI am seeing difference between 7.0 (b2_0) and 8.0 (b3_0) when properties are read back and checked for ns. I checked with Sam and he is not aware of this issue.\r\n\r\nAfter talking with Erik, decided to assign this issue to Erik. \r\n\r\n// put metadata\r\nmetadataHandle.getProperties().put(new QName(\"http://www.example.com\", \"foo\"), \"bar\"); \r\n// write the doc with the metadata\r\nwriteDocumentUsingOutputStreamHandle(client, filename, \"/write-json-outputstreamhandle-metadata/\", metadataHandle, \"JSON\");\r\n// create handle to read metadata\r\nDocumentMetadataHandle readMetadataHandle = new DocumentMetadataHandle();\r\n// read metadata\r\nreadMetadataHandle = readMetadataFromDocument(client, \"/write-json-outputstreamhandle-metadata/\" + filename, \"JSON\");\r\n// get metadata values\r\nDocumentProperties properties = readMetadataHandle.getProperties();\r\n// Properties\r\nString expectedProperties = \"size:1|{http://www.example.com}foo:bar|\";\r\nString actualProperties = getDocumentPropertiesString(properties);\r\n\r\nIn 7.0 Query Console I see the example.com NS missing. Has something changed? The test is looking for example.com to be present.\r\n\r\nFrom 7.0 Query Console:\r\n\r\n    <?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n    <prop:properties xmlns:prop=\"http://marklogic.com/xdmp/property\">\r\n    <foo xsi:type=\"xs:string\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n    bar\r\n    </foo>\r\n    </prop:properties>\r\n\r\n\r\n\r\nFrom 8.0 Query Console:\r\n\r\n    <?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n    <prop:properties xmlns:prop=\"http://marklogic.com/xdmp/property\">\r\n      <foo xsi:type=\"xs:string\" xmlns=\"http://www.example.com\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">bar</foo>\r\n    </prop:properties>\r\n\r\nThis is a minor issue."}}