Wrong link sent in Jaspersoft reports with "Send link to repository by email" option in Clarity
search cancel

Wrong link sent in Jaspersoft reports with "Send link to repository by email" option in Clarity

book

Article ID: 140367

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

When you use the option 'Send link to repository by email', either by Schedule or Run Now, the link sent by email is wrong and does not point to your Jaspersoft environment

Steps to reproduce:

  1. Go to Advanced Reporting
  2. Schedule a report (or Run Now)
  3. Check 'Send link to repository by email'
  4. Click Run

Results: The email is sent with the wrong link to localhost:8090 instead of the Clarity URL 

The properties.xml looks good (identical to your other environment). You have checxked all servers and see no issues in the configuration.

Environment

Release : All applicable Clarity releases with Jaspersoft

Cause

 A wrong value is saved in the encrypted attributes on the Jaspersoft server. This can happen due to the below reasons 

  • If your entryUrl or sslEntryUrl in the CSA is not set correctly. 
  • externalUrl should be correctly set if your Clarity set up is done with SSO
  • Clarity notification uses entryUrl/sslEntryUrl/externalUrl for generating the notifications 
  • Also Jasperadmin user in Jaspersoft stores all these values in an encrypted format and if any changes are made in your CSA/properties.xml you should run the command admin update jasperParameters

Resolution

Reset the encrypted attributes. This will require a short downtime for reports.

  1. Connect to Jaspersoft Console as superuser
  2. Go to Users
  3. Find jasperadmin user for the tenant (not to confuse with ppmjasperadmin or jasperadmin for other tenants)
  4. Select it, note the encrypted attributes it holds. This user holds the connection details it uses to run reports and connect.
  5. Click Edit
  6. Go to the Attributes tab
  7. Delete all the attributes
  8. Click Save
  9. On the Clarity server, run the command:
    admin update jasperParameters

    This will update the jasperadmin parameters from the properties.xml
  10. Now you can test and it should work well. No Jaspersoft restart is required. 

Additional Information

Reference: Email Notifications - known issues for Clarity