Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

fix(cron): Escape database name in CentACL #11474

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

hyahiaoui-ext
Copy link
Contributor

Description

Some SQL query doesn’t work with a database containing some special characters (e.g - ) into the ACL CRON. The database name should be surrounded by backquotes in the query strings:

Fixes # MON-14394

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

Target serie

  • 21.04.x
  • 21.10.x
  • 22.04.x
  • 22.10.x (master)

Checklist

Community contributors & Centreon team

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially new classes, functions or any legacy code modified. (docblock)
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (master, maintenance).

@hyahiaoui-ext hyahiaoui-ext force-pushed the MON-14394-escape-database-name-in-centacl branch from 483dea5 to 6172168 Compare August 1, 2022 08:39
@sonarqube-decoration
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell B 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@hyahiaoui-ext hyahiaoui-ext merged commit 4827b45 into develop Aug 2, 2022
@hyahiaoui-ext hyahiaoui-ext deleted the MON-14394-escape-database-name-in-centacl branch August 2, 2022 11:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants