[ 
https://issues.apache.org/jira/browse/TIKA-1800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17527775#comment-17527775
 ] 

ASF GitHub Bot commented on TIKA-1800:
--------------------------------------

Gagravarr commented on PR #552:
URL: https://github.com/apache/tika/pull/552#issuecomment-1109073795

   Your commit seems to remove a test zip file, which seems to be by accident, 
any chance you could re-do it without the accidental deletion?
   
   Would you also be able to add a comment explaining what your new for loop is 
doing, so anyone looking at that code later can quickly figure out what it's 
doing?




> MediaType#parse does not decode escaped special characters
> ----------------------------------------------------------
>
>                 Key: TIKA-1800
>                 URL: https://issues.apache.org/jira/browse/TIKA-1800
>             Project: Tika
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.11
>            Reporter: Roberto Benedetti
>            Priority: Major
>             Fix For: 1.17, 2.0.0-BETA, 2.1.0
>
>
> Special characters in parameter value are escaped in canonical string 
> representation but they are not unescaped when the canonical string 
> representation is parsed.
> {code:java}
> MediaType mType = new MediaType(MediaType.APPLICATION_XML, "x-report", 
> "#report@");
> String cType = mType.toString(); // application/xml; x-report="#report\@"
> assertEquals("application/xml; x-report=\"#report\\@\"", cType); // success
> mType = MediaType.parse(cType);
> String report = mType.getParameters().get("x-report"); // #report\@
> assertEquals("#report@", report); // failure
> {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to