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.
(Please check blocked issue(IZ131639) for example of project, demonstrating the problem described below) WSDL has inline schema which references elements in included schema. Included schema DOES NOT contains targetNamespace declaration. According to spec, targetNamespace for included schema in this case should be the one of including schema. Currently, this rule is ignored and when SchemaModel trying to find referenced element, resolver fails the check for targetNamespace(SchemaModelImpl.java:151) Proposed fix is to weaken the check for targetNamespace, when model is referenced with <include/>: if (targetNamespace != null && targetNamespace.equals(namespace) || targetNamespace == null && namespace == null || targetNamespace == null && refToMe instanceof Include) { //NEW CHECK TO ADD found = findByNameAndType(localName, type); } Or we can take targetNamespace from schema, owning the <include/> element. This issue is blocker for 131639, this priority is P1.
Added reference to blocked issue IZ131639
cc-ing Vidhya
The proposed fix looks OK to me, however I'm not sure about its repercussions. I wont mind making this change at the start or middle of a release, but bothers me at this point of a release. If there is a work-around, I suggest we go with that and from issue 131639 it seems like an easy workaround is to use the target namespace.
And as per priority guidelines, it should not be a P1, since there is a workaround.
Sam, this is request from potential customer. And proposed workaround is not applicable in their situation. We need to get it fixed in release 61. Raising to P1.
Sam, please fix the bug in trunk then QE should verify it and we will release the fix as patch1. Thanks, Petr
Committed to trunk: http://hg.netbeans.org/main?cmd=changeset;node=706f4c433cfa.
Product Version: NetBeans IDE Dev (Build 200804250004) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) Can't see problem. Will mark as verified, ok?
The issue hasn't be verified till 61patch1 nomination cut-off date. Marked as release61_fixes_candidate2.
Verified by Michael. Included into patch1 candidate list back.
fix backported into release61_fixes branch http://hg.netbeans.org/release61_fixes/rev/5c5ab237a532