<?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: Problem with replace REST function in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034881#M4218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/55130"&gt;akl&lt;/A&gt;‌, maybe &lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;you have a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;piece of working code with REST REPLACE method&lt;/SPAN&gt;? Can you share it?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;TH&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2016 11:17:24 GMT</pubDate>
    <dc:creator>humansoft</dc:creator>
    <dc:date>2016-02-02T11:17:24Z</dc:date>
    <item>
      <title>Problem with replace REST function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034877#M4214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been able to develope an application that using the rest funcions from the server can upload qvf to the server, publish them and in the case that exist published, replace the published file for the new one.&lt;/P&gt;&lt;P&gt;The problem is that to do that I upload a qvf with a temp name, replace the published aplication and them delete the temp file. After doing that the published aplication loses the preview image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I supose that it happens because it keep the reference images instead of creating new ones using the new references, but doing the same operations with the server (upload manually a new qvf, publish replacing the old published qvf, and then deleting the uploaded qvf) it preserves the preview image of the qvf on the hub page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any step I forgot to do or I did on the wrong way something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PD For new published files it also preserve the preview image, but I need to do the replace functions because If the user created new sheets and the qvf needs to be updated I want to avoid the lose of user data that would happen If I simply destroy the old published qvf and publish a new one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 10:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034877#M4214</guid>
      <dc:creator />
      <dc:date>2016-01-20T10:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with replace REST function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034878#M4215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/154705"&gt;oriol_tg&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Have you a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;piece of working code with REST REPLACE method&lt;/SPAN&gt;? Can you share it?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;We get &lt;SPAN class="hps"&gt;the response&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;from the server: "403 Prohibited." for every PUT REST API's methods (REPLACE, PUBLISH etc.). GET/POST methods work properly.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Big thanks!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;TH&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 07:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034878#M4215</guid>
      <dc:creator>humansoft</dc:creator>
      <dc:date>2016-01-29T07:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with replace REST function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034879#M4216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tomasz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have the code in my hand at this moment but could you check first if the user that you are using have at least the privileges ContentAdmin on the Qlik Sense Server? I mean, I think that I had the same problem and it was because of the rights of the user. I didn't specify any right to the user that was interacting with the REST api so it was only able to do simple operations like checking values but to be able to modify qvf it was necessary to have more privileges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell me if that's the problem,&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 14:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034879#M4216</guid>
      <dc:creator />
      <dc:date>2016-01-29T14:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with replace REST function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034880#M4217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Oriol for response. Yes, w&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;e checked&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;this thing&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;many times&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;without&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;success: without specify user, with specify user internal/external, with or without ContentAdmin privileges. &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;That's why&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I'm asking&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;for a piece&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of working code&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;TH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 16:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034880#M4217</guid>
      <dc:creator>humansoft</dc:creator>
      <dc:date>2016-01-31T16:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with replace REST function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034881#M4218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/55130"&gt;akl&lt;/A&gt;‌, maybe &lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;you have a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;piece of working code with REST REPLACE method&lt;/SPAN&gt;? Can you share it?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;TH&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 11:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034881#M4218</guid>
      <dc:creator>humansoft</dc:creator>
      <dc:date>2016-02-02T11:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with replace REST function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034882#M4219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tomasz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to follow that example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pythonhosted.org/TGWebServices/examples/csharp.html" title="https://pythonhosted.org/TGWebServices/examples/csharp.html"&gt;https://pythonhosted.org/TGWebServices/examples/csharp.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keeping in mind that in the &lt;SPAN class="n"&gt;&lt;SPAN&gt;address you have to include the ?xrfkey=ABCDEFG123456789 (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverurl/virtualproxy" rel="nofollow"&gt;http://serverurl/virtualproxy&lt;/A&gt;&lt;SPAN style="color: #444444; font-family: monospace; font-size: 13px; background-color: #f4f4f4;"&gt;/qrs/app/{id}/replace?app={appid}&lt;SPAN style="font-size: 13.3333px;"&gt;?xrfkey=ABCDEFG123456789&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;the method is PUT and that you have to add also the headers &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.Headers.Add(header authentication header name, value);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.Headers.Add("X-Qlik-xrfkey", "ABCDEFG123456789");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.Headers.Add("X-QlikView-xrfkey", "ABCDEFG123456789");&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 14:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034882#M4219</guid>
      <dc:creator />
      <dc:date>2016-02-02T14:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with replace REST function</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034883#M4220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the people interested we have found that there's a bug on the replace function of Qlik Sense.&lt;/P&gt;&lt;P&gt;At first moment we thought that we have a problem when we uploaded a qvf, used the replace function to replace the file of an existing published app and then we delete the original uploaded file losing the thumbnail of the published one.&lt;/P&gt;&lt;P&gt;But we performed the same operations on Qlik Sense Server and it happens the same:&lt;/P&gt;&lt;P&gt;- We clicked the import button uploading the file.&lt;/P&gt;&lt;P&gt;- Then we published the file with the publish button specifying to replace an existing published file with the checkbox Replace existing file.&lt;/P&gt;&lt;P&gt;- After that we deleted the original uploaded file and then we lost the thumbnail of the published file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we are thinking that when one publish a file with the replace function, the thumbnail image keeps linked with the original uploaded file instead of having its own so if that file is removed the published one loses that image.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 09:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-replace-REST-function/m-p/1034883#M4220</guid>
      <dc:creator />
      <dc:date>2016-02-04T09:05:04Z</dc:date>
    </item>
  </channel>
</rss>

