You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "viktar_starynski (JIRA)" <ji...@apache.org> on 2011/08/22 10:19:29 UTC

[jira] [Created] (CXF-3751) JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)

JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)
----------------------------------------------------------------------------------------------

                 Key: CXF-3751
                 URL: https://issues.apache.org/jira/browse/CXF-3751
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 2.4.2
            Reporter: viktar_starynski


Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter decoded which equals to !isEncoded, therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.

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

        

[jira] [Updated] (CXF-3751) JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)

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

viktar_starynski updated CXF-3751:
----------------------------------

    Description: 
Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter "decoded" which equals to "!isEncoded", therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.

Therefore its impossible use @FormParam annotation when you use binary multipart file with it in method signature, because when we use it together CXF try to decode binary file content (as field of form) and crash on unrecognized symbols (with txt files - its ok)

P/S: Related to Media Type "multipart/form-data"

"decoded" param need to be equal to "isEncoded".

  was:
Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter decoded which equals to !isEncoded, therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.

Therefore its impossible use @FormParam annotation when you use binary multipart file with it in method signature, because when we use it together CXF try to decode binary file content (as field of form) and crash on unrecognized symbols (with txt files - its ok)

P/S: Related to Media Type "multipart/form-data"

Decode param need to be equal isEncoded.


> JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)
> ----------------------------------------------------------------------------------------------
>
>                 Key: CXF-3751
>                 URL: https://issues.apache.org/jira/browse/CXF-3751
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.4.2
>            Reporter: viktar_starynski
>
> Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter "decoded" which equals to "!isEncoded", therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.
> Therefore its impossible use @FormParam annotation when you use binary multipart file with it in method signature, because when we use it together CXF try to decode binary file content (as field of form) and crash on unrecognized symbols (with txt files - its ok)
> P/S: Related to Media Type "multipart/form-data"
> "decoded" param need to be equal to "isEncoded".

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

        

[jira] [Commented] (CXF-3751) JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)

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

viktar_starynski commented on CXF-3751:
---------------------------------------

Hi, Sergey.  Thanks for solution. It works great with annotation @Encoded!

> JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)
> ----------------------------------------------------------------------------------------------
>
>                 Key: CXF-3751
>                 URL: https://issues.apache.org/jira/browse/CXF-3751
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.4.2
>            Reporter: viktar_starynski
>
> Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter "decoded" which equals to "!isEncoded", therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.
> Therefore its impossible use @FormParam annotation when you use binary multipart file with it in method signature, because when we use it together CXF try to decode binary file content (as field of form) and crash on unrecognized symbols (with txt files - its ok)
> P/S: Related to Media Type "multipart/form-data"
> "decoded" param need to be equal to "isEncoded".

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

        

[jira] [Resolved] (CXF-3751) JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)

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

Sergey Beryozkin resolved CXF-3751.
-----------------------------------

    Resolution: Not A Problem
      Assignee: Sergey Beryozkin

> JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)
> ----------------------------------------------------------------------------------------------
>
>                 Key: CXF-3751
>                 URL: https://issues.apache.org/jira/browse/CXF-3751
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.4.2
>            Reporter: viktar_starynski
>            Assignee: Sergey Beryozkin
>
> Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter "decoded" which equals to "!isEncoded", therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.
> Therefore its impossible use @FormParam annotation when you use binary multipart file with it in method signature, because when we use it together CXF try to decode binary file content (as field of form) and crash on unrecognized symbols (with txt files - its ok)
> P/S: Related to Media Type "multipart/form-data"
> "decoded" param need to be equal to "isEncoded".

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

        

[jira] [Commented] (CXF-3751) JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)

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

Sergey Beryozkin commented on CXF-3751:
---------------------------------------

no problems, thanks for the confirmation, I'm going to close this JIRA then :-)

> JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)
> ----------------------------------------------------------------------------------------------
>
>                 Key: CXF-3751
>                 URL: https://issues.apache.org/jira/browse/CXF-3751
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.4.2
>            Reporter: viktar_starynski
>
> Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter "decoded" which equals to "!isEncoded", therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.
> Therefore its impossible use @FormParam annotation when you use binary multipart file with it in method signature, because when we use it together CXF try to decode binary file content (as field of form) and crash on unrecognized symbols (with txt files - its ok)
> P/S: Related to Media Type "multipart/form-data"
> "decoded" param need to be equal to "isEncoded".

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

        

[jira] [Commented] (CXF-3751) JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)

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

Sergey Beryozkin commented on CXF-3751:
---------------------------------------

Hi

actually, the solution is to have both @FormParam and @Encoded annotations if you need to use @FormParam and keep
the content encoded. 
Alternatively, use CXF specific @Multipart annotations, or just enumerate the MultipartBody content


> JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)
> ----------------------------------------------------------------------------------------------
>
>                 Key: CXF-3751
>                 URL: https://issues.apache.org/jira/browse/CXF-3751
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.4.2
>            Reporter: viktar_starynski
>
> Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter "decoded" which equals to "!isEncoded", therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.
> Therefore its impossible use @FormParam annotation when you use binary multipart file with it in method signature, because when we use it together CXF try to decode binary file content (as field of form) and crash on unrecognized symbols (with txt files - its ok)
> P/S: Related to Media Type "multipart/form-data"
> "decoded" param need to be equal to "isEncoded".

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

        

[jira] [Updated] (CXF-3751) JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)

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

viktar_starynski updated CXF-3751:
----------------------------------

    Description: 
Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter decoded which equals to !isEncoded, therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.

Therefore its impossible use @FormParam annotation when you use binary multipart file with it in method signature, because when we use CXF try to decode binary file content and crash on unrecognized symbols (with txt files - its ok)

Decode param need to be equal isEncoded.

  was:Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter decoded which equals to !isEncoded, therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.


> JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)
> ----------------------------------------------------------------------------------------------
>
>                 Key: CXF-3751
>                 URL: https://issues.apache.org/jira/browse/CXF-3751
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.4.2
>            Reporter: viktar_starynski
>
> Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter decoded which equals to !isEncoded, therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.
> Therefore its impossible use @FormParam annotation when you use binary multipart file with it in method signature, because when we use CXF try to decode binary file content and crash on unrecognized symbols (with txt files - its ok)
> Decode param need to be equal isEncoded.

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

        

[jira] [Updated] (CXF-3751) JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)

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

viktar_starynski updated CXF-3751:
----------------------------------

    Description: 
Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter decoded which equals to !isEncoded, therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.

Therefore its impossible use @FormParam annotation when you use binary multipart file with it in method signature, because when we use it together CXF try to decode binary file content (as field of form) and crash on unrecognized symbols (with txt files - its ok)

P/S: Related to Media Type "multipart/form-data"

Decode param need to be equal isEncoded.

  was:
Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter decoded which equals to !isEncoded, therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.

Therefore its impossible use @FormParam annotation when you use binary multipart file with it in method signature, because when we use CXF try to decode binary file content and crash on unrecognized symbols (with txt files - its ok)

Decode param need to be equal isEncoded.


> JAXRSUtils.createHttpParameterValue(line:640) works incorrectly (Decode form when unnecessary)
> ----------------------------------------------------------------------------------------------
>
>                 Key: CXF-3751
>                 URL: https://issues.apache.org/jira/browse/CXF-3751
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.4.2
>            Reporter: viktar_starynski
>
> Invocation of processFormParam and processMatrixParam in createHttpParameterValue method accept parameter decoded which equals to !isEncoded, therefore if form is NOT encoded logic inside of this methods try to decode content, and if form IS encoded it isn't decode content.
> Therefore its impossible use @FormParam annotation when you use binary multipart file with it in method signature, because when we use it together CXF try to decode binary file content (as field of form) and crash on unrecognized symbols (with txt files - its ok)
> P/S: Related to Media Type "multipart/form-data"
> Decode param need to be equal isEncoded.

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