I have just recently upgraded from an old version to the latest joey version of campsite. Our subscribers use the email address as a username to logon.
Something within campsite does not like a username either as long - or containing an @ char.
I keep getting 'Invalid Username' message. I have tried with a completely new login template created using the Login tags etc.
However, when signing in with a 'normal' user name all works ok.
I'm unable to reproduce this behaviour. I can log in with user name containing
@ in it. Most probably this happens because of some PHP configuration issue.
Can you give me access to your site so I can debug?
Regards,
Mugur
--- patrick@rocksolidsystems.biz wrote:
> I have just recently upgraded from an old version to the latest joey version
> of campsite. Our subscribers use the email address as a username to logon.
> Something within campsite does not like a username either as long - or
> containing an @ char.
>
> I keep getting 'Invalid Username' message. I have tried with a completely new
> login template created using the Login tags etc.
>
> However, when signing in with a 'normal' user name all works ok.
>
> Anyhelp appreciated as I am stuck at this point.
>
> Patrick
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
The site url : noseweek.mediaturtle.com
here you will see a link to login ....
it's a test site at the moment (although i am getting pressure from
my principles to make live) so passing you the passwords etc here ...
i made two users : t@te.cz and tte.cz both with password "MiniCooperS"
the first one doesn't work, the second does.
you can try it at noseweek.mediaturtle.com/pwtest.tpl
which is simple, 'clean', campsite form.
it has the same behavior
if you need to log on to campsite..
patrick
MiniCooperS
By the way the Campsite logon works fine.
It seems to come into play when using the
campsite commands.
Let me know if you need more
patrick wright
RockSolid Systems
+27 82 652 7474
On 29 Aug 2006, at 12:52 PM, Mugur Rus wrote:
> Hi Patrick,
>
> I'm unable to reproduce this behaviour. I can log in with user name
> containing
> @ in it. Most probably this happens because of some PHP
> configuration issue.
> Can you give me access to your site so I can debug?
>
> Regards,
> Mugur
>
> --- patrick@rocksolidsystems.biz wrote:
>> I have just recently upgraded from an old version to the latest
>> joey version
>> of campsite. Our subscribers use the email address as a username
>> to logon.
>> Something within campsite does not like a username either as long
>> - or
>> containing an @ char.
>>
>> I keep getting 'Invalid Username' message. I have tried with a
>> completely new
>> login template created using the Login tags etc.
>>
>> However, when signing in with a 'normal' user name all works ok.
>>
>> Anyhelp appreciated as I am stuck at this point.
>>
>> Patrick
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
It is the same thing as the @ bug I reported in trac.
The explanation:
1) create new subscriber using admin interface with @ in UName
2) use login.tpl on the frontend to login
- result is, invalid username
I checked database and the values are correct, so the only reason I can
imageine is the login form feature in parser.
I believe the bug must be there.
Ondra
On Tue, 2006-08-29 at 13:08 +0200, patrick wright wrote:
> sure.
>
>
> The site url : noseweek.mediaturtle.com
> here you will see a link to login ....
>
>
> it's a test site at the moment (although i am getting pressure from my
> principles to make live) so passing you the passwords etc here ...
>
>
> i made two users :
> t@te.cz and tte.cz both with password "MiniCooperS"
> the first one doesn't work, the second does.
>
>
> you can try it at noseweek.mediaturtle.com/pwtest.tpl
> which is simple, 'clean', campsite form.
>
>
> it has the same behavior
>
>
> if you need to log on to campsite..
> patrick
> MiniCooperS
>
>
> By the way the Campsite logon works fine.
>
>
> It seems to come into play when using the
> campsite commands.
>
>
> Let me know if you need more
>
>
>
>
>
> patrick wright
>
> RockSolid Systems
>
> +27 82 652 7474
>
>
>
>
>
>
>
> On 29 Aug 2006, at 12:52 PM, Mugur Rus wrote:
>
> > Hi Patrick,
> >
> >
> > I'm unable to reproduce this behaviour. I can log in with user name
> > containing
> > @ in it. Most probably this happens because of some PHP
> > configuration issue.
> > Can you give me access to your site so I can debug?
> >
> >
> > Regards,
> > Mugur
> >
> >
> > --- patrick@rocksolidsystems.biz wrote:
> > > I have just recently upgraded from an old version to the latest
> > > joey version
> > > of campsite. Our subscribers use the email address as a username
> > > to logon.
> > > Something within campsite does not like a username either as long
> > > - or
> > > containing an @ char.
> > >
> > >
> > > I keep getting 'Invalid Username' message. I have tried with a
> > > completely new
> > > login template created using the Login tags etc.
> > >
> > >
> > > However, when signing in with a 'normal' user name all works ok.
> > >
> > >
> > > Anyhelp appreciated as I am stuck at this point.
> > >
> > >
> > > Patrick
> > >
> > >
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
>
>
The problem seems to be in the MySQL libraries, here is the explanation: when
querying the database it escapes the string (replaces ', " and other
characters). On Linux the escaped email is the same (e.g. test@test.com) but on
FreeBSD it changes the @ character into %40: test%40test.com, while in the
database the correct value was stored (test@test.com).
--- patrick wright wrote:
> sure.
>
> The site url : noseweek.mediaturtle.com
> here you will see a link to login ....
>
> it's a test site at the moment (although i am getting pressure from
> my principles to make live) so passing you the passwords etc here ...
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
> Hi Patrick,
>
> The problem seems to be in the MySQL libraries, here is the
> explanation: when
> querying the database it escapes the string (replaces ', " and other
> characters). On Linux the escaped email is the same (e.g.
> test@test.com) but on
> FreeBSD it changes the @ character into %40: test%40test.com, while
> in the
> database the correct value was stored (test@test.com).
>
> Ondra asked for help on MySQL support list; in the meantime you
> could do the
> login through a PHP script and use Campsite API to create the user
> session.
> See:
> - http://code.campware.org/api/campsite-2.6/
> - http://code.campware.org/api/campsite-2.6/Campsite/User.html
>
> Regards,
> Mugur
>
> --- patrick wright wrote:
>> sure.
>>
>> The site url : noseweek.mediaturtle.com
>> here you will see a link to login ....
>>
>> it's a test site at the moment (although i am getting pressure from
>> my principles to make live) so passing you the passwords etc here ...
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>