lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1416) Ant contrib test can fail if there is a space in path to lucene project
Date Wed, 15 Oct 2008 09:27:44 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-1416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639777#action_12639777
] 

Michael McCandless commented on LUCENE-1416:
--------------------------------------------

Is there a more generic function that can un-escape a URL-encoded string?  Space/%20 seems
like the most common problem, but other characters are escaped in URLs too.

> Ant contrib test can fail if there is a space in path to lucene project
> -----------------------------------------------------------------------
>
>                 Key: LUCENE-1416
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1416
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/*
>            Reporter: Mark Miller
>            Priority: Trivial
>         Attachments: LUCENE-1416.patch
>
>
> A couple contrib ant tests get the path to test files through a URL object, and so the
path is URL encoded. Normally fine, but if you have a space in your path (/svn stuff/lucene/contrib/ant)
then it will have %20 for the space and (at least on my Ubuntu system) the test will fail
with filenotfound. This patch simply replaces all %20 with " ". Not sure if we want/need to
take it any further.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message