[
https://issues.apache.org/jira/browse/UIMA-4717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15087550#comment-15087550
]
Lou DeGenaro commented on UIMA-4717:
------------------------------------
Very interesting. In the DuccHandler code for processing the servlet request
the we observe the following:
07 Jan 2016 10:03:52,605 DEBUG WS.DuccHandler - N/A handleDuccRequest (GET
/ducc-servlet/file-contents?fname=/home/degenaro/ducc/logs/1/x+y+z.log&page=1)
request.getQueryString() yields
fname=/home/degenaro/ducc/logs/1/x+y+z.log&page=1
request.getParameter("fname") yields /home/degenaro/ducc/logs/1/x y z.log
Why does request.getParameter() lose the '+' chars? Time to scour the
internets...
> ducc-mon fails to display log files if there is a '+' in the filename
> ---------------------------------------------------------------------
>
> Key: UIMA-4717
> URL: https://issues.apache.org/jira/browse/UIMA-4717
> Project: UIMA
> Issue Type: Bug
> Components: DUCC
> Reporter: Burn Lewis
> Assignee: Lou DeGenaro
> Priority: Minor
> Fix For: 2.1.0-Ducc
>
>
> Somebody is replacing the '+' with ' '
> 22 Dec 2015 16:57:49,653 DEBUG WS.AlienTextFile - N/A trace
> /users/ducc/ducc_ling/amd64/ducc_ling -q -u burn -- /usr/bin/du -b
> /home/burn/ducc/logs/junk stuff/23296/23296-UIMA-bluej602.bluej.net-17628.log
> 22 Dec 2015 16:57:49,653 DEBUG WS.AlienTextFile - N/A trace
> /users/ducc/ducc_ling/amd64/ducc_ling -q -u burn -- /usr/bin/du -b
> /home/burn/ducc/logs/junk stuff/23296/23296-UIMA-bluej602.bluej.net-17628.log
> 22 Dec 2015 16:57:49,658 DEBUG WS.AlienTextFile - N/A getResult 1
> 22 Dec 2015 16:57:49,658 DEBUG WS.AlienTextFile - N/A getResult 1
> 22 Dec 2015 16:57:49,659 DEBUG WS.AlienTextFile - N/A trace data size:0
> 22 Dec 2015 16:57:49,659 DEBUG WS.AlienTextFile - N/A trace data size:0
> 22 Dec 2015 16:57:49,659 DEBUG WS.AlienTextFile - N/A getByteSize
> 22 Dec 2015 16:57:49,659 DEBUG WS.AlienTextFile - N/A getByteSize
> 22 Dec 2015 16:57:49,659 TRACE WS.AlienTextFile - N/A convertToInt
> java.lang.NumberFormatException: For input string: ""
> at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:76)
> at java.lang.Integer.parseInt(Integer.java:515)
> at java.lang.Integer.parseInt(Integer.java:538)
> at
> org.apache.uima.ducc.ws.server.AlienTextFile.convertToInt(AlienTextFile.java:181)
> at
> org.apache.uima.ducc.ws.server.AlienTextFile.getByteSize(AlienTextFile.java:199)
> at
> org.apache.uima.ducc.ws.server.AlienTextFile.getPageCount(AlienTextFile.java:259)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)