This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 40551 - Deployment hangs if context path contains spaces
Summary: Deployment hangs if context path contains spaces
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-27 09:36 UTC by Martin Grebac
Modified: 2004-08-13 12:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Grebac 2004-02-27 09:36:11 UTC
1. Create web-app and set it's context path to 
"with space"

2. Execute the web-app

Deployment hangs. App is visible under webmodules,
but cannot be started, stopped, or undeployed.
Comment 1 Martin Grebac 2004-02-27 09:41:30 UTC
How about this quick hotfix? It could be solved better, but it works.

RCS file:
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/TomcatModule.java,v
retrieving revision 1.5
diff -w -b -r1.5 TomcatModule.java
57c57
<         return target.getServerUri () + path;
---
>         return target.getServerUri () + path.replaceAll(" ", "%20");

Index: TomcatManagerImpl.java
===================================================================
RCS file:
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/TomcatManagerImpl.java,v
retrieving revision 1.31
diff -w -b -r1.31 TomcatManagerImpl.java
336c336,338
<                 urlToConnectTo = new URL(uri + command);
---
>                 String withoutSpaces = (uri + command).replaceAll("
", "%20");  //NOI18N
>                 urlToConnectTo = new URL(withoutSpaces);
>                 

Comment 2 Martin Grebac 2004-03-02 16:12:03 UTC
Fixed in trunk
Comment 3 Martin Grebac 2004-03-02 16:14:02 UTC
c
Comment 4 Martin Grebac 2004-05-25 14:31:25 UTC
Verified in build from 24.5.2004