Closed demon101 closed 6 years ago
It would be better to do this changes in grails-core.
In grails for email validation EmailVlidator used. For internet addresses InternetAddress used. for example, in domains, emails constraint works correct (EmailValidator used)
And I think, this is a bug
Oh, yes, I understand
Unfortunately EmailValidator doesn't support mailboxes. :( So I combine two methods.
@kefirfromperm what is it "mailbox"?
For example "John Smith \john.smith@example.com\"
I think, the issue can be closed
with new version of plugin I have got following error:
16:03:45.676 WARN -- [ main] gEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in com.avax.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Failed to introspect class: class grails.plugin.asyncmail.Application 16:03:45.690 ERROR -- [ main] f.s.DefaultListableBeanFactory : Destroy method on bean with name 'org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory' threw an exception java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@77524ca7: startup date [Mon Jan 29 16:03:36 CET 2018]; root of context hierarchy
Looks like, you included application.groovy to the plugin. Could u delete it?
I have grails 3.2.11 version
Looks like needs to build the plugin under Grails 3.2.x
@kefirfromperm could you build it with grails 3.2.11, please?
Try 2.0.1-3.2.x
In the plugin for emails validation InternetAddress.validate used. this is a very strict check.
https://stackoverflow.com/questions/3844431/are-email-addresses-allowed-to-contain-non-alphanumeric-characters
But with current validations, unicode symbols are forbidden at all
From my point of view, better to use apache.commons EmailValidator.