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 150537 - should not generate Optional="false" policy assertion attribute
Summary: should not generate Optional="false" policy assertion attribute
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: WSIT (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 13:44 UTC by ritzmann
Modified: 2015-06-05 02:38 UTC (History)
0 users

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 ritzmann 2008-10-17 13:44:04 UTC
This is mostly a cosmetic issue but it might confuse users. Steps to reproduce:

1) Create web application and add web service
2) "Edit Web Service Attributes". Go to Quality Of Service tab.
3) Enable Reliable Messaging. (I had a few more options enabled, not sure if that is necessary to trigger the bug. I 
had also disabled and reenabled RM before.)

The generated policy looks like this:

    <wsp:Policy wsu:Id="NewWebServicePortBindingPolicy">
        <wsp:ExactlyOne>
            <wsp:All>
                <wsaw:UsingAddressing xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" wsp:Optional="false"/>
                <wsrm:RMAssertion/>
            </wsp:All>
        </wsp:ExactlyOne>
    </wsp:Policy>

The UsingAddressing assertion should not have the Optional attribute because Optional="false" is the default for policy 
assertions anyway.
Comment 1 Martin Grebac 2008-10-17 13:52:00 UTC
It doesn't really break anything, just a minor tweak, thus lowering priority.
Comment 2 Jan Stola 2015-06-04 15:39:07 UTC
Fixed by https://hg.netbeans.org/web-main/rev/623c0ea609a6
Comment 3 Quality Engineering 2015-06-05 02:38:19 UTC
Integrated into 'main-silver', will be available in build *201506050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/623c0ea609a6
User: Jan Stola <jstola@netbeans.org>
Log: #150537: should not generate Optional="false" policy assertion attribute