Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-9611

url shortener always change host url to localhost

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Fixed
    • 2.26.0, 2.25.0
    • 2.29.0
    • QAN App
    • 1
    • Yes
    • Yes
    • Server Features

    Description

      User Impact:

      User is not able to use short version of url in case when he/she wants to share some dashboard - long version is proper short one always change hostname address to "localhost"

      Steps to Reproduce:
      #1 select some dashboard to share
      #2 click on share btn 
      #3 select toggle for short url 

      Actual Result:

      go to this url it will point to non existing page

      Expected Result:

      even do the url is shorted it should be still valid url

       

      Findings:

      The shortened URL is based on .ini file's domain value. If it's defined as "localhost" (the default in PMM), the URL will follow.

       

      Solution

      Check if the .ini file has localhost as domain and if the current domain is different. If so, show a warning telling users that the short URL might point to the wrong location and explain why.

      Attachments

        Activity

          People

            fabio.dasilva Fabio Da Silva
            vojtech.koval Vojtech Koval
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist