[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7822) Deployment from workspace metadata does not work when workspace path contains space character

David Lloyd (JIRA) jira-events at lists.jboss.org
Tue Dec 14 13:08:52 EST 2010


    [ https://issues.jboss.org/browse/JBIDE-7822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570092#comment-12570092 ] 

David Lloyd commented on JBIDE-7822:
------------------------------------

URLEncoder is only for HTTP query parameters, so that should be permanently excised from this discussion. :-)

Passing in a URI string containing a space is an error.  If tools is generating such a URI, and AS5 accepted this, then you were just lucky.  You cannot expect garbage to always work.  The space should be encoded as %20 to be a valid URI, and URI path separators should be used.  The easiest fix would seem to be to construct URIs using the constructor which has a discrete path name argument, and thus does this encoding for you.  You should never assemble a URI as a string.

> Deployment from workspace metadata does not work when workspace path contains space character
> ---------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-7822
>                 URL: https://issues.jboss.org/browse/JBIDE-7822
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JBossAS
>    Affects Versions: 3.2.0.Beta2
>         Environment: WinXP, Linux x86
>            Reporter: Dominik Pospisil
>            Assignee: Snjezana Peco
>            Priority: Critical
>             Fix For: 3.2.0.CR1
>
>         Attachments: o.j.ide.eclipse.as.core.patch
>
>
> Deployment from workspace metadata does not work when workspace path contains space character.
> Steps to reproduce:
> 1) create empty workspace on a path containing space character
> 2) create web project
> 3) try to deploy on a server with workspace metadata deployment
> No error logged, but nothing happens. 

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

        


More information about the jbosstools-issues mailing list