<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Fix the javascript issue in this appserver build file (appserver/static/js/build/common.js) file? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Fix-the-javascript-issue-in-this-appserver-build-file-appserver/m-p/619404#M10834</link>
    <description>&lt;P class="lia-align-left"&gt;Hi&lt;/P&gt;
&lt;P class="lia-align-left"&gt;I am trying to fix the v&lt;SPAN class=""&gt;ulnerable_javascript_library_usage error in Splunk Add-on Builder for appserver/static/js/build/common.js).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&lt;SPAN class=""&gt;There are a couple of answered &lt;A title="Suggestions on how we can upgrade the jquery version in this minified js file?" href="https://community.splunk.com/t5/Building-for-the-Splunk-Platform/Suggestions-on-how-we-can-upgrade-the-jquery-version-in-this/m-p/583005" target="_blank" rel="noopener"&gt;posts&lt;/A&gt; that mention the fix as:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Export the app from any Add-on Builder&lt;/LI&gt;
&lt;LI&gt;Import the app into Add-on Builder v4.1.0 or newer&lt;/LI&gt;
&lt;LI&gt;Download the app packaged from Add-on Builder v4.1.0 or newer&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The issue I am facing is that I have inherited the maintenance for the add-on and don’t have an app export from the original Add-on Builder.&lt;/P&gt;
&lt;P&gt;I have tried a couple of things that include importing the spl and tgz files as a project in AOB but cannot import them as it shows an error while extracting the files.&lt;/P&gt;
&lt;P&gt;I tried to create a new add-on with the same name and replace the files in that with the files from the downloaded tgz from Splunkbase. On exporting the created add-on and importing it again it shows an error when extracting that it's not a valid compressed file.&lt;/P&gt;
&lt;P&gt;Also, I tried to just remove the common.js file which breaks the add-on when we run it on windows machines.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Is there any other way I can fix this? Or how can I import the add-on in AOB?&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Thanking you in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 14:15:06 GMT</pubDate>
    <dc:creator>Shukran</dc:creator>
    <dc:date>2022-11-03T14:15:06Z</dc:date>
    <item>
      <title>Fix the javascript issue in this appserver build file (appserver/static/js/build/common.js) file?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Fix-the-javascript-issue-in-this-appserver-build-file-appserver/m-p/619404#M10834</link>
      <description>&lt;P class="lia-align-left"&gt;Hi&lt;/P&gt;
&lt;P class="lia-align-left"&gt;I am trying to fix the v&lt;SPAN class=""&gt;ulnerable_javascript_library_usage error in Splunk Add-on Builder for appserver/static/js/build/common.js).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&lt;SPAN class=""&gt;There are a couple of answered &lt;A title="Suggestions on how we can upgrade the jquery version in this minified js file?" href="https://community.splunk.com/t5/Building-for-the-Splunk-Platform/Suggestions-on-how-we-can-upgrade-the-jquery-version-in-this/m-p/583005" target="_blank" rel="noopener"&gt;posts&lt;/A&gt; that mention the fix as:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Export the app from any Add-on Builder&lt;/LI&gt;
&lt;LI&gt;Import the app into Add-on Builder v4.1.0 or newer&lt;/LI&gt;
&lt;LI&gt;Download the app packaged from Add-on Builder v4.1.0 or newer&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The issue I am facing is that I have inherited the maintenance for the add-on and don’t have an app export from the original Add-on Builder.&lt;/P&gt;
&lt;P&gt;I have tried a couple of things that include importing the spl and tgz files as a project in AOB but cannot import them as it shows an error while extracting the files.&lt;/P&gt;
&lt;P&gt;I tried to create a new add-on with the same name and replace the files in that with the files from the downloaded tgz from Splunkbase. On exporting the created add-on and importing it again it shows an error when extracting that it's not a valid compressed file.&lt;/P&gt;
&lt;P&gt;Also, I tried to just remove the common.js file which breaks the add-on when we run it on windows machines.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Is there any other way I can fix this? Or how can I import the add-on in AOB?&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Thanking you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 14:15:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Fix-the-javascript-issue-in-this-appserver-build-file-appserver/m-p/619404#M10834</guid>
      <dc:creator>Shukran</dc:creator>
      <dc:date>2022-11-03T14:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fix the javascript issue in this appserver build file (appserver/static/js/build/common.js) file?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Fix-the-javascript-issue-in-this-appserver-build-file-appserver/m-p/619890#M10836</link>
      <description>&lt;P&gt;I got it working. Posting the process here in-case someone else has the same issue.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Downloaded AOB 3.0.1&lt;/LI&gt;&lt;LI&gt;Create a new add-on with same name and id.&lt;/LI&gt;&lt;LI&gt;Copy existing files in &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;$SPLUNK_HOME/etc/app&lt;/SPAN&gt;&lt;/SPAN&gt;s/&amp;lt;app_folder&amp;gt;&lt;/LI&gt;&lt;LI&gt;Update the views in Splunk UI&lt;/LI&gt;&lt;LI&gt;Export from AOB&lt;/LI&gt;&lt;LI&gt;Update AOB version&lt;/LI&gt;&lt;LI&gt;Import the project&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 14:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Fix-the-javascript-issue-in-this-appserver-build-file-appserver/m-p/619890#M10836</guid>
      <dc:creator>Shukran</dc:creator>
      <dc:date>2022-11-07T14:09:16Z</dc:date>
    </item>
  </channel>
</rss>

