Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.0.1
-
Fix Version/s: 1.0.2
-
Component/s: Scaffolding
-
Labels:None
Description
When creating a domain object with a member that has a url:true constraint added to it, http://localhost is not accepted as a valid url type. This is a bit tricky to avoid during development and testing.
eg:
class TestUrl {
def someUrl
static constraints = {
someUrl(url:true)
}
}
Test:
TestUrl obj = new TestUrl()
obj.url = "http://localhost"
obj.validate() returns false!!
This is by-design. The following construction works fine:
See
GRAILS-1692for explanations.GRAILS-1692for explanations.