Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2024-8553 #17091

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

CVE-2024-8553 #17091

wants to merge 3 commits into from

Conversation

lhellebr
Copy link
Contributor

@lhellebr lhellebr commented Dec 5, 2024

No description provided.

@lhellebr lhellebr added CherryPick PR needs CherryPick to previous branches 6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 6.16.z Introduced in or relating directly to Satellite 6.16 labels Dec 5, 2024
@lhellebr lhellebr changed the title CVE-2024-8553, CLI part CVE-2024-8553 Dec 9, 2024
@lhellebr lhellebr marked this pull request as ready for review December 9, 2024 16:12
@lhellebr lhellebr requested review from a team as code owners December 9, 2024 16:12
@vsedmik
Copy link
Contributor

vsedmik commented Dec 10, 2024

trigger: test-robottelo
pytest: tests/foreman/cli/test_reporttemplates.py::test_positive_generate_report_check_for_injection tests/foreman/ui/test_jobtemplate.py::test_positive_preview_template_check_for_injection

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 9569
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/cli/test_reporttemplates.py::test_positive_generate_report_check_for_injection tests/foreman/ui/test_jobtemplate.py::test_positive_preview_template_check_for_injection --external-logging
Test Result : ============ 2 failed, 2 passed, 228 warnings in 1523.14s (0:25:23) ============

@Satellite-QE Satellite-QE added the PRT-Failed Indicates that latest PRT run is failed for the PR label Dec 10, 2024
Copy link
Contributor

@vsedmik vsedmik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codewisely looks good, but the UI cases failed with:

AttributeError: Object <<class 'airgun.views.common.TemplateEditor'>> has no widget name "error"

Do we need some Airgun changes for them to pass @lhellebr ?

@lhellebr
Copy link
Contributor Author

Oh yes, stupid me. SatelliteQE/airgun#1649

@lhellebr
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/cli/test_reporttemplates.py::test_positive_generate_report_check_for_injection tests/foreman/ui/test_jobtemplate.py::test_positive_preview_template_check_for_injection
airgun: 1649

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 9579
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/cli/test_reporttemplates.py::test_positive_generate_report_check_for_injection tests/foreman/ui/test_jobtemplate.py::test_positive_preview_template_check_for_injection --external-logging
Test Result : ================= 4 passed, 223 warnings in 1439.97s (0:23:59) =================

@Satellite-QE Satellite-QE added PRT-Passed Indicates that latest PRT run is passed for the PR and removed PRT-Failed Indicates that latest PRT run is failed for the PR labels Dec 10, 2024
@ogajduse ogajduse requested a review from Copilot December 11, 2024 14:14
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 suggestion.

Comments skipped due to low confidence (2)

tests/foreman/ui/test_jobtemplate.py:15

  • [nitpick] The function name gen_alpha is unclear. It should be renamed to generate_alpha_string for better clarity.
from fauxfactory import gen_alpha, gen_string

tests/foreman/ui/test_jobtemplate.py:271

  • [nitpick] The error message is too verbose and could be simplified to improve readability. Consider rephrasing to: 'Error during rendering: 'select' must be a Symbol or Array of Symbols. Save template input changes before previewing.'
"Problem with previewing the template: error during rendering: Value of 'select' passed to load_users must be Symbol or Array of Symbols. Note that you must save template input changes before you try to preview it."

tests/foreman/cli/test_reporttemplates.py Show resolved Hide resolved
@lhellebr
Copy link
Contributor Author

Dear Copilot, all three of your catches are wrong.

  1. I didn't choose name of gen_string in this PR
  2. I didn't choose the exact wording of that error message either, it's in the product
  3. The 'file' parameter should be a path to a file, not the content itself. is simply not true, that's not how Robottelo treats it.

@lhellebr lhellebr requested review from vsedmik and a team December 11, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 6.16.z Introduced in or relating directly to Satellite 6.16 CherryPick PR needs CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants