Support Article
Asked for crendentials when downloading logs
SA-14260
Summary
When you try to download a log file from Designer Studio, you get a modal dialog asking for a username and password.
Error Messages
Not Applicable
Steps to Reproduce
- In Designer Studio, click Designer Studio > System > Operations > Logs.
- Try to download any of the logs available.
Root Cause
The application is asking for the credentials of a user known to the application server and granted the PegaDiagnosticUser role. The exact credentials depend on what you've set up in your application server. These can be located in various places - for example, in Tomcat it is in "tomcat-users.xml".
Resolution
Choose one of the following approaches.
- Enter the credentials each time you want to download logs.
- If you want to allow developers to download logs without having to enter any credentials, perform the following local change:
Open web.xml for prweb and find these lines:
<!--
Restrict Diagnostic Data to administrative users
-->
<security-constraint>
<web-resource-collection>
<web-resource-name> Diagnostic Data</web-resource-name>
<description> Serves diagnostic files generated by the JMX client
</description>
<url-pattern> /DiagnosticData</url-pattern>
<http-method> GET</http-method>
<http-method> POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name> PegaDiagnosticUser</role-name>
SMA Security
CONFIDENTIAL 7
</auth-constraint>
</security-constraint>
Remove or comment out the following lines from the web.xml content shown above:
<auth-constraint>
<role-name> PegaDiagnosticUser</role-name>
SMA Security
CONFIDENTIAL 7
</auth-constraint>
Published September 25, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.