You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by "Arthur Ryman (JIRA)" <ji...@apache.org> on 2006/04/26 23:22:26 UTC

[jira] Created: (WODEN-10) Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl

Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl
-----------------------------------------------------------------------

         Key: WODEN-10
         URL: http://issues.apache.org/jira/browse/WODEN-10
     Project: Woden
        Type: Bug

    Reporter: Arthur Ryman


This test is failing because a schema location uses a fragment identifier to refer to a schema located in the same document. The schema parser incorrectly assumes the URL points to a schema document, i.e. it ignores the fragment identifier.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


[jira] Commented: (WODEN-10) Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WODEN-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467788 ] 

John Kaputin commented on WODEN-10:
-----------------------------------

r500223 provides the fix for the Woden OM implemenation.

> Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl
> -----------------------------------------------------------------------
>
>                 Key: WODEN-10
>                 URL: https://issues.apache.org/jira/browse/WODEN-10
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: John Kaputin
>            Priority: Critical
>             Fix For: M7
>
>
> This test is failing because a schema location uses a fragment identifier to refer to a schema located in the same document. The schema parser incorrectly assumes the URL points to a schema document, i.e. it ignores the fragment identifier.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


[jira] Updated: (WODEN-10) Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WODEN-10?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Kaputin updated WODEN-10:
------------------------------

    Priority: Critical  (was: Major)

> Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl
> -----------------------------------------------------------------------
>
>                 Key: WODEN-10
>                 URL: https://issues.apache.org/jira/browse/WODEN-10
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: John Kaputin
>            Priority: Critical
>             Fix For: M7
>
>
> This test is failing because a schema location uses a fragment identifier to refer to a schema located in the same document. The schema parser incorrectly assumes the URL points to a schema document, i.e. it ignores the fragment identifier.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


[jira] Updated: (WODEN-10) Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl

Posted by "Lawrence Mandel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-10?page=all ]

Lawrence Mandel updated WODEN-10:
---------------------------------

    Fix Version/s: M7
         Assignee: John Kaputin

> Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl
> -----------------------------------------------------------------------
>
>                 Key: WODEN-10
>                 URL: http://issues.apache.org/jira/browse/WODEN-10
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: John Kaputin
>             Fix For: M7
>
>
> This test is failing because a schema location uses a fragment identifier to refer to a schema located in the same document. The schema parser incorrectly assumes the URL points to a schema document, i.e. it ignores the fragment identifier.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


[jira] Resolved: (WODEN-10) Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WODEN-10?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Kaputin resolved WODEN-10.
-------------------------------

    Resolution: Fixed

Fixed.

> Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl
> -----------------------------------------------------------------------
>
>                 Key: WODEN-10
>                 URL: https://issues.apache.org/jira/browse/WODEN-10
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: John Kaputin
>            Priority: Critical
>             Fix For: M7
>
>
> This test is failing because a schema location uses a fragment identifier to refer to a schema located in the same document. The schema parser incorrectly assumes the URL points to a schema document, i.e. it ignores the fragment identifier.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


[jira] Commented: (WODEN-10) Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WODEN-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466201 ] 

John Kaputin commented on WODEN-10:
-----------------------------------

error message from XmlSchema has changed to:
Woden[Error],0:0,WSDL521,Could not parse an inline schema in the WSDL at URL "file:/C:/workspace/woden/woden/downloads/w3c/documents/good/SchemaId-1G/schemaIds.wsdl".,java.lang.RuntimeException:org.apache.ws.commons.schema.XmlSchemaException: An imported schema was announced to have the namespace http://greath.example.com/2004/schemas/reservationItems, but has the namespace http://greath.example.com/2004/services/retrieveDetails

In attempting to resolve the schema import, XmlSchema retrieves the root WSDL document containing the two inlined schemas, but assumes this document is a schema document with a TNS that matches the imported namespace - hence mismatched namespace error message.

> Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl
> -----------------------------------------------------------------------
>
>                 Key: WODEN-10
>                 URL: https://issues.apache.org/jira/browse/WODEN-10
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: John Kaputin
>            Priority: Critical
>             Fix For: M7
>
>
> This test is failing because a schema location uses a fragment identifier to refer to a schema located in the same document. The schema parser incorrectly assumes the URL points to a schema document, i.e. it ignores the fragment identifier.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


[jira] Updated: (WODEN-10) Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl

Posted by "Lawrence Mandel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-10?page=all ]

Lawrence Mandel updated WODEN-10:
---------------------------------

    Component: Parser

> Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl
> -----------------------------------------------------------------------
>
>          Key: WODEN-10
>          URL: http://issues.apache.org/jira/browse/WODEN-10
>      Project: Woden
>         Type: Bug

>   Components: Parser
>     Reporter: Arthur Ryman

>
> This test is failing because a schema location uses a fragment identifier to refer to a schema located in the same document. The schema parser incorrectly assumes the URL points to a schema document, i.e. it ignores the fragment identifier.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


[jira] Commented: (WODEN-10) Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl

Posted by "Arthur Ryman (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-10?page=comments#action_12416927 ] 

Arthur Ryman commented on WODEN-10:
-----------------------------------

The way to fix this is described in [1]

[1] http://issues.apache.org/jira/browse/XERCESJ-1100

> Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl
> -----------------------------------------------------------------------
>
>          Key: WODEN-10
>          URL: http://issues.apache.org/jira/browse/WODEN-10
>      Project: Woden
>         Type: Bug

>   Components: Parser
>     Reporter: Arthur Ryman

>
> This test is failing because a schema location uses a fragment identifier to refer to a schema located in the same document. The schema parser incorrectly assumes the URL points to a schema document, i.e. it ignores the fragment identifier.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


[jira] Commented: (WODEN-10) Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WODEN-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467223 ] 

John Kaputin commented on WODEN-10:
-----------------------------------

r499639 provides the fix for this WSDL 2.0 testcase. At least, for the DOM implementation. I'll apply the fix to the OM implementation too.

The solution suggested in XERCESJ-100 was to provide some behaviour in an XMLEntityResolver registered with the DOM parser to resolve the fragid to a schema element, serialize that schema element to a byte stream and put the byte stream in the InputSource object passed to the DOM parser.

I took a similar approach for this fix, but instead used the SchemaResolverAdapter class that Woden registers with XmlSchemaCollection (effectively, the schema parser). This class and its subclass, DOMSchemaResolverAdapter, now have behaviour that resolves the fragid to a schema element, serializes this to a byte steam and passes this in an InputSource to the XmlSchemaCollection.read method.  When XmlSchema is invoked by Woden to parse an inline schema and it encounters an xs:import inside the inlined schema that contains a fragid in its schemaLocation, the SchemaResolverAdapter.resolveEntity method gets invoked by XmlSchema which triggers the new behaviour to resolve the fragid.



> Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl
> -----------------------------------------------------------------------
>
>                 Key: WODEN-10
>                 URL: https://issues.apache.org/jira/browse/WODEN-10
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: John Kaputin
>            Priority: Critical
>             Fix For: M7
>
>
> This test is failing because a schema location uses a fragment identifier to refer to a schema located in the same document. The schema parser incorrectly assumes the URL points to a schema document, i.e. it ignores the fragment identifier.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


[jira] Commented: (WODEN-10) Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl

Posted by "Arthur Ryman (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-10?page=comments#action_12376556 ] 

Arthur Ryman commented on WODEN-10:
-----------------------------------

Here is the error message:

Woden[Warning],0:0,WSDL521,Could not parse an inline schema in the WSDL at URL "file:/D:/workspaces/Woden/test-suite/documents/good/SchemaId-1G/schemaIds.wsdl".,org.apache.ws.commons.schema.XmlSchemaException:Document root element is missing.

> Test Case Failure: test-suite/documents/good/SchemaId-1G/schemaIds.wsdl
> -----------------------------------------------------------------------
>
>          Key: WODEN-10
>          URL: http://issues.apache.org/jira/browse/WODEN-10
>      Project: Woden
>         Type: Bug

>     Reporter: Arthur Ryman

>
> This test is failing because a schema location uses a fragment identifier to refer to a schema located in the same document. The schema parser incorrectly assumes the URL points to a schema document, i.e. it ignores the fragment identifier.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org