<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:51:59 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[CONTROLLER-21] java.lang.NumberFormatException should just result in http error code</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-21</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;I was testing some code I wrote to see how it would handle&lt;br/&gt;
error conditions and found this issue when trying to purposefully&lt;br/&gt;
add (POST) a bogus flow via the REST API.&lt;/p&gt;

&lt;p&gt;In this case, I was trying to add a flow with switch ID &apos;G&apos;.&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;note: python dictionary syntax&lt;br/&gt;
newflow = 
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: {u&amp;#39;actions&amp;#39;}&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;I saw expecting something like&lt;br/&gt;
Status: 500 Invalid Configuration (You&apos;re an idiot)&lt;br/&gt;
-&lt;del&gt;or&lt;/del&gt;-&lt;br/&gt;
Status: 404 OF|00:00:00:00:00:00:00:0G : Node does not exist&lt;/p&gt;

&lt;p&gt;I believe the GET function of the API does handle this correctly.&lt;/p&gt;

&lt;p&gt;Here&apos;s the traceback result: &lt;/p&gt;

&lt;p&gt;Status: 500 &lt;br/&gt;
java.lang.NumberFormatException: For input string: &amp;quot;G&amp;quot;&lt;br/&gt;
        java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)&lt;br/&gt;
        java.lang.Integer.parseInt(Integer.java:492)&lt;br/&gt;
        java.math.BigInteger.&amp;lt;init&amp;gt;(BigInteger.java:338)&lt;br/&gt;
        org.opendaylight.controller.sal.utils.HexEncode.stringToLong(HexEncode.java:87)&lt;br/&gt;
        org.opendaylight.controller.sal.core.Node.fillmeFromString(Node.java:223)&lt;br/&gt;
        org.opendaylight.controller.sal.core.Node.setType(Node.java:245)&lt;br/&gt;
        sun.reflect.GeneratedMethodAccessor219.invoke(Unknown Source)&lt;br/&gt;
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br/&gt;
        java.lang.reflect.Method.invoke(Method.java:601)&lt;br/&gt;
        com.sun.xml.internal.bind.v2.runtime.reflect.Accessor$GetterSetterReflection.set(Accessor.java:351)&lt;br/&gt;
        com.sun.xml.internal.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:232)&lt;br/&gt;
        com.sun.xml.internal.bind.v2.runtime.unmarshaller.StructureLoader.startElement(StructureLoader.java:194)&lt;br/&gt;
        com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:486)&lt;br/&gt;
        com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:465)&lt;br/&gt;
        com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:60)&lt;br/&gt;
        com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:232)&lt;br/&gt;
        com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:166)&lt;br/&gt;
        com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:355)&lt;br/&gt;
        com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:334)&lt;br/&gt;
        com.sun.jersey.json.impl.BaseJSONUnmarshaller.unmarshalJAXBElementFromJSON(BaseJSONUnmarshaller.java:111)&lt;br/&gt;
        com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider.readFrom(JSONJAXBElementProvider.java:125)&lt;br/&gt;
        com.sun.jersey.core.provider.jaxb.AbstractJAXBElementProvider.readFrom(AbstractJAXBElementProvider.java:110)&lt;br/&gt;
        com.sun.jersey.core.provider.jaxb.AbstractJAXBElementProvider.readFrom(AbstractJAXBElementProvider.java:79)&lt;br/&gt;
        com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:488)&lt;br/&gt;
        com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)&lt;br/&gt;
        com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:46)&lt;br/&gt;
        com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:153)&lt;br/&gt;
        com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:203)&lt;br/&gt;
        com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)&lt;br/&gt;
        com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)&lt;br/&gt;
        com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)&lt;br/&gt;
        com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)&lt;br/&gt;
        com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)&lt;br/&gt;
        com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)&lt;br/&gt;
        com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)&lt;br/&gt;
        com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)&lt;br/&gt;
        com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)&lt;br/&gt;
        com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)&lt;br/&gt;
        com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)&lt;br/&gt;
        com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)&lt;br/&gt;
        com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)&lt;br/&gt;
        javax.servlet.http.HttpServlet.service(HttpServlet.java:848)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="24575">CONTROLLER-21</key>
            <summary>java.lang.NumberFormatException should just result in http error code</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10001">Won&apos;t Do</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="dwcarder@wisc.edu">Dale W. Carder</reporter>
                        <labels>
                    </labels>
                <created>Fri, 21 Jun 2013 16:09:50 +0000</created>
                <updated>Tue, 25 Jul 2023 08:24:48 +0000</updated>
                            <resolved>Thu, 19 May 2016 18:23:41 +0000</resolved>
                                                                    <component>adsal</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="47296" author="carolsand@gmail.com" created="Mon, 4 May 2015 19:57:16 +0000"  >&lt;p&gt;This bug is part of the project to Move all ADSAL associated component bugs to ADSAL&lt;/p&gt;</comment>
                            <comment id="47297" author="rovarga" created="Thu, 19 May 2016 18:23:41 +0000"  >&lt;p&gt;AD-SAL has been removed, this issue will not be fixed.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>27</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=27]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02htr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>