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 While Creating a New Tag From Backend #2709

Closed
zanpizmoht opened this issue Sep 18, 2019 · 0 comments · Fixed by #2796
Closed

Bug While Creating a New Tag From Backend #2709

zanpizmoht opened this issue Sep 18, 2019 · 0 comments · Fixed by #2796
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

@zanpizmoht
Copy link
Contributor

Describe the bug
When creating a tag manually through back end and SQL case there is no checking if the tag name is too short, too long, or contains invalid symbols.

To Reproduce
Steps to reproduce the behaviour:

  1. In the code, manually create a tag with name "A" with create method from TagServiceImpl.java
  2. The tag is created, but it should not be as it is too short (the same goes for too long names and names with invalid symbols)

OR

  1. Start KAPUADB
  2. Type in the SQL case such as: INSERT INTO KAPUADB.TAG_TAG (SCOPE_ID, ID, CREATED_BY, MODIFIED_BY, NAME) VALUES (1, 6883354369915964061, 1, 1, ‘A’)
  3. Tag with too short name should not be created but this is not the case

Expected behavior
The backend should return exception KapuaException.

Version of Kapua
1.1.0

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

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

@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 Oct 1, 2019
@Coduz Coduz self-assigned this Dec 17, 2019
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

Successfully merging a pull request may close this issue.

2 participants