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.
Summary: | Adding a web service for PHP SaaS via manager to read from local file does not have correct URL | ||
---|---|---|---|
Product: | webservices | Reporter: | harrije |
Component: | Manager | Assignee: | Denis Anisimov <ads> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.0.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
harrije
2011-12-27 22:26:35 UTC
This is common problem not just PHP. It is a result of saved WS descriptor that contains URL in the form of "file:/uri". There is a difference between Java, PHP and the URL spec. File.toURI().toURL() gives "file:/path" instead of "file://path". At the same time Java consider the URL in the form "file://path" as "ftp" protocol specification. As result method URL.openStream() tries to get content of file via ftp. So URL "file:/path" work for Java without problem but this is a problem for PHP. But URL "file://path" works incorrectly in Java but works for PHP. So it seems the URL should be corrected only for PHP case in the codegen module. web-main#75e30e76b0a7 Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/75e30e76b0a7 User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#206756 - Adding a web service for PHP SaaS via manager to read from local file does not have correct URL |