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

Bug: When not specifying a concentrator thumbprint, empty string is added in twin #1409

Closed
kbeaugrand opened this issue Oct 25, 2022 · 2 comments · Fixed by #1470
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@kbeaugrand
Copy link
Member

Expected Behavior

When I add a new concentrator without any client thumbprint, the device twin should not have any thumbprint set.

Current Behavior

The device twin have a thumbprint with empty string:

image

Steps to Reproduce

  1. Create a new concentrator
  2. Do not set any thumbprint
  3. Save the concentrator

Context (Environment)

Portal version: 3.3.0
LoRaWAN Stack version: N/A

Logs

Additional Information

@kbeaugrand kbeaugrand added the bug Something isn't working label Oct 25, 2022
@kbeaugrand kbeaugrand added this to the S44 milestone Oct 25, 2022
@kbeaugrand kbeaugrand moved this to 📝 Todo in IoT Hub Portal Oct 25, 2022
@kbeaugrand
Copy link
Member Author

Additional information:
When not specifying, the clientThumbprints in the device model should not be present at all.

@audserraCGI
Copy link
Contributor

The field should also be updated in the database:

Npgsql.PostgresException (0x80004005): 23502: null value in column "ClientThumbprint" of relation "Concentrators" violates not-null constraint

@kbeaugrand kbeaugrand self-assigned this Oct 28, 2022
@kbeaugrand kbeaugrand moved this from 📝 Todo to 🚧 In Progress in IoT Hub Portal Oct 28, 2022
@kbeaugrand kbeaugrand moved this from 🚧 In Progress to 💬 Ready for Review in IoT Hub Portal Oct 28, 2022
@kbeaugrand kbeaugrand moved this from 💬 Ready for Review to 🚀 Ready in IoT Hub Portal Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🚀 Ready
Development

Successfully merging a pull request may close this issue.

2 participants