Skip to content

dir: fix crash on purge with job without client#1857

Merged
BareosBot merged 2 commits intobareos:masterfrom
arogge:dev/arogge/master/crash-on-purge
Jul 8, 2024
Merged

dir: fix crash on purge with job without client#1857
BareosBot merged 2 commits intobareos:masterfrom
arogge:dev/arogge/master/crash-on-purge

Conversation

@arogge
Copy link
Member

@arogge arogge commented Jun 13, 2024

purge volume would crash if the first job declared in your configuration has no client defined, because the code uses the default-client taken from there to fill information in the log messages.
That not really required information has been removed from the log messages which will also fix the crash.

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
  • 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

@arogge arogge added this to the 24.0.0 milestone Jun 13, 2024
@sebsura sebsura self-requested a review June 17, 2024 06:06
Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

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

Looks good to me. I would definitely also backport this to 22. Should we do 21 as well ?

@bruno-at-bareos
Copy link
Contributor

Just fixed the commit log message length to make pr-tool happy

purge volume would crash if the first job declared in your
configuration has no client defined, because the code uses
the default-client taken from there to fill information in
the log messages.
That not really required information has been removed from
the log messages which will also fix the crash.
@sebsura sebsura force-pushed the dev/arogge/master/crash-on-purge branch from ffb8e20 to ad72803 Compare July 8, 2024 08:01
@sebsura
Copy link
Contributor

sebsura commented Jul 8, 2024

Rebased on master so that this can get merged.

@BareosBot BareosBot merged commit 55c8e6c into bareos:master Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This addresses a bug requires backport to 23

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants