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

"Entity of type tag with id/null was not found" Error When Trying To Add Deleted Tag #2222

Closed
LeoNerdoG opened this issue Nov 30, 2018 · 1 comment
Assignees
Labels
Bug This is a bug or an unexpected behaviour. Fix it! Console GWT This issue/PR is related to Admin Web Console

Comments

@LeoNerdoG
Copy link
Contributor

LeoNerdoG commented Nov 30, 2018

If user tries to add a tag to a device, that has been deleted (e.g. from another browser), Kapua returns an error that this Tag cannot be found.
I suggest we modify this somehow so at least the field is coloured in red (error state) or even better - that window closes and Kapua returns a smiliar error to existing one.

Testflow:

  1. Login as kapua-sys or any other user that has proper permissions
  2. Go to Tags, add a tag (e.g. tag0)
  3. Go to Device create a device (e.g. device0) and go to its Tags tab click Add and select tag0
  4. Now open kapua in new browser (e.g. Chrome or Opera), login as kapua-sys and go to Tags.
  5. Select tag0 and delete it.
  6. Now go back to the first browser and try to add the deleted tag.

Expected behavior
Kapua should close the Add tag window and report that "tag is not available/missing" or something similar.

Screenshots
screenshot 2018-11-30 at 09 48 46

Version of Kapua
1.1.0-SNAPSHOT

Type of deployment
[ ] Local Vagrant deployment
[x] Docker
[ ] Openshift (in its variants)
[ ] Others

Main component affected
[x] Console (in case of console please report info on which browser you encountered the problem)
[ ] REST API
[ ] Message Broker
[ ] - Others

Browsers used:

  • Google Chrome (Version 69.0.3497.100 (Official Build) (64-bit))
  • Safari (Version 12.0 (13604.3.5))
  • Mozilla Firefox (63.0 (64-bit))
  • Opera (Version 55.0.2994.44)
@Coduz Coduz added Bug This is a bug or an unexpected behaviour. Fix it! Console GWT This issue/PR is related to Admin Web Console labels Nov 30, 2018
@muros-ct muros-ct self-assigned this Dec 5, 2018
@LeoNerdoG LeoNerdoG changed the title "Entity of type tag with id/null was not found" Error When trying to add deleted Tag "Entity of type tag with id/null was not found" Error When Trying To Add Deleted Tag Dec 11, 2018
@LeoNerdoG
Copy link
Contributor Author

I have verified that this issue has been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug or an unexpected behaviour. Fix it! Console GWT This issue/PR is related to Admin Web Console
Projects
None yet
Development

No branches or pull requests

3 participants