Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-26967 links from package details page incorrectly parse plus signs
  3. SAT-27106

[DEV] links from package details page incorrectly parse plus signs

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Repositories
    • Sprint 137, Sprint 138, Sprint 139, Sprint 140, Sprint 141

      Description of problem:

      When clicking on the page in the web interface showing the details of a package, there are hyperlinks for "Installed On", "Applicable To" and "Upgradable For".  When you click on any of those three links, they open search pages with a search term like this:

      applicable_rpms=httpd-2.4.37-65.module+el8.10.0 22069 b47f5c72.1.x86_64

      However, if the package comes from a module, then the package name contains plus signs. These plus signs get replaced by spaces (as in the example above) and the search fails. If they are manually corrected to use plus signs instead, as in the example below, the search works:

      applicable_rpms=httpd-2.4.37-65.module+el8.10.0+22069+b47f5c72.1.x86_64

       

      How reproducible:

      100%

       

      Is this issue a regression from an earlier version:

      I reproduced this issue in Satellite version 6.15, but I couldn't reproduce it in versions 6.14 or 6.13.  I didn't check EOL versions.

       

       

      Steps to Reproduce:

      1.  go to content > content types > packages

      2. search for a package from a module (eg httpd-2.4.37-65.module+el8.10.0+22069+b47f5c72.1.x86_64 or ruby-3.3.1-2.module+el9.4.0+21859+16f07581.x86_64)

      3. click on the package link
      4. click on the links "Installed On", "Applicable To" and "Upgradable For"

      Actual behavior:
      satellite searches for applicable_rpms= followed by the package name, but omits the plus signs

      Expected behavior:
      satellite should search for applicable_rpms= followed by the package name, including the plus signs (if they are part of the package name)

      Business Impact / Additional info:

      some links in the satellite server's web interface fail to work properly

      DEV Tracker for https://issues.redhat.com/browse/SAT-26967

              iballou@redhat.com Ian Ballou
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Samir Jha Samir Jha
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: