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

fix(jans-cli-tui): scripts retreiving bounderies #9195

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

devrimyatar
Copy link
Contributor

closes #9132

  • I confirm that there is no impact on the docs due to the code changes in this PR.

Signed-off-by: Mustafa Baser <mbaser@mail.com>
@devrimyatar devrimyatar added kind-bug Issue or PR is a bug in existing functionality comp-jans-cli-tui Component affected by issue or PR labels Aug 15, 2024
@devrimyatar devrimyatar requested review from yuriyz and pujavs August 15, 2024 12:32
Copy link

dryrunsecurity bot commented Aug 15, 2024

DryRun Security Summary

The provided code changes focus on improving the pagination functionality of the script management feature in the jans-cli-tui/cli_tui/plugins/060_scripts/main.py file, and while they do not introduce any obvious vulnerabilities, a comprehensive security review of the entire application is recommended to identify and address any potential security issues.

Expand for full summary

Summary:

The provided code changes are focused on improving the pagination functionality of the script management feature in the jans-cli-tui/cli_tui/plugins/060_scripts/main.py file. The changes adjust the logic for handling the "Prev" and "Next" buttons to ensure that the correct range of script entries is displayed to the user. From an application security perspective, the changes do not introduce any obvious vulnerabilities. However, it's important to consider the security implications of the entire codebase, including input validation, authentication, and authorization mechanisms, to ensure the application's overall security posture.

Files Changed:

  • jans-cli-tui/cli_tui/plugins/060_scripts/main.py: The changes modify the scripts_update_list function to adjust the start index for retrieving the previous and next set of scripts. This ensures that the "Prev" and "Next" buttons correctly display the appropriate range of script entries. The help text for the "Next" button is also updated to reflect the correct functionality. While these changes do not raise any immediate security concerns, a comprehensive security review of the entire application is recommended to identify and address any potential vulnerabilities.

Code Analysis

We ran 9 analyzers against 1 file and 0 analyzers had findings. 9 analyzers had no findings.

Riskiness

🟢 Risk threshold not exceeded.

View PR in the DryRun Dashboard.

Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

Quality Gate Passed Quality Gate passed for 'keycloak-integration-parent'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

Copy link

Copy link

Copy link

@devrimyatar devrimyatar merged commit 1929a10 into main Aug 23, 2024
22 checks passed
@devrimyatar devrimyatar deleted the jans-cli-tui-scripts-9132 branch August 23, 2024 11:19
yuriyz pushed a commit that referenced this pull request Nov 7, 2024
Signed-off-by: Mustafa Baser <mbaser@mail.com>
Former-commit-id: 1929a10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-cli-tui Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix(jans-cli-tui): display correct message on script list page.
3 participants