axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5750) Fixed value causes Exception for non fixed values in ADB generated code
Date Wed, 30 Mar 2016 20:19:25 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-5750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15218767#comment-15218767
] 

Hudson commented on AXIS2-5750:
-------------------------------

SUCCESS: Integrated in axis2-1.7 #43 (See [https://builds.apache.org/job/axis2-1.7/43/])
AXIS2-5750: Merge r1737030 to the 1.7 branch. (veithen: rev 1737139)
* axis2
* axis2/modules/adb-codegen/src/org/apache/axis2/schema/BeanWriterMetaInfoHolder.java
* axis2/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
* axis2/modules/adb-codegen/src/org/apache/axis2/schema/writer/JavaBeanWriter.java
* axis2/modules/adb-tests/pom.xml
* axis2/modules/adb-tests/src/test/java/org/apache/axis2/databinding/axis2_5750
* axis2/modules/adb-tests/src/test/wsdl/AXIS2-5750.wsdl


> Fixed value causes Exception for non fixed values in ADB generated code
> -----------------------------------------------------------------------
>
>                 Key: AXIS2-5750
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5750
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.6.4, 1.7.1
>            Reporter: Frederik Hansen
>         Attachments: FixedValueSample.wsdl, fixedAttribute.patch, fixedValue.patch, fixedValue.patch,
fixedValue.patch
>
>
> I'm using Axis 1.7.1 and found an issue using fixed values in WDSL and the ADB Codegenerator.
> Basically when one fixed value/attribute exists, all attributes are treated as fixed
attributes. This means, when setting the value on a non-fixed attribute, it set be seen as
null (but set) and causing an exception once used to send to server.
> I've attached a simplified WSDL.
> I've looked in the ADB Codegen code, and IMHO the issue seems to be in SchemaCompiler
where the code says:
>             // register the fixed value if present
>             if (xsElt.getFixedValue() != null) {
>                 metainf.registerDefaultValue(xsElt.getQName(), xsElt.getFixedValue());
>                 metainf.setFixed(true);
>             }
> The setFixed seems to be too broad, and maybe it can be changed into something following
the registerNillableQName-flow, e.g. registerFixedQName(xsElt.getQName()).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message