Open LeoNerdoG opened 5 years ago
Hi @lorthirk in this issue, some special symbols are problem, because Kapua replaces them with question marks ("?"), and after changes are saved, fields are in error state. My solution is to set some regular expression on this fields. Maybe we can allow some characters, and some characters can be forbidden. This kind of regex already exists, and maybe we can apply it. What is your opinion about this? Is this acceptable solution?
Thank you. Regards, Ana
Does this happen with any service with textboxes or just with the RestService?
If user enters certain symbols into user.name or roles fields in Devices -> Configuration -> RestService, Kapua replaces them with question marks ("?") and after saving the changes user goes back to these fields, all of them are in error state, wich is ok, but they shoul be in error state earlier when the symbols are first inserted into these fields.
Testflow:
Expected behavior Kapua should report an error prior to saving the changes, otherwise all the special symbols are replaced with question marks.
Screenshot No. 1:
Screenshot No. 2:
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: