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

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

Conversation

sebsura
Copy link
Contributor

@sebsura sebsura commented Mar 8, 2024

Backport of PR #1710 to bareos-23

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.

Source code quality (if there were changes to the original PR)
  • 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

Backport quality

@pstorz pstorz requested review from pstorz and arogge and removed request for arogge March 12, 2024 08:52
@sebsura sebsura force-pushed the backport/bareos-23/fix-dbcheck-missing-pw-crash branch from d9ee3cb to 65a1b9e Compare March 12, 2024 10:45
sebsura and others added 5 commits March 12, 2024 11:15
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.

(cherry picked from commit 7db1d28)
There is very little reason for this debug message to have level 20.

(cherry picked from commit 0d8d1bb)
(cherry picked from commit aa6c72a)
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.

(cherry picked from commit aa6363b)
@BareosBot BareosBot force-pushed the backport/bareos-23/fix-dbcheck-missing-pw-crash branch from 34bc333 to 3117b8b Compare March 12, 2024 11:15
@BareosBot BareosBot merged commit afa2112 into bareos:bareos-23 Mar 12, 2024
@arogge arogge added this to the 23.0.3 milestone Apr 2, 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.

4 participants