Mailinglist Archive: opensuse-buildservice (339 mails)

< Previous Next >
Re: [opensuse-buildservice] osc on local obs fails at pkg creation
  • From: Marcus Hüwe <suse-tux@xxxxxx>
  • Date: Sat, 29 Mar 2008 15:55:46 +0100
  • Message-id: <20080329145546.GB3705@xxxxxxxxxxxxxxxxxxx>
On 2008-03-29 15:07:54 +0100, Jan-Simon Möller wrote:
Am Samstag 29 März 2008 13:56:27 schrieb Marcus Hüwe:
On 2008-03-29 11:11:25 +0100, Jan-Simon Möller wrote:
Solved ... sri for the noise.

Resolution: use "user = Admin" with CAPITAL "A"
Status: PEBCAC

have phun ;)

Best regards
Jan-Simon
P.S.: Funny ... wrong username -> mysql-error as reply, no "wrong auth!"

No the auth went smooth because the query for the user isn't case sensitive
("SELECT * FROM `users` WHERE (login = 'admin') LIMIT 1" and
"SELECT * FROM `users` WHERE (login = 'Admin') LIMIT 1" return the same
results).


Marcus

Then try it yourself ! It doesn't work. Changing admin to Admin and all
problems were gone !

No. I just wanted to point out that the error message is correct in this case
because the authentication was fine. The problem occurs when it tries to "save"
the package in the database because "admin" and "Admin" result in the same user
object (because the query isn't case sensitive), so it'll try to add the same
user 2 times.. and this finally leads to the duplicate key error.


Marcus
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups