<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:38 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-278] Unable to use websocket notifications from browsers</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-278</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;To subscribe to websocket notifications, we need to request the location by sending a get request to &quot;http://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/restconf/streams/stream/&amp;lt;path&amp;gt;&quot;, which returns the location in the &quot;Location&quot; header.&lt;/p&gt;

&lt;p&gt;However, this header is unsafe and is disabled in web browsers by default. To let browsers check this field, the web server must explicitly specify this header as exposed.&lt;/p&gt;

&lt;p&gt;This can be enabled in the configuration of the CORS filter for sal-rest-connector. See attached diff.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="24832">CONTROLLER-278</key>
            <summary>Unable to use websocket notifications from browsers</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="zoltan.lajos.kis@ericsson.com">Zoltan Lajos Kis</assignee>
                                    <reporter username="zoltan.lajos.kis@ericsson.com">Zoltan Lajos Kis</reporter>
                        <labels>
                    </labels>
                <created>Mon, 7 Apr 2014 08:27:11 +0000</created>
                <updated>Tue, 14 Nov 2017 15:18:01 +0000</updated>
                            <resolved>Thu, 19 Mar 2015 09:27:36 +0000</resolved>
                                    <version>Helium</version>
                                                    <component>restconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="47913" author="zoltan.lajos.kis@ericsson.com" created="Mon, 7 Apr 2014 08:27:11 +0000"  >&lt;p&gt;Attachment sal-rest-connector.diff has been added with description: configuration diff for sal-rest-connector&lt;/p&gt;</comment>
                            <comment id="47906" author="tony.tkacik@gmail.com" created="Mon, 21 Jul 2014 08:45:32 +0000"  >&lt;p&gt;It is possible to update cors filter in controller&lt;/p&gt;</comment>
                            <comment id="47907" author="jgloncak" created="Thu, 25 Sep 2014 13:28:39 +0000"  >&lt;p&gt;I tested it.&lt;br/&gt;
In firefox I installed HTTP response browser and when I viewed response it looks like&lt;/p&gt;

&lt;p&gt;200 OK&lt;br/&gt;
Server: Apache-Coyote/1.1&lt;br/&gt;
Cache-Control: private&lt;br/&gt;
Expires: Thu, 01 Jan 1970 01:00:00 CET&lt;br/&gt;
Location: &lt;a href=&quot;http://localhost:8185/opendaylight-inventory:nodes/datastore=CONFIGURATION/scope=BASE&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8185/opendaylight-inventory:nodes/datastore=CONFIGURATION/scope=BASE&lt;/a&gt;&lt;br/&gt;
Content-Length: 0&lt;br/&gt;
Date: Thu, 25 Sep 2014 13:27:51 GMT &lt;/p&gt;

&lt;p&gt;Location is there&lt;/p&gt;</comment>
                            <comment id="47908" author="jgloncak" created="Fri, 26 Sep 2014 05:44:22 +0000"  >&lt;p&gt;I also tested it in internet explorer 11 with add on DebugBar. After GET request on stream link I got following response&lt;/p&gt;

&lt;p&gt;HTTP/1.1 200 OK&lt;br/&gt;
Server: Apache-Coyote/1.1&lt;br/&gt;
Cache-Control: private&lt;br/&gt;
Expires: Thu, 01 Jan 1970 01:00:00 CET&lt;br/&gt;
Location: &lt;a href=&quot;http://localhost:8185/opendaylight-inventory:nodes/datastore=CONFIGURATION/scope=BASE&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8185/opendaylight-inventory:nodes/datastore=CONFIGURATION/scope=BASE&lt;/a&gt;&lt;br/&gt;
Content-Length: 0&lt;br/&gt;
Date: Fri, 26 Sep 2014 05:41:39 GMT&lt;/p&gt;

&lt;p&gt;So please specify more details about this problem or steps how to reproduce it.&lt;/p&gt;</comment>
                            <comment id="47909" author="zoltan.lajos.kis@ericsson.com" created="Fri, 26 Sep 2014 07:02:32 +0000"  >&lt;p&gt;I ran the attached script in Chrome when I reported the bug. (Note, it uses d3.js).&lt;/p&gt;

&lt;p&gt;If I remember correctly, when calling getResponseHeader(&quot;Location&quot;), Chrome rejected and reported that it is unsafe.&lt;/p&gt;</comment>
                            <comment id="47914" author="zoltan.lajos.kis@ericsson.com" created="Fri, 26 Sep 2014 07:02:32 +0000"  >&lt;p&gt;Attachment gui2.tar.gz has been added with description: JS to reproduce the bug&lt;/p&gt;</comment>
                            <comment id="47910" author="jgloncak" created="Fri, 26 Sep 2014 10:48:26 +0000"  >&lt;p&gt;I wasn&apos;t able to replicate it via your java script. I prepared lightweight version (see below) but neither it was possible to replicate.&lt;br/&gt;
function httpGet()&lt;br/&gt;
{&lt;br/&gt;
    var xmlHttp = null;&lt;br/&gt;
    xmlHttp = new XMLHttpRequest();&lt;br/&gt;
    xmlHttp.open( &quot;GET&quot;,     &lt;br/&gt;
    &quot;http://localhost:8080/restconf/streams/stream/opendaylight-inventory:nodes/datastore=CONFIGURATION/scope=BASE&quot;, &lt;br/&gt;
    true );&lt;br/&gt;
    xmlHttp.send( null );&lt;br/&gt;
    xmlHttp.onreadystatechange = function() {&lt;br/&gt;
        if(this.readyState == 2) &lt;/p&gt;
{
            alert(this.getAllResponseHeaders());
        }
&lt;p&gt;    } &lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Therefore I prepared patch as you suggested.&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/11608&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/11608&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="47911" author="zoltan.lajos.kis@ericsson.com" created="Fri, 26 Sep 2014 10:54:48 +0000"  >&lt;p&gt;It&apos;s quite possible this has been fixed since; there have been so many refactorings in the past six months.&lt;/p&gt;

&lt;p&gt;I don&apos;t have the tools right now to test if this has been fixed or if the patch is necessary.&lt;/p&gt;

&lt;p&gt;If you see the bug gone, just close the ticket. If anyone experiences it again, it&apos;ll be here for reopening...&lt;/p&gt;</comment>
                            <comment id="47912" author="jgloncak" created="Mon, 29 Sep 2014 06:13:24 +0000"  >&lt;p&gt;as I wrote I couldn&apos;t replicate this issue. If you have time please test it.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="24841">CONTROLLER-287</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="25005">CONTROLLER-451</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13365" name="gui2.tar.gz" size="935" author="zoltan.lajos.kis@ericsson.com" created="Fri, 26 Sep 2014 07:02:32 +0000"/>
                            <attachment id="13364" name="sal-rest-connector.diff" size="794" author="zoltan.lajos.kis@ericsson.com" created="Mon, 7 Apr 2014 08:27:11 +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>671</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=671]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10361"><![CDATA[Lithium-RC0]]></customfieldvalue>

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

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