Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-27260

Add :update_packages to permitted parameters in global registration controller.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.15.0
    • Registration
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Low
    • None

      Description of problem:

      2024-08-15T05:31:51 [I|app|b2393257] Started GET "/register?update_packages=false" for 10.46.237.9 at 2024-08-15 05:31:51 -0400
      2024-08-15T05:31:51 [I|app|b2393257] Processing by Api::V2::RegistrationController#global as /
      2024-08-15T05:31:51 [I|app|b2393257]   Parameters: {"update_packages"=>"false"}
      2024-08-15T05:31:51 [I|app|b2393257] Authorized user admin(Admin User)
      2024-08-15T05:31:51 [D|app|b2393257] Post-login processing for admin
      2024-08-15T05:31:51 [D|app|b2393257] Unpermitted parameter: :update_packages                   <-----------------------------
      2024-08-15T05:31:51 [D|app|b2393257]   Rendering text template
      2024-08-15T05:31:51 [I|app|b2393257]   Rendered text template (Duration: 0.0ms | Allocations: 2)
      2024-08-15T05:31:51 [D|app|b2393257] Body: #!/bin/sh
       b2393257 | 
       b2393257 | # Make sure, all command output can be parsed (e.g. from subscription-manager)
       b2393257 | export LC_ALL=C LANG=C
       b2393257 | 
       b2393257 | # Rendered with following template parameters:
       b2393257 | # User: [admin]
       b2393257 | # Organization: [Default Organization]
       b2393257 | # Location: [Default Location]
       b2393257 | # Update packages: [false]                                                          <----------------------------

      How reproducible:

       Run global registration

      Is this issue a regression from an earlier version:

       

      Steps to Reproduce:

      1.

      2.

      3.

      Actual behavior:

      We are getting a debug message "[D|app|b2393257] Unpermitted parameter: :update_packages " in the log. While it's not an error, it's not a correct behavior.

       

      Expected behavior:
      Parameters that are used in the code are always permitted. No errors are logged.

      Business Impact / Additional info:

       

            Unassigned Unassigned
            zuansorg Lena Ansorgová
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: