[ 
https://jira.codehaus.org/browse/JBEHAVE-712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=293810#comment-293810
 ] 

Alexander Lehmann commented on JBEHAVE-712:
-------------------------------------------

https://github.com/alexlehm/jbehave-core/commit/a45988cf23b804dda32bcdaf69403da99f84d2fd

JBEHAVE-712: Spaces in path breaks StoryFinder().findPaths()

added method getPathFromURL to replace the URL.getFile() calls which do not 
decode encoded chars.
The same problem appears with other chars that have to be encoded e.g. [], 
accented chars.
One function in LoadFromRelativeFile used URLDecoder before, which is incorrect 
for + chars in path
(the class doesn't have a unit test, so I couldn't actually check for that 
problem, but its fixed
with the new call)

                
> Spaces in path breaks StoryFinder().findPaths()
> -----------------------------------------------
>
>                 Key: JBEHAVE-712
>                 URL: https://jira.codehaus.org/browse/JBEHAVE-712
>             Project: JBehave
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.5.4
>         Environment: JBehave 3.6-beta-3, Fedora 15, 64-bit, Java HotSpot 
> 1.6.0_30, 64-bit
>            Reporter: Marcin Zajaczkowski
>            Priority: Minor
>             Fix For: 4.x
>
>
> Constructions like:
> List<String> storyPaths = new 
> StoryFinder().findPaths(codeLocationFromClass(getClass()), "**/*.story", 
> "**/*examples.story");
> or
> List<String> storyPaths = new 
> StoryFinder().findPaths(codeLocationFromPath("somePath"), "**/*.story", 
> "**/*examples.story");
> doesn't work when there are spaces in a path (which are replaced to %20).
> An issue similar to JBEHAVE-389.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to