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 54591 - Create web service client failed when project directory contains &
Summary: Create web service client failed when project directory contains &
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-06 12:08 UTC by sigalduek
Modified: 2005-07-15 10:36 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 sigalduek 2005-02-06 12:08:25 UTC
Build failed when trying to create web service client.
After changing project location , the same wdsl
works. (client stubs were created)

Seems problem with project location:
C:\R&D\SunMIServices\SprintWeb

Config file:
<?xml version="1.0" encoding="UTF-8"?>

<configuration
xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">

        <wsdl
location="C:\R&D\SunMIServices\SprintWeb/web/WEB-INF/wsdl/GeoPhone.asmx.wsdl"
packageName="com.sun.geo"/>

</configuration>
 
See attached file with build error output
Comment 1 _ pcw 2005-02-22 08:13:51 UTC
Need to investigate to be certain, but probably certain directory
characters are not supported by wscompile.  If so, we need to detect
and disallow these (and file bug against JWSDP).
Comment 2 Petr Jiricka 2005-03-21 16:31:28 UTC
Petre, do you have any suggestions regarding what should happen, if JWSDP really
does not support this?
Comment 3 Petr Blaha 2005-03-22 07:51:32 UTC
We should implement new method that will check these characters in project path,
in web service or web service client wizards. User shall be informed about this
error before creation web service and hourly searching what's wrong with build. 
Comment 4 _ pcw 2005-03-22 16:36:34 UTC
It's certainly easy to scan for &.  The reason I haven't fixed this is because
we need to research what other characters also cause difficulty.  Obvious
candidates for testing include $, %, etc. if they are legal in directory names.
 I believe Unix OS's will allow practically any character in a directory name.
Comment 5 _ pcw 2005-03-22 17:04:07 UTC
I just checked against & and with & it fails.  But with %26, it works.  So if we
can have ant expand the location using encoding, we can fix this that way (much
better if there is a way to do it.)
Comment 6 Milan Kuchtiak 2005-03-23 08:55:43 UTC
Yes that was the solution I was thinking about.
I am investigating how to implement that.
Comment 7 Milan Kuchtiak 2005-03-23 13:43:27 UTC
After several attempts I've decided to fix the bug simply by not allowing to
create WS clients for projects located in directory containing &, % or ? characters.

Diffs:
http://web.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/WebServiceClientWizardDescriptor.java?r1=1.2&r2=1.3
http://web.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/Bundle.properties?r1=1.14&r2=1.15
Comment 8 Milan Kuchtiak 2005-03-23 13:53:57 UTC
John Ceccarelli suggested to change the message to this form :

http://web.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/Bundle.properties?r1=1.15&r2=1.16
Comment 9 L Martinek 2005-07-15 10:36:07 UTC
verified