You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Lucas Lampietti (JIRA)" <ji...@apache.org> on 2007/10/31 00:06:50 UTC

[jira] Created: (CXF-1155) Parameters are not all processed if non ordered as parts...

Parameters are not all processed if non ordered as parts...
-----------------------------------------------------------

                 Key: CXF-1155
                 URL: https://issues.apache.org/jira/browse/CXF-1155
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.0.2
            Reporter: Lucas Lampietti
            Priority: Critical
             Fix For: 2.0.3


Parts are read only one time with the iterator in DocLiteralInInterceptor.getPara(), creating an uncomplete list in case of non ordered parameters.
I think a temporary list of parts should be used by getPara() in place of an iterator, remove the part from this temporary list when parameter matched, and then redo the loop from beginning of this list.

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


[jira] Commented: (CXF-1155) Parameters are not all processed if non ordered as parts...

Posted by "Lucas Lampietti (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559773#action_12559773 ] 

Lucas Lampietti commented on CXF-1155:
--------------------------------------

Sorry, i forgot to tell you this happens with a RESTful service with JSON support, where inbound stream is build by a framework (mootools) which doesn't respect order of the passed in elements (in the same order as defined in the wsdl) when it makes XHR

> Parameters are not all processed if non ordered as parts...
> -----------------------------------------------------------
>
>                 Key: CXF-1155
>                 URL: https://issues.apache.org/jira/browse/CXF-1155
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Lucas Lampietti
>            Priority: Critical
>
> Parts are read only one time with the iterator in DocLiteralInInterceptor.getPara(), creating an uncomplete list in case of non ordered parameters.
> I think a temporary list of parts should be used by getPara() in place of an iterator, remove the part from this temporary list when parameter matched, and then redo the loop from beginning of this list.

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


[jira] Commented: (CXF-1155) Parameters are not all processed if non ordered as parts...

Posted by "Lucas Lampietti (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539064 ] 

Lucas Lampietti commented on CXF-1155:
--------------------------------------

Yes, parts are in the order they appear in the wsdl message, but elements in the stream are not necessarily in the same order

> Parameters are not all processed if non ordered as parts...
> -----------------------------------------------------------
>
>                 Key: CXF-1155
>                 URL: https://issues.apache.org/jira/browse/CXF-1155
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Lucas Lampietti
>            Priority: Critical
>             Fix For: 2.0.3
>
>
> Parts are read only one time with the iterator in DocLiteralInInterceptor.getPara(), creating an uncomplete list in case of non ordered parameters.
> I think a temporary list of parts should be used by getPara() in place of an iterator, remove the part from this temporary list when parameter matched, and then redo the loop from beginning of this list.

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


[jira] Commented: (CXF-1155) Parameters are not all processed if non ordered as parts...

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539066 ] 

Daniel Kulp commented on CXF-1155:
----------------------------------


I guess I'd have to see a WSDL and the SOAP message.   I'm still failing to see how this is at all possible for doc/lit.

For doc/lit/bare,  the elements in the stream must match the order of the parts in the wsdl message.

For doc/lit/wrapped, the wrapper type is a sequence, and the elements must be in the order defined by the sequence.



> Parameters are not all processed if non ordered as parts...
> -----------------------------------------------------------
>
>                 Key: CXF-1155
>                 URL: https://issues.apache.org/jira/browse/CXF-1155
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Lucas Lampietti
>            Priority: Critical
>             Fix For: 2.0.3
>
>
> Parts are read only one time with the iterator in DocLiteralInInterceptor.getPara(), creating an uncomplete list in case of non ordered parameters.
> I think a temporary list of parts should be used by getPara() in place of an iterator, remove the part from this temporary list when parameter matched, and then redo the loop from beginning of this list.

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


[jira] Commented: (CXF-1155) Parameters are not all processed if non ordered as parts...

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539060 ] 

Daniel Kulp commented on CXF-1155:
----------------------------------


I don't quite understand.    According to spec, the parts MUST come in in the order they appear in the wsdl message.  Why/how would they be out of order?



> Parameters are not all processed if non ordered as parts...
> -----------------------------------------------------------
>
>                 Key: CXF-1155
>                 URL: https://issues.apache.org/jira/browse/CXF-1155
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Lucas Lampietti
>            Priority: Critical
>             Fix For: 2.0.3
>
>
> Parts are read only one time with the iterator in DocLiteralInInterceptor.getPara(), creating an uncomplete list in case of non ordered parameters.
> I think a temporary list of parts should be used by getPara() in place of an iterator, remove the part from this temporary list when parameter matched, and then redo the loop from beginning of this list.

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