Sonarqube URL in email notification gives "You may have mistyped the address or the page may have moved"


(Monali) #1

Sonarqube URL that is provided in notification email gives error:

" The page you were looking for does not exist.You may have mistyped the address or the page may have moved.
Go back to the homepage"

The Base URL configured is https://XXXXX/sonar/ in email it appends extra details like project id and some specific issues id which is not needed? How can i customize this extra part of the URL as I did not find any configuration field for the same.

Email URL is:

http://XXXXX/sonar/project/issues?id=XXXX&assignees=XXXX&createdAt=2018-11-29T07%3A24%3A36%2B0100


(Colin Mueller) #2

Hey Monali,

What happens if you navigate to the URL with everything decoded? see: http://XXXXX/sonar/project/issues?id=XXXX&assignees=XXXX&createdAt=2018-11-29T07:24:36+0100


(Monali) #3

Hi, Please find the image attached


(Julien Lancelot) #4

And what happen when you go on : http://XXXXX/sonar/project/issues?id=XXXX ?


(Monali) #5

It is giving error:

Forbidden

You don’t have permission to access /sonar/project/issues on this server.


(Julien Lancelot) #6

This is very strange as you have 3 different behaviour :

  • With URL from the email, you get a “page not found”
  • With URL that contains a date encoded differently, you have access to the page but an error is displayed about the date
  • With URL that only contains the id of the project, you get a permission issue.

I do not understand at all what is happening on your SonarQube, I’m very sorry…


(Monali) #7

Sorry, it was my bad I was on VPN due to which it gave forbidden error. I just tried without VPN and page opened up displaying list of all issues for Klarets project.

What I need is the Dashboard where it displays the list of project, can we edit the URL in anyway?


(Colin Mueller) #8

Monali,

  1. No
  2. What kind of notification is this linking showing up for? “My new issues” or “Changes in issues assigned to me”? Why would you want to strip the project/issue specific details from that link?

Colin


(Monali) #9

For now we have selected all the available options for notification image ble options for Notifications


(Colin Mueller) #10

Cool. That means you are probably getting notification specific to issues in a SonarQube project, and we want to take you to the most relevant page.


(Monali) #11

Ok so you mean the URL getting generated is correct and will take to most recent issues found or created right?


(Colin Mueller) #12

If you are getting a notification about new issues, issues assigned to you, change in issues… you’ll be taken to the most relevant view for those issues.