You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by seb <se...@melin.de> on 2014/08/01 16:46:36 UTC
Login converted to lowercase in James 3 Beta 5 automatically?
Hello,
I have a problem with the current James 3 build. When I create a new account
with uppercase letters
james-cli.sh adduser MY_ACCOUNT@mydomain
it is converted to lowercase, list users says:
my_account@mydomain
Next, I cannot log in to send emails with "MY_ACCOUNT@mydomain" since the
account is lowercase only and authentication is rejected. There is no
ignoreCase with JPA as far as I can see.
Is there a way to get around this?
Currently I create accounts, and then they do not work if they contain
uppercase letters.
Thanks, Seb
--
View this message in context: http://james.10919.n7.nabble.com/Login-converted-to-lowercase-in-James-3-Beta-5-automatically-tp52770.html
Sent from the James - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Login converted to lowercase in James 3 Beta 5 automatically?
Posted by Eric Charles <er...@apache.org>.
Brilliant!
On 08/03/2014 07:06 PM, seb wrote:
> Thanks so much for your feedback.
>
> I got mysql to work (one of these mysterious "suddenly it worked" issues).
> For now I have a cron job that fixes the accounts in the JAMES_USER table in
> the database (quick and dirty hack, it scans the log file and recreates the
> account spelling to match the log). This way I can continue and it gives me
> the time to dig deeper and come up with a patch suggestion.
>
> Happy sunday, everyone.
>
>
>
> --
> View this message in context: http://james.10919.n7.nabble.com/Login-converted-to-lowercase-in-James-3-Beta-5-automatically-tp52770p52805.html
> Sent from the James - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Login converted to lowercase in James 3 Beta 5 automatically?
Posted by seb <se...@melin.de>.
Thanks so much for your feedback.
I got mysql to work (one of these mysterious "suddenly it worked" issues).
For now I have a cron job that fixes the accounts in the JAMES_USER table in
the database (quick and dirty hack, it scans the log file and recreates the
account spelling to match the log). This way I can continue and it gives me
the time to dig deeper and come up with a patch suggestion.
Happy sunday, everyone.
--
View this message in context: http://james.10919.n7.nabble.com/Login-converted-to-lowercase-in-James-3-Beta-5-automatically-tp52770p52805.html
Sent from the James - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Login converted to lowercase in James 3 Beta 5 automatically?
Posted by Eric Charles <er...@apache.org>.
Would be great if you could reopen the JAMES-1369, dig in the code and
propose a patch. The impact is on the user creation and the protocols
(pop, imap, stmp) where the correct case must be applied.
MySql is known/supposed to work. Can you send the log (exception...) in
another thread?
On 08/03/2014 10:58 AM, seb wrote:
> Thanks. The current implementation is definitely broken. It is a weird
> behavior if you create an account with uppercase letters in the user part,
> and said account is not working afterwards.
>
> I tried to use a MySQL as an alternative data store and modify the data
> myself, but SQL support seems to break right after the automatic table
> creation. Hm.
>
>
>
>
>
> --
> View this message in context: http://james.10919.n7.nabble.com/Login-converted-to-lowercase-in-James-3-Beta-5-automatically-tp52770p52795.html
> Sent from the James - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Login converted to lowercase in James 3 Beta 5 automatically?
Posted by seb <se...@melin.de>.
Thanks. The current implementation is definitely broken. It is a weird
behavior if you create an account with uppercase letters in the user part,
and said account is not working afterwards.
I tried to use a MySQL as an alternative data store and modify the data
myself, but SQL support seems to break right after the automatic table
creation. Hm.
--
View this message in context: http://james.10919.n7.nabble.com/Login-converted-to-lowercase-in-James-3-Beta-5-automatically-tp52770p52795.html
Sent from the James - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Login converted to lowercase in James 3 Beta 5 automatically?
Posted by Eric Charles <er...@apache.org>.
We had a discussion on case on
https://issues.apache.org/jira/browse/JAMES-1369
It is also a matter of RFC. Quoting Stefano in a comment "domain names
are case insensitive, so either we always "lowercase" them or we compare
using a case insensitive algorithm. the userpart instead can be case
sensitive. So case must always be preserved by MUA/MDA/MSA."
We should revisit the spec and be sure what behavior is expected on the
user part. Once we are sure, implementing it can be easily done
(probably at the management and the protocols sides).
On 08/01/2014 08:38 PM, seb wrote:
> Thanks, but can't do this. It is a third party system that creates account
> automatically, and the login contains uppercase letters. When it tries to
> send with exactly these credentials, the login is rejected.
>
> Hm. This is really a weird bug, so obvious.
>
>
>
> --
> View this message in context: http://james.10919.n7.nabble.com/Login-converted-to-lowercase-in-James-3-Beta-5-automatically-tp52770p52776.html
> Sent from the James - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Login converted to lowercase in James 3 Beta 5 automatically?
Posted by seb <se...@melin.de>.
Thanks, but can't do this. It is a third party system that creates account
automatically, and the login contains uppercase letters. When it tries to
send with exactly these credentials, the login is rejected.
Hm. This is really a weird bug, so obvious.
--
View this message in context: http://james.10919.n7.nabble.com/Login-converted-to-lowercase-in-James-3-Beta-5-automatically-tp52770p52776.html
Sent from the James - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Login converted to lowercase in James 3 Beta 5 automatically?
Posted by Girivaraprasad Nambari <gi...@gmail.com>.
I observed this issue too. One work around I did was, when you query James,
convert your input to lower case.
For example:
If you use Java, you may do "youremail".toLowercase(), then pass it to
James.
On Fri, Aug 1, 2014 at 10:46 AM, seb <se...@melin.de> wrote:
> Hello,
>
> I have a problem with the current James 3 build. When I create a new
> account
> with uppercase letters
>
> james-cli.sh adduser MY_ACCOUNT@mydomain
>
> it is converted to lowercase, list users says:
>
> my_account@mydomain
>
> Next, I cannot log in to send emails with "MY_ACCOUNT@mydomain" since the
> account is lowercase only and authentication is rejected. There is no
> ignoreCase with JPA as far as I can see.
>
> Is there a way to get around this?
> Currently I create accounts, and then they do not work if they contain
> uppercase letters.
>
> Thanks, Seb
>
>
>
> --
> View this message in context:
> http://james.10919.n7.nabble.com/Login-converted-to-lowercase-in-James-3-Beta-5-automatically-tp52770.html
> Sent from the James - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>