Question

3
Replies
173
Views
Bin Xu (GAVINHSU)
Mediatek Inc. China

Mediatek Inc. China
CN
GAVINHSU Member since 2011 24 posts
Mediatek Inc. China
Posted: April 22, 2020
Last activity: July 14, 2020
Posted: 22 Apr 2020 21:48 EDT
Last activity: 14 Jul 2020 7:56 EDT
Closed
Solved

Mashup scripts is not loaded properly, pzIncludeMashupScripts responses text/html content type

Hi,

We've just upgraded our PEGA platform from 7.1.8 to 8.3.1, and we're using Mashup to embedded PEGA applications into our own portal.

The Mashup code we're using as below:


<script> src ='<%=webRoot%>/prweb/IAC/?host=<%=host%>&pyActivity=pzIncludeMashupScripts&pzAuth=guest'></script>
<div id="IACGadget"
data-pega-gadgetname ='IACGadget' 
data-pega-action ='OpenWorkByURL' 
data-pega-action-param-query='pyActivity=@baseclass.DoUIAction'
data-pega-action-param-model ='' 
data-pega-action-param-readonly ='false'
data-pega-isdeferloaded ='false' 
data-pega-applicationname ='BPMApp' 
data-pega-threadname ='<%=threadId%>' 
data-pega-resizetype ='stretch' 
data-pega-url ='<%=webRoot%>/prweb/IAC/' 
data-pega-action-param-parameters ="{'pzSkinName':'ApplicationSkin','pyMashupSkeletonName':'pyDefaultMashupSkeleton'}"></div>

Normally this piece of code works fine, except when the session timed out.

We found the pzIncludeMashupScripts was blocked by IAC authentication after session timed out.

So, we're trying to use another way to load Mashup scripts as below:


<script type="text/javascript" src='<%=webRoot%>/prweb/PRServlet/?host=<%=host%>&pyActivity=pzIncludeMashupScripts&pzAuth=guest'></script>

We found that the Mashup scripts can be loaded even after session timed out.

Hi,

We've just upgraded our PEGA platform from 7.1.8 to 8.3.1, and we're using Mashup to embedded PEGA applications into our own portal.

The Mashup code we're using as below:

<script> src ='<%=webRoot%>/prweb/IAC/?host=<%=host%>&pyActivity=pzIncludeMashupScripts&pzAuth=guest'></script>
<div id="IACGadget"
data-pega-gadgetname ='IACGadget' 
data-pega-action ='OpenWorkByURL' 
data-pega-action-param-query='pyActivity=@baseclass.DoUIAction'
data-pega-action-param-model ='' 
data-pega-action-param-readonly ='false'
data-pega-isdeferloaded ='false' 
data-pega-applicationname ='BPMApp' 
data-pega-threadname ='<%=threadId%>' 
data-pega-resizetype ='stretch' 
data-pega-url ='<%=webRoot%>/prweb/IAC/' 
data-pega-action-param-parameters ="{'pzSkinName':'ApplicationSkin','pyMashupSkeletonName':'pyDefaultMashupSkeleton'}"></div>

Normally this piece of code works fine, except when the session timed out.

We found the pzIncludeMashupScripts was blocked by IAC authentication after session timed out.

So, we're trying to use another way to load Mashup scripts as below:

<script type="text/javascript" src='<%=webRoot%>/prweb/PRServlet/?host=<%=host%>&pyActivity=pzIncludeMashupScripts&pzAuth=guest'></script>

We found that the Mashup scripts can be loaded even after session timed out.

But the Content-Type of response header was set to "Content-Type: text/html;charset=UTF-8", which causes the Mashup not working even the scripts can be loaded.

Please help us with either one of the solutions as below:

  1. How can we change the Content-Type to "Content-Type: text/javascript;charset=UTF-8"?
  2. How can the Mashup scripts be loaded even after session timed out?

Thanks a lot.

Pega Platform 8.3.1 System Administration Upgrades Manufacturing Lead System Architect
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.