We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The BACnetID model has a first_unused_id() static method:
first_unused_id()
mreg/mreg/models/host.py
Lines 78 to 97 in bbfcf18
first_unused_id()does not look like anything that should ever exist... Now, it is used in tests:
mreg/mreg/api/v1/tests/tests_bacnet.py
Lines 17 to 22 in bbfcf18
Lines 30 to 32 in bbfcf18
But, much worse is that the code is used during creation of BACnetID entries:
mreg/mreg/api/v1/views_bacnet.py
Lines 23 to 62 in bbfcf18
This is a fairly classical example of a race condition and should be remedied.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The BACnetID model has a
first_unused_id()
static method:mreg/mreg/models/host.py
Lines 78 to 97 in bbfcf18
first_unused_id()
does not look like anything that should ever exist... Now, it is used in tests:mreg/mreg/api/v1/tests/tests_bacnet.py
Lines 17 to 22 in bbfcf18
mreg/mreg/api/v1/tests/tests_bacnet.py
Lines 30 to 32 in bbfcf18
But, much worse is that the code is used during creation of BACnetID entries:
mreg/mreg/api/v1/views_bacnet.py
Lines 23 to 62 in bbfcf18
This is a fairly classical example of a race condition and should be remedied.
The text was updated successfully, but these errors were encountered: