fangshuoshirounet / openid-server

Automatically exported from code.google.com/p/openid-server
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

instructions for emailadress always fail with invalid mail #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. deploy as described in QuickInstall
2. register an account
3. goto e-mail adresses
4. enter any mail adress
5. click "send instructions"

What is the expected output? What do you see instead?
i expected a mail sent to me, but instead it always tells me, that the mail
is wrong which it isn't ... XXXXX@YY.ZZ.AA

What version of the product are you using? On what operating system?
JOS 1.2 on suse10 with tomcat5

Please provide any additional information below.

Original issue reported on code.google.com by herzoga....@gmail.com on 23 Jul 2009 at 10:30

GoogleCodeExporter commented 9 years ago
You can modify the configuration of email address pattern(it is a regular 
expression)
in WEB-INF/config/jos.xml:

    <entry key="email.address.pattern">
        <![CDATA[\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*]]>
    </entry>

Original comment by zhoushu...@gmail.com on 23 Jul 2009 at 2:48

GoogleCodeExporter commented 9 years ago
yes, that's what i thought too... and mailAddres.matches(cdatastring) returns 
true as
well, but it didn't work.

now i replaced the \w with [A-Za-z0-9] and replaced the \. as well

thanks for the fast reply

Original comment by herzoga....@gmail.com on 24 Jul 2009 at 5:42

GoogleCodeExporter commented 9 years ago
the problem is the newlines between entry tag and cdata
writing it in one line, without spaces between, solves the problem:

<entry
key="email.address.pattern"><![CDATA[\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
]]></entry>

regards
dominik

Original comment by geoelter...@gmail.com on 10 Sep 2009 at 3:23

GoogleCodeExporter commented 9 years ago

Original comment by zhoushu...@gmail.com on 21 Apr 2010 at 2:57