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 87086 - Importing schema via variable create makes process invalid
Summary: Importing schema via variable create makes process invalid
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Nikita Krjukov
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-10-13 12:37 UTC by Maksim Khramov
Modified: 2007-05-11 08:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
result of: cvs -q diff -c (2.70 KB, application/octet-stream)
2006-10-16 12:57 UTC, Nikita Krjukov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2006-10-13 12:38:31 UTC
Steps to reproduce:
Create new valid BPEL process.
Create new schema and add simple type to it.
Open process and invoke Add Variable command.
In dialog window uncheck 'Show Imported files Only' checkbox.
Select Schema. Select created schema element
Close dialog.
Invoke process validation.
The validation fails.
Comment 1 Mikhail Kondratyev 2006-10-13 16:00:05 UTC
This scenariois an absolutely correct usecase but it generates invalid code.
A workaround exists, but I suppose we should fix this unless the fix is too risky
Comment 2 Michael Frisino 2006-10-13 16:02:36 UTC
Problem is that the import statement that is generated is not complete statment.

For example this is generated.

    <import location="newpo.xsd" importType="http://www.w3.org/2001/XMLSchema"/>

Notice that the namespace attribute is totally missing.

It should be something like this

    <import namespace="http://xml.netbeans.org/schema/newXMLSchema"
location="newpo.xsd" importType="http://www.w3.org/2001/XMLSchema"/>

Therefore there is some problem with the add import logic in this particular
scenario.


Comment 3 Manish Malhotra 2006-10-13 21:31:36 UTC
Mike, assume this is for Denis/SPB, not monrovia. Pls reassign.
Comment 4 Denis Anisimov 2006-10-16 08:53:02 UTC
It is responsibility of client UI to set "namespace" attribute with
correct value.
Comment 5 Nikita Krjukov 2006-10-16 12:51:00 UTC
Fixed and committed to the release55_dev branch
Comment 6 Nikita Krjukov 2006-10-16 12:57:08 UTC
Created attachment 35226 [details]
result of: cvs -q diff -c
Comment 7 Vitaly Bychkov 2006-10-16 14:43:07 UTC
Fix looks well.
Comment 8 Nikita Krjukov 2006-10-16 14:49:40 UTC
Fixed in the release55 branch
Comment 9 Nikita Krjukov 2006-10-16 14:50:41 UTC
Fixed
Comment 10 senthilprabhu 2007-05-11 08:43:34 UTC
Verified on NetBeans IDE 6.0 Preview (M9, build 070502) and Windows XP version 
5.1 running on x86