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

Updated configuration_item to use provided sys_class_name #413

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EUCTechTopics
Copy link

SUMMARY

Fixes a bug where the get_record method within the configuration_item module queries the general cmdb_ci table, regardless of the sys_class_name parameter provided by the user. This behaviour could result in incorrect or unintended record retrieval when a user specified a different class through sys_class_name, leading to potential conflicts and errors, especially when multiple records with the same name exist across different classes.

Fixes #404

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
servicenow.itsm.configuration_item
ADDITIONAL INFORMATION

See #404

Copy link

Copy link

@EUCTechTopics EUCTechTopics force-pushed the main branch 2 times, most recently from 64959f1 to 48b215f Compare November 12, 2024 14:00
Copy link

@EUCTechTopics EUCTechTopics force-pushed the main branch 3 times, most recently from d626fd8 to 74e3275 Compare November 12, 2024 14:38
Copy link

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.

servicenow.itsm.configuration_item is hard-coded to look in whole 'cmdb_ci' class when not query_sys_id
2 participants