<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:32:18 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>[OPNFLWPLUG-375] When deleting flowEntries that use Mac Address masks, FlowRemovedTranslaton.java throws an exception</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-375</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;Using stable/helium.&lt;/p&gt;

&lt;p&gt;I&apos;ve been creating flows that make use of Mac Address masks in the matching logic.  When I delete these flow entries, I receive the following exceptions:&lt;/p&gt;

&lt;p&gt;2015-03-02 08:56:06.293 EST &lt;span class=&quot;error&quot;&gt;&amp;#91;OFmsgFinisher-0&amp;#93;&lt;/span&gt; WARN  o.o.o.o.md.queue.TicketFinisherImpl - processing (translate, publish) of ticket failed&lt;br/&gt;
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Supplied value &quot;ff:ff:ff:ff:ff:00:&quot; does not match any of the permitted patterns [^&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9a-fA-F&amp;#93;&lt;/span&gt;&lt;/p&gt;
{2}(:&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9a-fA-F&amp;#93;&lt;/span&gt;{2}
&lt;p&gt;)&lt;/p&gt;
{5}$]&lt;br/&gt;
	at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:306) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:293) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.openflowplugin.openflow.md.queue.TicketFinisherImpl.run(TicketFinisherImpl.java:49) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_71&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_71&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.lang.Thread.run(Thread.java:745) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_71&amp;#93;&lt;/span&gt;&lt;br/&gt;
Caused by: java.lang.IllegalArgumentException: Supplied value &quot;ff:ff:ff:ff:ff:00:&quot; does not match any of the permitted patterns [^&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9a-fA-F&amp;#93;&lt;/span&gt;{2}(:&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9a-fA-F&amp;#93;&lt;/span&gt;{2}){5}
&lt;p&gt;$]&lt;br/&gt;
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:119) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev100924.MacAddress.&amp;lt;init&amp;gt;(MacAddress.java:47) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.openflowplugin.openflow.md.core.translator.FlowRemovedTranslator.fromMatch(FlowRemovedTranslator.java:241) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.openflowplugin.openflow.md.core.translator.FlowRemovedTranslator.translate(FlowRemovedTranslator.java:186) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.openflowplugin.openflow.md.core.translator.FlowRemovedTranslator.translate(FlowRemovedTranslator.java:143) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.openflowplugin.openflow.md.queue.TicketProcessorFactoryImpl.translate(TicketProcessorFactoryImpl.java:166) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.openflowplugin.openflow.md.queue.TicketProcessorFactoryImpl$1.run(TicketProcessorFactoryImpl.java:78) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	... 3 common frames omitted&lt;/p&gt;


&lt;p&gt;I&apos;ve chase this to openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/translator/FlowRemovedTranslator.java line 241:&lt;/p&gt;

&lt;p&gt;                    if (entry.isHasMask()) &lt;/p&gt;
{
                        ethDst.setMask(new MacAddress(ByteUtil.bytesToHexstring(entry.getAugmentation(MaskMatchEntry.class).getMask(), &quot;:&quot;)));
                    }

&lt;p&gt;Here&apos;s what I believe is happening&lt;br/&gt;
1- The code is ATTEMPTING to create a new MacAddress (the CTOR requires a String)&lt;br/&gt;
2- To create the string, the code attempts to parse an array of bytes into a string of the form: &lt;span class=&quot;error&quot;&gt;&amp;#91;0-9a-fA-F&amp;#93;&lt;/span&gt;&lt;/p&gt;
{2}(:&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9a-fA-F&amp;#93;&lt;/span&gt;{2}
&lt;p&gt;)&lt;/p&gt;
{5}
&lt;p&gt;3- HOWEVER, the method &apos;bytesToHexstring is leaving a trailing &apos;:&apos; character which is causing the conversion to fail.&lt;/p&gt;

&lt;p&gt;It looks like this code was added in Nov of 2014.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27643">OPNFLWPLUG-375</key>
            <summary>When deleting flowEntries that use Mac Address masks, FlowRemovedTranslaton.java throws an exception</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="10000">Done</resolution>
                                        <assignee username="jimw@a-bb.net">Jim West</assignee>
                                    <reporter username="jimw@a-bb.net">Jim West</reporter>
                        <labels>
                    </labels>
                <created>Mon, 2 Mar 2015 14:22:04 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:26 +0000</updated>
                            <resolved>Wed, 3 Jun 2015 17:55:22 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="56556" author="jimw@a-bb.net" created="Mon, 2 Mar 2015 14:33:39 +0000"  >&lt;p&gt;Attachment ByteUtil.patch has been added with description: Patch to fix problem&lt;/p&gt;</comment>
                            <comment id="56557" author="jimw@a-bb.net" created="Mon, 2 Mar 2015 14:34:23 +0000"  >&lt;p&gt;Attachment ByteUtilTest.patch has been added with description: Patch to unit tests so they pass after fix patch is applied&lt;/p&gt;</comment>
                            <comment id="56552" author="mirehak@cisco.com" created="Mon, 2 Mar 2015 17:38:40 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/15930/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/15930/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="56553" author="mirehak@cisco.com" created="Mon, 2 Mar 2015 18:55:48 +0000"  >&lt;p&gt;merged, please retest&lt;/p&gt;</comment>
                            <comment id="56554" author="abhijit2511" created="Wed, 6 May 2015 16:36:56 +0000"  >&lt;p&gt;Any update Jim?&lt;/p&gt;</comment>
                            <comment id="56555" author="jimw@a-bb.net" created="Wed, 6 May 2015 16:46:45 +0000"  >&lt;p&gt;My ODL deployment has my original patch (which doesn&apos;t match the code submitted). In reviewing the code it looks fine to me.  I recommend marking as fixed.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13947" name="ByteUtil.patch" size="984" author="jimw@a-bb.net" created="Mon, 2 Mar 2015 14:33:39 +0000"/>
                            <attachment id="13948" name="ByteUtilTest.patch" size="1046" author="jimw@a-bb.net" created="Mon, 2 Mar 2015 14:34:23 +0000"/>
                    </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>2776</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=2776]]></customfieldvalue>

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

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