Issue Details (XML | Word | Printable)

Key: GLASSFISH-15604
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Joe Di Pol
Reporter: lidiam
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Allow user to clear node host field

Created: 18/Jan/11 06:13 PM   Updated: Tuesday 11:33 PM
Component/s: configuration
Affects Version/s: None
Fix Version/s: future release

Time Tracking:
Not Specified

File Attachments: 1. JPEG File clearnodehosterror.JPG (86 kB) 18/Jan/11 06:16 PM - lidiam


build: b38, v3.1

Tags: 3_1_1-scrubbed 3_1-next
Participants: Anissa Lam, Joe Di Pol and lidiam

 Description  « Hide

When creating a config node, Node Host is not a required field and node can be create without it. However, if user enters a host name and creates a node, if user then wants to clear this field, the following error is displayed on Save:

An error has occurred
javax.validation.ConstraintViolationException: Constraints for this Node configuration have been violated: on property [ nodeHost ] violation reason [ Invalid nodehost name. Name must start with a letter or number and may contain only letters, numbers, and certain other characters. ]

User should be able to clear node host field.

Joe Di Pol added a comment - 13/Oct/11 10:22 PM

Not a must fix for the next update release. Lowering priority.

Joe Di Pol added a comment - 12/May/11 02:10 PM

This is being caused by a bean validation constraint that does not allow an empty string to be set as the host name:

@Pattern(regexp=NAME_REGEX, message="{}", payload=Node.class)
String getNodeHost();

where NAME_REGEX = "[A-Za-z0-9_][A-Za-z0-9\\-_\\./;#]*";

Anissa Lam added a comment - 18/Jan/11 08:35 PM

The restriction comes from the backend.
Assign to Joe to evaluate.