-
Notifications
You must be signed in to change notification settings - Fork 273
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(xo-server-audit): handle the case when db is empty on generateFingerprint #6071
Conversation
CHANGELOG.unreleased.md
Outdated
@@ -12,6 +12,7 @@ | |||
> Users must be able to say: “I had this issue, happy to know it's fixed” | |||
|
|||
- [Dashboard/Health] Fix `error has occured` when a pool has no default SR | |||
- [Plugin/Audit] Fix `key cannot be 'null' or 'undefined'` when no audit log in the database. [#6040](https://github.com/vatesfr/xen-orchestra/issues/6040) (PR [#6071](https://github.com/vatesfr/xen-orchestra/pull/6071)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- [Plugin/Audit] Fix `key cannot be 'null' or 'undefined'` when no audit log in the database. [#6040](https://github.com/vatesfr/xen-orchestra/issues/6040) (PR [#6071](https://github.com/vatesfr/xen-orchestra/pull/6071)) | |
- [Plugin/Audit] Fix `key cannot be 'null' or 'undefined'` error when no audit log in the database. [#6040](https://github.com/vatesfr/xen-orchestra/issues/6040) (PR [#6071](https://github.com/vatesfr/xen-orchestra/pull/6071)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- [Plugin/Audit] Fix `key cannot be 'null' or 'undefined'` when no audit log in the database. [#6040](https://github.com/vatesfr/xen-orchestra/issues/6040) (PR [#6071](https://github.com/vatesfr/xen-orchestra/pull/6071)) | |
- [Plugin/Audit] Fix `key cannot be 'null' or 'undefined'` error when no audit log in the database [#6040](https://github.com/vatesfr/xen-orchestra/issues/6040) (PR [#6071](https://github.com/vatesfr/xen-orchestra/pull/6071)) |
return { | ||
fingerprint: `${oldest}|${newest}`, | ||
newest, | ||
nValid: await this._checkIntegrity({ oldest, newest }), | ||
nValid, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nValid, | |
nValid: newest !== NULL_ID ? await this._checkIntegrity({ oldest, newest }) : 0 |
CHANGELOG.unreleased.md
Outdated
@@ -12,6 +12,7 @@ | |||
> Users must be able to say: “I had this issue, happy to know it's fixed” | |||
|
|||
- [Dashboard/Health] Fix `error has occured` when a pool has no default SR | |||
- [Plugin/Audit] Fix `key cannot be 'null' or 'undefined'` when no audit log in the database. [#6040](https://github.com/vatesfr/xen-orchestra/issues/6040) (PR [#6071](https://github.com/vatesfr/xen-orchestra/pull/6071)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- [Plugin/Audit] Fix `key cannot be 'null' or 'undefined'` when no audit log in the database. [#6040](https://github.com/vatesfr/xen-orchestra/issues/6040) (PR [#6071](https://github.com/vatesfr/xen-orchestra/pull/6071)) | |
- [Plugin/Audit] Fix `key cannot be 'null' or 'undefined'` error when no audit log in the database [#6040](https://github.com/vatesfr/xen-orchestra/issues/6040) (PR [#6071](https://github.com/vatesfr/xen-orchestra/pull/6071)) |
Fixes #6040
Description
In the case we where calling
audit.generateFingerprint
when no audit log in database, an error was thrownCheck list
Fixes #007
orSee xoa-support#42
)CHANGELOG.unreleased.md
:${name} v${new version}
)cron/parse.spec.js
)xo-server
API changes, the corresponding test has been added to/updated onxo-server-test
Process
WiP:
(Work in Progress) if not ready to be mergedFrom the Four Agreements: