[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Re: login stored procedure
- To: uu@total-knowledge.com
- Subject: Re: login stored procedure
- From: "Alexey Parshin" <alexeyp@gmail.com>
- Date: Fri, 19 Dec 2008 10:03:29 +1100
- Delivered-to: mailing list uu@total-knowledge.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=t6j+gHJJTqIQ4KV8IFYo9zsOaSnepMzy6SSj1YE5kwM=; b=w8F7TIFco+koiz+IugQPfn/Ze/FMGtaPXzQB4zW8ceiqw9A/5Y3j4rbJYMPaQg8zGN CsI2X7xmDtdiZJTly8LfZnMaWxf3HrUouiQrQ9B0lkrnsIRA1keSlYQq/eU1odfweYWo /QIzRRnzwAbKfkytY7u3441F0RBs+Y3I+33Qg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=CIgSgHyJrsiELSlrgwFuNUTS8hDrZVXgZXJ2AcWpGGgJyqloDsA/wyopLV34He4Et/ 6SQnf6KXR8DyoKkHElrQN8Exn+y7iWAWYBE3cvcfDU440J7XH2iR+4aiWrwRgBWHllSy jU/QzM0FC6sNhyEoFEoZfqT3OxgbbGfMNMrCY=
- In-reply-to: <494ABB97.9090709@total-knowledge.com>
- Mailing-list: contact uu-help@total-knowledge.com; run by ezmlm
- References: <494ABB97.9090709@total-knowledge.com>
Frankly speaking, a login error is an exception, no matter what causes it - bad username/pass or db problem.
In reality, 99% of the exceptions here would be invalid password.
2008/12/19 Ilya A. Volynets-Evenbakh
<ilya@total-knowledge.com>
It would be nice to change login stored procedure
in a way that would let it indicate login failure
via return value. This would allow to differentiate
between login failure and database error conditions
in UuServlet code. As of now, failure to connect to
database is treated as login failure, which isn't
right.
As a workaround, I'm now checking for the error string
in exception, but that feels ugly.
Ilya.
--
Alexey Parshin,
http://www.sptk.net