{"action":"created","issue":{"url":"https://api.github.com/repos/pywbem/pywbem/issues/255","repository_url":"https://api.github.com/repos/pywbem/pywbem","labels_url":"https://api.github.com/repos/pywbem/pywbem/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/pywbem/pywbem/issues/255/comments","events_url":"https://api.github.com/repos/pywbem/pywbem/issues/255/events","html_url":"https://github.com/pywbem/pywbem/issues/255","id":150570963,"number":255,"title":"ConnectionError: Illegal value for NAMESPACE.NAME attribute for \"/interop\"","user":{"login":"andy-maier","id":8939758,"avatar_url":"https://avatars.githubusercontent.com/u/8939758?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-maier","html_url":"https://github.com/andy-maier","followers_url":"https://api.github.com/users/andy-maier/followers","following_url":"https://api.github.com/users/andy-maier/following{/other_user}","gists_url":"https://api.github.com/users/andy-maier/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-maier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-maier/subscriptions","organizations_url":"https://api.github.com/users/andy-maier/orgs","repos_url":"https://api.github.com/users/andy-maier/repos","events_url":"https://api.github.com/users/andy-maier/events{/privacy}","received_events_url":"https://api.github.com/users/andy-maier/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pywbem/pywbem/labels/discussion%20needed","name":"discussion needed","color":"159818"},{"url":"https://api.github.com/repos/pywbem/pywbem/labels/release:%20mandatory","name":"release: mandatory","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"KSchopmeyer","id":2340817,"avatar_url":"https://avatars.githubusercontent.com/u/2340817?v=3","gravatar_id":"","url":"https://api.github.com/users/KSchopmeyer","html_url":"https://github.com/KSchopmeyer","followers_url":"https://api.github.com/users/KSchopmeyer/followers","following_url":"https://api.github.com/users/KSchopmeyer/following{/other_user}","gists_url":"https://api.github.com/users/KSchopmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/KSchopmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KSchopmeyer/subscriptions","organizations_url":"https://api.github.com/users/KSchopmeyer/orgs","repos_url":"https://api.github.com/users/KSchopmeyer/repos","events_url":"https://api.github.com/users/KSchopmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/KSchopmeyer/received_events","type":"User","site_admin":false},"assignees":[{"login":"KSchopmeyer","id":2340817,"avatar_url":"https://avatars.githubusercontent.com/u/2340817?v=3","gravatar_id":"","url":"https://api.github.com/users/KSchopmeyer","html_url":"https://github.com/KSchopmeyer","followers_url":"https://api.github.com/users/KSchopmeyer/followers","following_url":"https://api.github.com/users/KSchopmeyer/following{/other_user}","gists_url":"https://api.github.com/users/KSchopmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/KSchopmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KSchopmeyer/subscriptions","organizations_url":"https://api.github.com/users/KSchopmeyer/orgs","repos_url":"https://api.github.com/users/KSchopmeyer/repos","events_url":"https://api.github.com/users/KSchopmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/KSchopmeyer/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/pywbem/pywbem/milestones/2","html_url":"https://github.com/pywbem/pywbem/milestones/0.9.0","labels_url":"https://api.github.com/repos/pywbem/pywbem/milestones/2/labels","id":1526630,"number":2,"title":"0.9.0","description":null,"creator":{"login":"andy-maier","id":8939758,"avatar_url":"https://avatars.githubusercontent.com/u/8939758?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-maier","html_url":"https://github.com/andy-maier","followers_url":"https://api.github.com/users/andy-maier/followers","following_url":"https://api.github.com/users/andy-maier/following{/other_user}","gists_url":"https://api.github.com/users/andy-maier/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-maier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-maier/subscriptions","organizations_url":"https://api.github.com/users/andy-maier/orgs","repos_url":"https://api.github.com/users/andy-maier/repos","events_url":"https://api.github.com/users/andy-maier/events{/privacy}","received_events_url":"https://api.github.com/users/andy-maier/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":237,"state":"open","created_at":"2016-01-20T17:44:04Z","updated_at":"2016-08-02T13:06:20Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-04-23T16:16:51Z","updated_at":"2016-08-02T13:17:41Z","closed_at":null,"body":"One of the standard names defined in DSP1033 for the Interop namespace is `\"/interop\"`, i.e. with a leading slash.\r\n\r\nOpenPegasus causes this to be raised in PyWBEM after returning a CIMError:\r\n\r\n    Traceback (most recent call last):\r\n      File \"<stdin>\", line 1, in <module>\r\n      File \"pywbem/server/__init__.py\", line 136, in determine_interop_ns\r\n        self._conn.EnumerateInstanceNames(test_classname, namespace=ns)\r\n      File \"pywbem/cim_operations.py\", line 1117, in EnumerateInstanceNames\r\n        **extra)\r\n      File \"pywbem/cim_operations.py\", line 670, in _imethodcall\r\n        timeout=self.timeout)\r\n      File \"pywbem/cim_http.py\", line 673, in wbem_request\r\n        raise ConnectionError(exc_str)\r\n    pywbem.exceptions.ConnectionError: CIMError: request-not-valid, PGErrorDetail: Semantic error: on line 2: Illegal value for NAMESPACE.NAME attribute\r\n\r\nThe reason for that seems to be that the PyWBEM client splits this namespace name as usual at the slash character, producing two NAMESPACE elements in the CIM-XML payload (this is from `conn.last_request`):\r\n\r\n    <CIM CIMVERSION=\"2.0\" DTDVERSION=\"2.0\">\r\n      <MESSAGE ID=\"1001\" PROTOCOLVERSION=\"1.0\">\r\n        <SIMPLEREQ>\r\n          <IMETHODCALL NAME=\"EnumerateInstanceNames\">\r\n            <LOCALNAMESPACEPATH>\r\n              <NAMESPACE NAME=\"\"/>\r\n              <NAMESPACE NAME=\"interop\"/>\r\n            </LOCALNAMESPACEPATH>\r\n            <IPARAMVALUE NAME=\"ClassName\">\r\n              <CLASSNAME NAME=\"CIM_Namespace\"/>\r\n            </IPARAMVALUE>\r\n          </IMETHODCALL>\r\n        </SIMPLEREQ>\r\n      </MESSAGE>\r\n    </CIM>\r\n\r\nI think my first question would be: Given that `\"/interop\"` is one of the official Interop namespace names, how did we think it would be represented in CIM-XML?\r\n\r\nIn other words, do we have a problem in the standard, or a bug in OP?\r\nThis is with OP 2.12.0 on RHEL 6.7.\r\n"},"comment":{"url":"https://api.github.com/repos/pywbem/pywbem/issues/comments/236900920","html_url":"https://github.com/pywbem/pywbem/issues/255#issuecomment-236900920","issue_url":"https://api.github.com/repos/pywbem/pywbem/issues/255","id":236900920,"user":{"login":"andy-maier","id":8939758,"avatar_url":"https://avatars.githubusercontent.com/u/8939758?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-maier","html_url":"https://github.com/andy-maier","followers_url":"https://api.github.com/users/andy-maier/followers","following_url":"https://api.github.com/users/andy-maier/following{/other_user}","gists_url":"https://api.github.com/users/andy-maier/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-maier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-maier/subscriptions","organizations_url":"https://api.github.com/users/andy-maier/orgs","repos_url":"https://api.github.com/users/andy-maier/repos","events_url":"https://api.github.com/users/andy-maier/events{/privacy}","received_events_url":"https://api.github.com/users/andy-maier/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T13:17:41Z","updated_at":"2016-08-02T13:17:41Z","body":"the work for pywbem is then to remove a possibly present leading slash from namespace names it gets from its caller, before it puts it into the CIM-XML request.\r\n\r\nWe agreed to do this in 0.9.0."}}
{"actor":{"display_login":"andy-maier"}}