<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:27:33 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>[ODLPARENT-73] Check JVM version regular expression is not exact in karaf script</title>
                <link>https://jira.opendaylight.org/browse/ODLPARENT-73</link>
                <project id="10149" key="ODLPARENT">odlparent</project>
                    <description>&lt;p&gt;Overview:&lt;br/&gt;
checkJvmVersion&#65288;&#65289; function code as below &#65288;istribution/distribution-karaf/target/assembly/bin/karaf&#65289;&#65306;&lt;br/&gt;
checkJvmVersion() {&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;echo &quot;`$JAVA -version`&quot;&lt;br/&gt;
    VERSION=`&quot;$JAVA&quot; -version 2&amp;gt;&amp;amp;1 | egrep &apos;&quot;(&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;.&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;\..&lt;b&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;).&lt;/b&gt;&quot;&apos; | awk &apos;
{print substr($3,2,length($3)-2)}
&lt;p&gt;&apos; | awk &apos;&lt;/p&gt;
{print substr($1, 3, 3)}
&lt;p&gt;&apos; | sed -e     &apos;s;\.;;g&apos;`&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;echo $VERSION&lt;br/&gt;
    if [ &quot;$VERSION&quot; -lt &quot;80&quot; ]; then&lt;br/&gt;
        echo &quot;JVM must be 1.8.0 or greater&quot;&lt;br/&gt;
        exit 1;&lt;br/&gt;
    fi&lt;br/&gt;
}&lt;br/&gt;
The egrep regular expression &quot;(&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;.&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;\..&lt;b&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;).&lt;/b&gt;&quot; is not exact. The first dot(.) doesn&apos;t escape and the subexpression &lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt; should use &lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;+ replaced for the first two, because if java version like this &quot;1.10._111&quot;&#65292; this regular expression will failed.In summary, the egrep regular expression &quot;(&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;.&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;\..&lt;b&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;).&lt;/b&gt;&quot; should be &quot;(&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;&lt;ins&gt;\.&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;&lt;/ins&gt;\..&lt;b&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;).&lt;/b&gt;&quot;&lt;br/&gt;
Steps to Reproduce: null&lt;br/&gt;
Actual Results: null&lt;br/&gt;
Expected Results: null&lt;br/&gt;
Build Date &amp;amp; Hardware:&lt;br/&gt;
Fri Mar  3 17:08:47 CST 2017 PC Linux &lt;br/&gt;
Additional Builds and Platforms: null&lt;br/&gt;
Additional Information: null&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="22196">ODLPARENT-73</key>
            <summary>Check JVM version regular expression is not exact in karaf script</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</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="vrpolak">Vratko Polak</assignee>
                                    <reporter username="ding.rui@zte.com.cn">dingrui</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 Mar 2017 09:09:14 +0000</created>
                <updated>Mon, 24 Sep 2018 11:53:30 +0000</updated>
                            <resolved>Mon, 24 Sep 2018 11:53:30 +0000</resolved>
                                                    <fixVersion>3.0.0</fixVersion>
                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="41926" author="vrpolak" created="Fri, 3 Mar 2017 15:30:53 +0000"  >&lt;p&gt;Karaf resources reside in Odlparent project.&lt;/p&gt;

&lt;p&gt;Fix attempt: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/52770/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/52770/1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="41927" author="vrpolak" created="Thu, 23 Mar 2017 09:15:30 +0000"  >&lt;p&gt;Fixed for Carbon Karaf 3, not fixed for Karaf 4.&lt;/p&gt;</comment>
                            <comment id="64892" author="rovarga" created="Wed, 5 Sep 2018 13:10:38 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=ding.rui%40zte.com.cn&quot; class=&quot;user-hover&quot; rel=&quot;ding.rui@zte.com.cn&quot;&gt;ding.rui@zte.com.cn&lt;/a&gt; is this still applicable?&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>7895</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=7895]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

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

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