<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:14:27 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>[NETCONF-212] API Doc Explorer broken due to index.html:1 Uncaught SyntaxError: Unexpected token } in JSON at position 6398 index.html:1 Uncaught SyntaxError: Unexpected token } in JSON at position 1234</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-212</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;When I try to use the &lt;a href=&quot;http://localhost:8181/apidoc/explorer/index.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/apidoc/explorer/index.html&lt;/a&gt; API Doc Explorer of the basic Hello example (&lt;a href=&quot;https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Startup_Project_Archetype&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Startup_Project_Archetype&lt;/a&gt;) right now, then it appears to be broken. It used to work for me (before?) last week, but right now does not anymore.&lt;/p&gt;

&lt;p&gt;The home page actually does still show up, but &quot;Show/Hide&quot;, &quot;List Operations&quot; and &quot;Expand Operations&quot; all do not work.&lt;/p&gt;

&lt;p&gt;Chrome&apos;s Console shows: &quot;index.html:1 Uncaught SyntaxError: Unexpected token } in JSON at position ...&quot; and under Firefox Console has &quot;SyntaxError: JSON.parse: expected &apos;:&apos; after property name in object at line 1 column 584 of the JSON data swagger.js:308:26&quot;&lt;/p&gt;

&lt;p&gt;The root cause is that the JSON returned by netconf/restconf/sal-rest-docgen is invalid (in some case/s).  Specifically, I&apos;m seeing the following pattern, when debugging through JS in browser but also with that &quot;Raw&quot; link available on every line on the Web UI:&lt;/p&gt;

{&quot;apiVersion&quot;:&quot;1.0.0&quot;,&quot;swaggerVersion&quot;:&quot;1.2&quot;, ..., &quot;models&quot;}
&lt;p&gt;&quot;&lt;/p&gt;

&lt;p&gt;Note that &quot;models&quot; is a JSON key with the &apos;:&apos; and value missing! &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/NETCONF-116&quot; title=&quot;odl-mdsal-apidocs swagger UI does not load correctly if odl-restconf is installed first&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NETCONF-116&quot;&gt;&lt;del&gt;NETCONF-116&lt;/del&gt;&lt;/a&gt;&apos;s error message does not appear in the logs.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21225">NETCONF-212</key>
            <summary>API Doc Explorer broken due to index.html:1 Uncaught SyntaxError: Unexpected token } in JSON at position 6398 index.html:1 Uncaught SyntaxError: Unexpected token } in JSON at position 1234</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="10003">Cannot Reproduce</resolution>
                                        <assignee username="vorburger">Michael Vorburger</assignee>
                                    <reporter username="vorburger">Michael Vorburger</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 May 2016 13:58:02 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:25 +0000</updated>
                            <resolved>Mon, 17 Oct 2016 12:12:56 +0000</resolved>
                                                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="39437" author="vorburger" created="Mon, 30 May 2016 14:08:37 +0000"  >&lt;p&gt;Looking into the code, we see org.opendaylight.netconf.sal.rest.doc.swagger.ApiDeclaration has a JSONObject models - and it would appear that, under some circumstances, Jackson serializes this incorrectly... Some Jackson bug? &lt;/p&gt;

&lt;p&gt;netconf/restconf/sal-rest-docgen/pom.xml already is on on the latest version already (2.7.4), via odl-parent.  But in hello/karaf/target/assembly/system/com/fasterxml/jackson/core/jackson-databind/ there is a 2.3.2 as well - how can I see which one of these two Karaf is using for this bundle at run-time?&lt;/p&gt;

&lt;p&gt;Attached is the output of &quot;feature:list -i&quot; of the Hello example.&lt;/p&gt;</comment>
                            <comment id="39445" author="vorburger" created="Mon, 30 May 2016 14:09:59 +0000"  >&lt;p&gt;Attachment feature-list-i.txt has been added with description: feature:list -i&lt;/p&gt;</comment>
                            <comment id="39438" author="vorburger" created="Mon, 30 May 2016 14:13:30 +0000"  >&lt;p&gt;&amp;gt; in hello/karaf/target/assembly/system/com/fasterxml/jackson/core/jackson-databind/ there is a 2.3.2 as well - how can I see which one of these two Karaf is using for this bundle at run-time?&lt;/p&gt;

&lt;p&gt;With the (generated) OSGi MANIFEST.MF of sal-rest-docgen-1.4.0-SNAPSHOT.jar specifying Import-Package: com.fasterxml.jackson.databind;version=&quot;[2.7,3)&quot; etc. this seems fine, and unlikely the reason.&lt;/p&gt;</comment>
                            <comment id="39439" author="vorburger" created="Mon, 30 May 2016 14:25:51 +0000"  >&lt;p&gt;Hm.. I&apos;ve just noticed that odlparent merged &quot;Upgrade Jackson 2.3.2 -&amp;gt; 2.7.4&quot; 7 days ago... perhaps because of that?  I&apos;ll try to locally revert and see if that helps.&lt;/p&gt;

&lt;p&gt;I&apos;ve asked on &lt;a href=&quot;http://stackoverflow.com/questions/37528039/jackson-missing-colon-and-value-in-json-after-key&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/37528039/jackson-missing-colon-and-value-in-json-after-key&lt;/a&gt; to learn more.&lt;/p&gt;</comment>
                            <comment id="39440" author="vorburger" created="Mon, 30 May 2016 15:37:17 +0000"  >&lt;p&gt;&amp;gt; odlparent merged &quot;Upgrade Jackson 2.3.2 -&amp;gt; 2.7.4&quot; 7 days ago... perhaps because of that?  I&apos;ll try to locally revert and see if that helps.&lt;/p&gt;

&lt;p&gt;Yes, that is the root cause!  If I locally revert commit 2061aa51982fa82d3414d8f03729819b785ff296 in odl-parent, and mvn install odlparent, and then mvn install both netconf/restconf/sal-rest-docgen as well as netconf/features/restconf (this last step is important, otherwise you get pretty funky bundle startup problems &quot;Caused by: java.lang.VerifyError: Bad type on operand stack&quot;, then &lt;a href=&quot;http://localhost:8181/apidoc/explorer/index.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/apidoc/explorer/index.html&lt;/a&gt; works again for me.&lt;/p&gt;</comment>
                            <comment id="39441" author="vorburger" created="Mon, 30 May 2016 15:38:14 +0000"  >&lt;p&gt;BTW: What&apos;s also very interesting is that no test caught this problem... it would be good to include writing a test for future non-regression this as part of the final resolution of this issue.&lt;/p&gt;</comment>
                            <comment id="39442" author="vorburger" created="Thu, 2 Jun 2016 16:34:40 +0000"  >&lt;p&gt;Taking this bug assigned to me to write a non-regression test for this problem.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/NETCONF-213&quot; title=&quot;Replace use of org.json library with Map/GSON/Jackson&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NETCONF-213&quot;&gt;&lt;del&gt;NETCONF-213&lt;/del&gt;&lt;/a&gt; created to replace org.json.&lt;/p&gt;</comment>
                            <comment id="39443" author="miroslav.kovac@pantheon.tech" created="Mon, 17 Oct 2016 12:08:22 +0000"  >&lt;p&gt;Is this bug still a problem? I can`t seem to replicate it. Seems like it was already fixed. Could you please check it if it works for you too. I checked it on firefox and chrome - both worked fine.&lt;/p&gt;</comment>
                            <comment id="39444" author="vorburger" created="Mon, 17 Oct 2016 12:12:56 +0000"  >&lt;p&gt;&amp;gt; I can`t seem to replicate it. Seems like it was already fixed. Could you please check it if it works for you too. I checked it on firefox and chrome - both worked fine.&lt;/p&gt;

&lt;p&gt;No time right now, as focusing on something else currently, BUT I believe this was one of the very first bug I had filed on ODL, just when I started - it&apos;s very possible that this was fixed meanwhile, and as you have already checked out again, let us just close it - I&apos;ve done it.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12677" name="feature-list-i.txt" size="8924" author="vorburger" created="Mon, 30 May 2016 14:09:59 +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_10207" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>External References</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/39616/&quot;&gt;https://git.opendaylight.org/gerrit/#/c/39616/&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/39614/&quot;&gt;https://git.opendaylight.org/gerrit/#/c/39614/&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/39615/&quot;&gt;https://git.opendaylight.org/gerrit/#/c/39615/&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
&lt;a href=&quot;https://lists.opendaylight.org/pipermail/netconf-dev/2016-May/000424.html&quot;&gt;https://lists.opendaylight.org/pipermail/netconf-dev/2016-May/000424.html&lt;/a&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5980</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=5980]]></customfieldvalue>

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

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