You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andreas Kuhtz (JIRA)" <ji...@apache.org> on 2011/07/23 09:13:09 UTC

[jira] [Created] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

Transform feature can loop endless in combination with PartialXMLStreamReader
-----------------------------------------------------------------------------

                 Key: CXF-3681
                 URL: https://issues.apache.org/jira/browse/CXF-3681
             Project: CXF
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.4.1
         Environment: WinXP, Java SDK 1.6.0_26
            Reporter: Andreas Kuhtz
         Attachments: cxf-3681-patch.diff

A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.

See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

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

Andreas Kuhtz updated CXF-3681:
-------------------------------

    Attachment: cxf-3681-patch2.diff

New unit tests that can be used to reproduce the problem. See the comment in the tests.

> Transform feature can loop endless in combination with PartialXMLStreamReader
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3681
>                 URL: https://issues.apache.org/jira/browse/CXF-3681
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1
>         Environment: WinXP, Java SDK 1.6.0_26
>            Reporter: Andreas Kuhtz
>            Assignee: Sergey Beryozkin
>         Attachments: cxf-3681-patch.diff, cxf-3681-patch2.diff
>
>
> A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.
> See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

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

Andreas Kuhtz updated CXF-3681:
-------------------------------

    Attachment: cxf-3681-patch5.diff

Updated test. cxf-3681-patch4.diff was invalid.

> Transform feature can loop endless in combination with PartialXMLStreamReader
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3681
>                 URL: https://issues.apache.org/jira/browse/CXF-3681
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1
>         Environment: WinXP, Java SDK 1.6.0_26
>            Reporter: Andreas Kuhtz
>            Assignee: Sergey Beryozkin
>         Attachments: cxf-3681-patch.diff, cxf-3681-patch2.diff, cxf-3681-patch3.diff, cxf-3681-patch5.diff
>
>
> A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.
> See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

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

Andreas Kuhtz updated CXF-3681:
-------------------------------

    Attachment: cxf-3681-patch.diff

> Transform feature can loop endless in combination with PartialXMLStreamReader
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3681
>                 URL: https://issues.apache.org/jira/browse/CXF-3681
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1
>         Environment: WinXP, Java SDK 1.6.0_26
>            Reporter: Andreas Kuhtz
>         Attachments: cxf-3681-patch.diff
>
>
> A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.
> See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

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

Sergey Beryozkin resolved CXF-3681.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.5
                   2.4.2
         Assignee: Aki Yoshida  (was: Sergey Beryozkin)

Thanks Aki for getting it resolved

> Transform feature can loop endless in combination with PartialXMLStreamReader
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3681
>                 URL: https://issues.apache.org/jira/browse/CXF-3681
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1
>         Environment: WinXP, Java SDK 1.6.0_26
>            Reporter: Andreas Kuhtz
>            Assignee: Aki Yoshida
>             Fix For: 2.4.2, 2.5
>
>         Attachments: cxf-3681-patch.diff, cxf-3681-patch2.diff, cxf-3681-patch3.diff, cxf-3681-patch5.diff, cxf-3681-patch6.diff
>
>
> A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.
> See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

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

Andreas Kuhtz updated CXF-3681:
-------------------------------

    Attachment: cxf-3681-patch5.diff

> Transform feature can loop endless in combination with PartialXMLStreamReader
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3681
>                 URL: https://issues.apache.org/jira/browse/CXF-3681
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1
>         Environment: WinXP, Java SDK 1.6.0_26
>            Reporter: Andreas Kuhtz
>            Assignee: Sergey Beryozkin
>         Attachments: cxf-3681-patch.diff, cxf-3681-patch2.diff, cxf-3681-patch3.diff, cxf-3681-patch5.diff
>
>
> A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.
> See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

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

Sergey Beryozkin reassigned CXF-3681:
-------------------------------------

    Assignee: Sergey Beryozkin

> Transform feature can loop endless in combination with PartialXMLStreamReader
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3681
>                 URL: https://issues.apache.org/jira/browse/CXF-3681
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1
>         Environment: WinXP, Java SDK 1.6.0_26
>            Reporter: Andreas Kuhtz
>            Assignee: Sergey Beryozkin
>         Attachments: cxf-3681-patch.diff
>
>
> A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.
> See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

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

Andreas Kuhtz updated CXF-3681:
-------------------------------

    Attachment:     (was: cxf-3681-patch5.diff)

> Transform feature can loop endless in combination with PartialXMLStreamReader
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3681
>                 URL: https://issues.apache.org/jira/browse/CXF-3681
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1
>         Environment: WinXP, Java SDK 1.6.0_26
>            Reporter: Andreas Kuhtz
>            Assignee: Sergey Beryozkin
>         Attachments: cxf-3681-patch.diff, cxf-3681-patch2.diff, cxf-3681-patch3.diff, cxf-3681-patch5.diff
>
>
> A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.
> See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

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

Andreas Kuhtz updated CXF-3681:
-------------------------------

    Attachment: cxf-3681-patch4.diff

New unit test. The PartialXMLStreamReader does not work correct. It must return only the header part with an empty body but currently it returns the body with content. This leads to the problem that the DocLiteralInInterceptor fails.

> Transform feature can loop endless in combination with PartialXMLStreamReader
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3681
>                 URL: https://issues.apache.org/jira/browse/CXF-3681
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1
>         Environment: WinXP, Java SDK 1.6.0_26
>            Reporter: Andreas Kuhtz
>            Assignee: Sergey Beryozkin
>         Attachments: cxf-3681-patch.diff, cxf-3681-patch2.diff, cxf-3681-patch3.diff, cxf-3681-patch4.diff
>
>
> A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.
> See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

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

Andreas Kuhtz updated CXF-3681:
-------------------------------

    Attachment:     (was: cxf-3681-patch4.diff)

> Transform feature can loop endless in combination with PartialXMLStreamReader
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3681
>                 URL: https://issues.apache.org/jira/browse/CXF-3681
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1
>         Environment: WinXP, Java SDK 1.6.0_26
>            Reporter: Andreas Kuhtz
>            Assignee: Sergey Beryozkin
>         Attachments: cxf-3681-patch.diff, cxf-3681-patch2.diff, cxf-3681-patch3.diff, cxf-3681-patch5.diff
>
>
> A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.
> See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

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

Andreas Kuhtz updated CXF-3681:
-------------------------------

    Attachment: cxf-3681-patch6.diff

Added new method notGetElement to test that verifies that an element is not in the document.
The cxf-3681-patch6.diff is a replacement for cxf-3681-patch5.diff.

> Transform feature can loop endless in combination with PartialXMLStreamReader
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3681
>                 URL: https://issues.apache.org/jira/browse/CXF-3681
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1
>         Environment: WinXP, Java SDK 1.6.0_26
>            Reporter: Andreas Kuhtz
>            Assignee: Sergey Beryozkin
>         Attachments: cxf-3681-patch.diff, cxf-3681-patch2.diff, cxf-3681-patch3.diff, cxf-3681-patch5.diff, cxf-3681-patch6.diff
>
>
> A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.
> See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

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

Sergey Beryozkin commented on CXF-3681:
---------------------------------------

Thanks - I'm on it...

> Transform feature can loop endless in combination with PartialXMLStreamReader
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3681
>                 URL: https://issues.apache.org/jira/browse/CXF-3681
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1
>         Environment: WinXP, Java SDK 1.6.0_26
>            Reporter: Andreas Kuhtz
>            Assignee: Sergey Beryozkin
>         Attachments: cxf-3681-patch.diff, cxf-3681-patch2.diff, cxf-3681-patch3.diff
>
>
> A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.
> See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

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

Andreas Kuhtz updated CXF-3681:
-------------------------------

    Attachment: cxf-3681-patch3.diff

New unit test for the partial stream reader.

> Transform feature can loop endless in combination with PartialXMLStreamReader
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3681
>                 URL: https://issues.apache.org/jira/browse/CXF-3681
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1
>         Environment: WinXP, Java SDK 1.6.0_26
>            Reporter: Andreas Kuhtz
>            Assignee: Sergey Beryozkin
>         Attachments: cxf-3681-patch.diff, cxf-3681-patch2.diff, cxf-3681-patch3.diff
>
>
> A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.
> See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-3681) Transform feature can loop endless in combination with PartialXMLStreamReader

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

Aki Yoshida commented on CXF-3681:
----------------------------------

Hi Sergey,
glad to see you are back.

I submitted my version with some new features we discussed. I left out
the attributes-transformation feature, as I wanted to discuss with you
about it.

InTransformReader takes the inAttributes map that allows you to
translate/drop some attributes.
However, this needs to be worked out. Currently, we can use
key="aname1" value="aname2" to change attribute name form aname1 aname2 and
key="aname1" value="" to delete attribute aname1.

But this operaiton is limited for the global context and not for the
local element context (i.e., we can't refer to an attribute within a
specific element).

So we need a way to refer to an attribute within an element. But I am
not sure which syntax to use.

One approach would be to use the xpath syntax.
for example,
to change attribute aname1 within element ename to aname2,
how should we set inAttributes map?
1. key="ename/@aname1" value="aname2".
2. key="ename/@aname1" value="@aname2"
3. key="ename/@aname1" value="ename/@aname2"
4. others?

I think I am for 1 or 2. Option 3 can imply the potential move of the
attribute to another element, so I don't like it, as it complicates
the logic too much.

The advantage of option 2 is that we can reuse inElements map and do
not need inAttributesMap. This approach can be extended to do
transformation from an element to an attribute or from an attribute to
an element. That makes it more complicated but it's kind of cute.

For working on attributes in the global context, we can omit the
element part in this case.
key="@aname1" ...

Once we decide on this syntax, we can derive an analogue syntax for
the attribute-append as in the element-append.

regards, aki



> Transform feature can loop endless in combination with PartialXMLStreamReader
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3681
>                 URL: https://issues.apache.org/jira/browse/CXF-3681
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4.1
>         Environment: WinXP, Java SDK 1.6.0_26
>            Reporter: Andreas Kuhtz
>            Assignee: Aki Yoshida
>             Fix For: 2.4.2, 2.5
>
>         Attachments: cxf-3681-patch.diff, cxf-3681-patch2.diff, cxf-3681-patch3.diff, cxf-3681-patch5.diff, cxf-3681-patch6.diff
>
>
> A bug in the InTransformReader can cause an endless loop in combination with PartialXMLStreamReader. The attached patch contains the fix and more tests for InTransformReader but currently none for the combination with PartialXMLStreamReader.
> See also http://cxf.547215.n5.nabble.com/Problem-with-new-transform-feature-td4599185.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira