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

Prevent exception when checked schema is empty #15791

Conversation

cedric-anne
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #15767

There may be edge cases where GLPI fails to extract tables from a glpi-XXX-empty.sql schema file. For instance, if the file is corrupted.
In this case, to avoid having an exception (see #15767), the code have to be adapted.

Copy link
Contributor

@trasher trasher left a comment

Choose a reason for hiding this comment

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

This should not happen. Anyway, if this really happen; and if we want to handle that kind of edge case, we have to log something or tell user the schema is incorrect.

If SQL schema file is corrupted, which other files are as well? An kind of corruption detection would be a better solution that just hidding the error/

@cedric-anne cedric-anne deleted the 10.0/schema-check-edge-case branch October 16, 2023 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants