<?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 Re: Why does my Simple XML dashboard display HTML content from another app? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Simple-XML-dashboard-display-HTML-content-from/m-p/220956#M13702</link>
    <description>&lt;P&gt;Found  the issue.&lt;BR /&gt;
There were two different apps running, one with the directory in upper case, the other with it in lower case.&lt;/P&gt;

&lt;P&gt;Application 1 : $SPLUNK_HOME$/etc/apps/appdir&lt;BR /&gt;
Application 2 : $SPLUNK_HOME$/etc/apps/APPDIR&lt;/P&gt;

&lt;P&gt;Despite the SearchHead running on Linux (i.e. a case-sensitive filesystem), App 1 seemed to only be looking in the Upper-case directory for the one .html file (every other file for Application 1 was read from the correct directory).&lt;/P&gt;

&lt;P&gt;Moving Application 1 into a directory with a completely different name fixed it.&lt;BR /&gt;
i.e. one that was not identical to Application 2's directory if ignoring case-sensitivity.&lt;/P&gt;

&lt;P&gt;Not sure if it is a bug in Splunk but certainly a subtle problem to isolate given it only seemed to happen for the one file.&lt;BR /&gt;
Did a quick search and didn't see anything about Splunk being case-insensitive when looking for files.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:25:08 GMT</pubDate>
    <dc:creator>splunk_svc</dc:creator>
    <dc:date>2020-09-29T11:25:08Z</dc:date>
    <item>
      <title>Why does my Simple XML dashboard display HTML content from another app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Simple-XML-dashboard-display-HTML-content-from/m-p/220953#M13699</link>
      <description>&lt;P&gt;Hi Splunkers.&lt;BR /&gt;
If an application running on a SH is set to &lt;STRONG&gt;not&lt;/STRONG&gt; share it's objects with other apps, is there any reason an app can reference a .html file with the same name from another application?&lt;/P&gt;

&lt;P&gt;For example.&lt;/P&gt;

&lt;P&gt;Application "A" has a view that references a .html file called &lt;STRONG&gt;App_html_file.html&lt;/STRONG&gt;.&lt;BR /&gt;
This is located in $SPLUNK_HOME/etc/apps/App_A/appserver/static/ and is displayed with the following view:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Welcome to Application A&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html src="App_html_file.html"/&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Application "B" has a view that references the same .html filename but in it's own directory.&lt;BR /&gt;
i.e. in $SPLUNK_HOME/etc/apps/App_B/appserver/static/ (with a file called &lt;STRONG&gt;App_html_file.html&lt;/STRONG&gt;).&lt;BR /&gt;
It is displayed with the following view:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Welcome to Application B&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html src="App_html_file.html"/&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that although both .html filenames are the same they have different content and are each in the appserver/static directory of their respective app.&lt;BR /&gt;
I would expect these to operate independently of each other.&lt;BR /&gt;
( I have permissions set on each app to not share objects with other apps)&lt;/P&gt;

&lt;P&gt;What I am seeing however, is when the content of App B's html file is changed, the content displayed in Application A changes.&lt;BR /&gt;
If I move App B's .html file out of the way, App A complains that it can no longer find it's .html file.  &lt;/P&gt;

&lt;P&gt;Why is App A displaying .html files from App B and not looking within its own appserver/static directory?&lt;BR /&gt;
I need App A and App B to have .html files that can be displayed (and edited) independently or each other.&lt;/P&gt;

&lt;P&gt;I have used the Freshmaker app to refresh the views and have also restarted Splunk on the SH these apps are running on but still have the same symptoms.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:12:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Simple-XML-dashboard-display-HTML-content-from/m-p/220953#M13699</guid>
      <dc:creator>splunk_svc</dc:creator>
      <dc:date>2020-09-29T11:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my Simple XML dashboard display HTML content from another app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Simple-XML-dashboard-display-HTML-content-from/m-p/220954#M13700</link>
      <description>&lt;P&gt;Have you tried &lt;A href="http://localhost:8000/debug/refresh"&gt;http://localhost:8000/debug/refresh&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;./splunk restart&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 15:43:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Simple-XML-dashboard-display-HTML-content-from/m-p/220954#M13700</guid>
      <dc:creator>bshuler_splunk</dc:creator>
      <dc:date>2016-10-04T15:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my Simple XML dashboard display HTML content from another app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Simple-XML-dashboard-display-HTML-content-from/m-p/220955#M13701</link>
      <description>&lt;P&gt;Hi bshuler.&lt;BR /&gt;
I've used the Sideview/Freshmaker apps to refresh the views and navs etc.&lt;BR /&gt;
This should be the equivalent of your first command above.&lt;BR /&gt;
I've also already tried restarting Splunk on the SH on which the apps are running.&lt;BR /&gt;
None of these seemed to resolve the problem.&lt;/P&gt;

&lt;P&gt;If I move the App A's .html file back into the {App A}/appserver/static from the equivalent location for App B, the dashboard complains that it can't find the .html file.&lt;BR /&gt;
If I move it back into App B's appserver/static directory the dashboard from App A then displays correctly.&lt;/P&gt;

&lt;P&gt;This would confirm that App A is &lt;EM&gt;definitely&lt;/EM&gt; looking for the .html file in App B's /appserver/static directory.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 22:47:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Simple-XML-dashboard-display-HTML-content-from/m-p/220955#M13701</guid>
      <dc:creator>splunk_svc</dc:creator>
      <dc:date>2016-10-04T22:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my Simple XML dashboard display HTML content from another app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Simple-XML-dashboard-display-HTML-content-from/m-p/220956#M13702</link>
      <description>&lt;P&gt;Found  the issue.&lt;BR /&gt;
There were two different apps running, one with the directory in upper case, the other with it in lower case.&lt;/P&gt;

&lt;P&gt;Application 1 : $SPLUNK_HOME$/etc/apps/appdir&lt;BR /&gt;
Application 2 : $SPLUNK_HOME$/etc/apps/APPDIR&lt;/P&gt;

&lt;P&gt;Despite the SearchHead running on Linux (i.e. a case-sensitive filesystem), App 1 seemed to only be looking in the Upper-case directory for the one .html file (every other file for Application 1 was read from the correct directory).&lt;/P&gt;

&lt;P&gt;Moving Application 1 into a directory with a completely different name fixed it.&lt;BR /&gt;
i.e. one that was not identical to Application 2's directory if ignoring case-sensitivity.&lt;/P&gt;

&lt;P&gt;Not sure if it is a bug in Splunk but certainly a subtle problem to isolate given it only seemed to happen for the one file.&lt;BR /&gt;
Did a quick search and didn't see anything about Splunk being case-insensitive when looking for files.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-does-my-Simple-XML-dashboard-display-HTML-content-from/m-p/220956#M13702</guid>
      <dc:creator>splunk_svc</dc:creator>
      <dc:date>2020-09-29T11:25:08Z</dc:date>
    </item>
  </channel>
</rss>

