Skip to content

dbcheck: fix dbcheck crash if password is not set in catalog resource#1710

Merged
BareosBot merged 5 commits intobareos:masterfrom
sebsura:dev/ssura/master/fix-dbcheck-missing-pw-crash
Mar 11, 2024
Merged

dbcheck: fix dbcheck crash if password is not set in catalog resource#1710
BareosBot merged 5 commits intobareos:masterfrom
sebsura:dev/ssura/master/fix-dbcheck-missing-pw-crash

Conversation

@sebsura
Copy link
Contributor

@sebsura sebsura commented Feb 9, 2024

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Check backport line
  • Required backport PRs have been created
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

@pstorz pstorz self-assigned this Feb 13, 2024
@pstorz pstorz self-requested a review February 13, 2024 11:00
@sebsura sebsura changed the title dbcheck: fix crash if password is not set in catalog resource dbcheck: fix dbcheck crash if password is not set in catalog resource Feb 20, 2024
@sebsura sebsura force-pushed the dev/ssura/master/fix-dbcheck-missing-pw-crash branch from 0becac2 to c46f9e7 Compare February 23, 2024 12:30
@sebsura
Copy link
Contributor Author

sebsura commented Feb 27, 2024

Need to fix the bahavior with invalid directory names as well!

@sebsura sebsura force-pushed the dev/ssura/master/fix-dbcheck-missing-pw-crash branch 2 times, most recently from a7a20c7 to 2d85b2d Compare March 7, 2024 07:03
Copy link
Member

@pstorz pstorz left a comment

Choose a reason for hiding this comment

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

Please check comments

sebsura and others added 5 commits March 11, 2024 06:43
We now set the strings to be empty if the value it shouldve been
assigned is null.  This can happen if the configuration is missing.
There is very little reason for this debug message to have level 20.
I added some files that specifically have names containing

    < (less than)
    > (greater than)
    : (colon)
    " (double quote)
    / (forward slash)
    \ (backslash)
    | (vertical bar or pipe)
    ? (question mark)
    * (asterisk)

as there are illegal in normal windows paths.
@BareosBot BareosBot force-pushed the dev/ssura/master/fix-dbcheck-missing-pw-crash branch from 789b89f to fb4cc30 Compare March 11, 2024 06:43
@BareosBot BareosBot merged commit cd1d684 into bareos:master Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants