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 163856 - Validation: doXslTransform check reachability of the xsl file
Summary: Validation: doXslTransform check reachability of the xsl file
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-28 09:53 UTC by Vitaly Bychkov
Modified: 2009-10-26 17:39 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Sample Bpel Project with unreachable xsl file in doXslTransform (10.21 KB, application/x-compressed)
2009-04-28 09:57 UTC, Vitaly Bychkov
Details
Updated project (9.77 KB, application/x-compressed)
2009-09-29 11:38 UTC, Vladimir Yaroslavskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Bychkov 2009-04-28 09:53:29 UTC
The first parameter of the doXslTransform function is a path to the xsl file.
There are could be several problems with it: 
- first of all the path has special format: urn:stylesheets:path/to/the/xslFile.xsl
- another problem - the xslFile could be unreachable through this path for some reasons

We have to provide correspondent validation errors:
- The first parameter of the doXslTransform has wrong format. Expected value: urn:stylesheets:path/to/the/xslFile.xsl
- The xsl file is not reachable
Comment 1 Vitaly Bychkov 2009-04-28 09:57:29 UTC
Created attachment 81049 [details]
Sample Bpel Project with unreachable xsl file in doXslTransform
Comment 2 Murali Pottlapelli 2009-06-24 20:06:39 UTC
We need a browse button, user can 
1. select a style sheet in the project
2. select a style sheet on the file system, should result in copying the file.
3. type in a uri. 

We can validate first two cases and error if there is no file.

Do we need to validate in 3 case? user may not be connected to network. Is this catalog functionality?
Comment 3 Vladimir Yaroslavskiy 2009-09-29 11:38:35 UTC
Created attachment 88505 [details]
Updated project
Comment 4 Vladimir Yaroslavskiy 2009-09-29 11:40:59 UTC
implemented in gfesbv22: 1029e8c0e6ae
Comment 5 terrybraun 2009-10-26 17:39:03 UTC
This issue is tested and verified with the GFESB Build of 10/19/09, including NetBeans IDE 6.7.1 (Build 200910181801).

This issue is restricted to the validation of the first parameter of the doXslTransform call. The cases that have been 
tested are:

a) The first parameter must be a string literal. [Attempted to concat strings rather than use string literal failed]
b) An incorrect prefixes to the XSL file - "urM:stylesheets:xyz.xsl" and "urn:stylesheet::xyz.xsl"
c) An invalid or incorrect file location designation.
d) An incorrect XSL file name in a valid location.