<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:09:05 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>[AAA-265] RESTCONF path segment with encoded forward slash returns 400</title>
                <link>https://jira.opendaylight.org/browse/AAA-265</link>
                <project id="10102" key="AAA">aaa</project>
                    <description>&lt;p&gt;The RESTCONF request URI with encoded forward slash (&lt;tt&gt;/&lt;/tt&gt;) returns the status code of 400 and the request is not processed.&lt;/p&gt;

&lt;p&gt;For example,&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;{
    &quot;servlet&quot;: &quot;org.glassfish.jersey.servlet.ServletContainer&quot;,
    &quot;message&quot;: &quot;Invalid request&quot;,
    &quot;url&quot;: &quot;/rests/data/network-topology:network-topology/topology=topology-netconf/node=XPDR-A1/yang-ext:mount/org-openroadm-device:org-openroadm-device/circuit-packs=1%2F0%2F1-PLUG-NET&quot;,
    &quot;status&quot;: &quot;400&quot;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This appears to be caused by &lt;a href=&quot;https://git.opendaylight.org/gerrit/c/aaa/+/107607&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Shiro 0.12.1 adopted by AAA&lt;/a&gt;. &lt;a href=&quot;https://shiro.apache.org/blog/2023/07/18/apache-shiro-1120-released.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;The version&lt;/a&gt; addresses a path traversal attack (&lt;a href=&quot;https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-34478&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;CVE-2023-34478&lt;/a&gt;) by &lt;a href=&quot;https://github.com/apache/shiro/commit/c3ede3f94efb442acb0795714a022c2c121d1da0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;rejecting URIs with an encoded forward slash&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="37327">AAA-265</key>
            <summary>RESTCONF path segment with encoded forward slash returns 400</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.opendaylight.org/images/icons/priorities/blocker.svg">Highest</priority>
                        <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="rovarga">Robert Varga</assignee>
                                    <reporter username="sangwookha">Sangwook Ha</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Sep 2023 18:47:05 +0000</created>
                <updated>Thu, 18 Jan 2024 17:59:07 +0000</updated>
                            <resolved>Mon, 18 Sep 2023 15:03:24 +0000</resolved>
                                    <version>0.18.1</version>
                                    <fixVersion>0.16.10</fixVersion>
                    <fixVersion>0.17.12</fixVersion>
                    <fixVersion>0.18.2</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="72535" author="rovarga" created="Mon, 11 Sep 2023 19:06:29 +0000"  >&lt;p&gt;The attached log shows execution of this request.&lt;br/&gt;
This is definitely a Not Nice interaction between Shiro and Jersey. We are receiving the request based as @Encoded, hence Jersey knows this is okay, but there is no API surface to communicate this to and from Shiro.&lt;/p&gt;

&lt;p&gt;We should be able to disable this filter quirk in a reasonable scope... but that needs further investigation.&lt;/p&gt;</comment>
                            <comment id="72600" author="rovarga" created="Sat, 16 Sep 2023 06:26:26 +0000"  >&lt;p&gt;So this is fixable at deployment time by putting an &quot;invalidRequest.blockTraversal=false&quot; entry into aaa-app-config.yang&apos;s /shiro-configuration/main list.&lt;/p&gt;</comment>
                            <comment id="72601" author="rovarga" created="Sat, 16 Sep 2023 06:27:52 +0000"  >&lt;p&gt;Also see &lt;a href=&quot;https://stackoverflow.com/a/77091599&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://stackoverflow.com/a/77091599&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="72612" author="gvrangan" created="Thu, 21 Sep 2023 16:18:59 +0000"  >&lt;p&gt;shouldn&apos;t we disable invlidrequest from aaa by default?&lt;/p&gt;</comment>
                            <comment id="72624" author="rovarga" created="Sun, 1 Oct 2023 23:25:59 +0000"  >&lt;p&gt;There is one remaining check and that is harmless. RESTCONF is moving away from JAX-RS anyway, so the issue is quite moot.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="37308">AAA-264</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="19106" name="karaf-debug.log.xz" size="219484" author="rovarga" created="Mon, 11 Sep 2023 18:53:06 +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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i046hr:</customfieldvalue>

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