Woden
  1. Woden
  2. WODEN-172

FlickrHTTP-1G test fails due to NS prefix and interface extension errors

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: M8
    • Component/s: None
    • Labels:
      None

      Description

      The FlickrHTTP-1G testcase fails with messages like:

      Woden[Error],0:0,WSDL505,Could not create a QName from the string "activity.userComments" in element "

      {http://www.w3.org/ns/wsdl}

      input".

      for each occurrence of a xs:QName attribute value that does not contain a namespace prefix. Adding a default namespace declaration to the WSDL that is equivalent to the target NS will eliminate these errors, but this is not solving the fundamental problem. This problem is that when Woden attempts to create a QName object from such a prefix-less xs:QName value, it should simply pass a null value as the namespaceURI argument to the QName ctor. Instead it assumes there has been some error resolving a namespace prefix to a namespace URI and throws a WSDLException.

      The solution is to check if a prefix was present in the xs:QName value before attempting prefix resolution and if not, then just pass null to the ctor as above.

        Activity

        John Kaputin made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        John Kaputin made changes -
        Field Original Value New Value
        Summary FlickrHTTP-1G test fails because xs:QName values without a prefix are handled incorrectly FlickrHTTP-1G test fails due to NS prefix and interface extension errors
        John Kaputin created issue -

          People

          • Assignee:
            John Kaputin
            Reporter:
            John Kaputin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development