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

validate-bundle has no default value for --report-dir #1149

Open
jblalockusgs opened this issue Feb 21, 2025 · 0 comments
Open

validate-bundle has no default value for --report-dir #1149

jblalockusgs opened this issue Feb 21, 2025 · 0 comments
Assignees
Labels
bug Something isn't working needs:triage

Comments

@jblalockusgs
Copy link

Checked for duplicates

Yes - I've already checked

🐛 Describe the bug

When you run validate-bundle without including --report-dir, the default value for the internal REPORT_DIR is empty. This leads to the default value for the internal REPORT_FILE to become /validate_summary.log and the default value of the internal RUN_DIR to become /. This obviously creates a permissions issue when trying to create validate_all_files.txt. This results in validate-bundle reporting that there are no products to validate (because validate_all_files.txt doesn't exist), exiting the program.

As a side note, the usage message says that --dir-path is the long form of -d but in the actual code it's --report-dir.

🕵️ Expected behavior

I expected --report-dir to have a default value set if it's not included in the validate-bundle call. It's listed as an optional parameter but to have validate-bundle function correctly, it's currently behaving as a required parameter.

📜 To Reproduce

  1. Execute validate-bundle --target-bundle /path/to/bundle.xml

🖥 Environment Info

  • Version of this software: 3.6.3
  • Operating System: Ubuntu 18.04.6 LTS

📚 Version of Software Used

validate 3.6.3

🩺 Test Data / Additional context

No response

🦄 Related requirements

No response

Acceptance Criteria

Given
When I perform
Then I expect

⚙️ Engineering Details

No response

🎉 Integration & Test

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage
Projects
Status: ToDo
Development

No branches or pull requests

2 participants