Hi Senaka, On Sat, Jan 28, 2012 at 7:13 AM, Senaka Fernando <[email protected]> wrote:
> Hi Hasini, > > > On Tuesday, January 24, 2012, Hasini Gunasinghe <[email protected]> wrote: > > Hi Senaka, > > > > On Mon, Jan 23, 2012 at 11:16 PM, Senaka Fernando <[email protected]> > wrote: > >> > >> Hi Hasini, > >> > >> On Mon, Jan 23, 2012 at 10:06 PM, Hasini Gunasinghe <[email protected]> > wrote: > >>> > >>> Hi Senaka, > >>> > >>> On Mon, Jan 23, 2012 at 8:41 PM, Senaka Fernando <[email protected]> > wrote: > >>>> > >>>> Hi Azeez, > >>>> > >>>> Sorry lost track of this. > >>>> > >>>> 1. The first one is the easiest. Insert malformed XML into > user-mgt.xml and start the server. Console is clean (no exceptions). Server > hangs and does not start-up. There is no clue to what went wrong. Just make > <Configuration> into <!--Configuration>. > >>> > >>> Error reporting needs to be fixed here. Thanks for reporting. > This was fixed in trunk. >>>> > >>>> 2. Create any possible error that would result in the user profiles > section being corrupted. No exceptions on the BE. The front-end returns the > same error message for all types of errors making debugging a nightmare. We > reproduced this by a an accidentally corrupted database, but there could be > many other ways to get to this. > >>> > >>> I couldn't reproduce this with user profiles feature. Can you please > mention couple of examples out of the many ways you observed this? > >> > >> As I said I got it reproduced using an accidentally corrupted DB, but > there could be many other ways - by looking at the code. > > > > Since you have already identified the related code, can you please point > to it? So that it will be easy to rectify it if there are any issues. > > Great. I misunderstood you earlier. Find the exception in the index.jsp, > add.jsp and edit.jsp pages of the identity user profile UI. There you catch > the exception and send an error message to the UI. It is the same error > message in all 3 cases, so it should be easy to locate. Now, check the > corresponding code in BE. You'll see that all exceptions are simply > propagated to FE, and at times, the cause is not carried forward. You need > to dig deeper and deeper into the BE code until you get to the low-level > LDAP layer up until the admin service. Thanks for the information. It will help to identify where to fix. However, since I haven't written the code in this component, I am not quite sure whether the error handling was done that way on any purpose. > > > > >> > >> But, I have not attempted to. What I'm trying to get to is that, any > error will produce no stack traces but a single error message in the UI. > >> > >>>> > >>>> Though not quite related, we noticed that usernames on Carbon 3.2.3 > are case-sensitive, > >>> > >>> I guess you meant to say case insensitive - we have mentioned this in > sign-in help docs as follows: > >>> "Please note that due to the inherited behaviour of default user store > - which is embedded-ldap, user names are case insensitive in 3.2.0 based > carbon products." > >>> Are you sure the login failure you encountered is due to a case > sensitive issue? > >>> Because username is case insensitive as mentioned above - and allows > you to login even if you change the case of the username. > >> > >> Actually, if the username was 'U12345' you cannot login as 'u12345', > which is the concern. > > > > I tried this case with IS 3.2.3 and it is possible to login with both > the above usernames with default user store - which is embedded ldap. > > Did you encounter this with any other custom LDAP? > > In that case, it is not a regression issue, but it is due to a behavior > of that particular LDAP that you connected to. > > Not really. When connected to same custom LDAP, the sensitivity is not > effective in older releases (very clear in 3.1.0 and perhaps in 3.2.0). So, > this is clearly a regression. > Can you please let me know what is the LDAP server you tried to connect to - i.e: OpenLDAP, ApacheDS etc? (So that we can try to reproduce.) Because this could not be reproduced with embedded-apacheds and was able to login with the same user name in both lower and upper case. Thanks, Hasini. > > Thanks, > Senaka. > > > > Thanks, > > Hasini. > > > > Thanks, > > Senaka. > > > > Thanks, > > Hasini. > > > > > > which is a L1 regression. Also, just as in 1 and 2 above, the error is > failed login attempt, and BE is dead silent to what went wrong. It took at > least a dozen retries to figure out and a fair amount on time wasted in > understanding what went wrong. Though the FE might give out a simple > authentication failure, I'd expect the BE to be more specific to what went > wrong. > > > > Thanks, > > Senaka. > > > > On Mon, Jan 23, 2012 at 8:19 PM, Afkham Azeez <[email protected]> wrote: > > > > Please post the relevant code segments. This is something we keep > repeating during code reviews. > > > > On Fri, Jan 20, 2012 at 11:16 PM, Senaka Fernando <[email protected]> > wrote: > > > > Hi all, > > > > Just like it can be ugly to see lengthy stacktraces at times, seeing the > UI not working and errors throwing and no stacktrace or clue of what went > wrong is extremely annoying. I was getting some errors from UM this time, > and multiple kinds of it; and, had to debug the code to learn what was > going wrong. The server is failing to work, but the console and the FE has > no clue to what went wrong. It's greatly appreciated if we could go through > some of these code and check that we properly throw exceptions. I will > follow up on the instances where exceptions were not thrown and how to > reproduce them. > > > > Thanks, > > Senaka. > > > > -- > > Senaka Fernando > > Product Manager - WSO2 Governance Registry; > > Associate Technical Lead; WSO2 Inc.; http://wso2.com > > Member; Apache Software Foundation; http://apache.org > > > > E-mail: senaka AT wso2.com > > P: +1 408 754 7388; ext: 51736; M: +94 77 322 1818 > > Linked-In: http://linkedin.com/in/senakafernando > > > > Lean . Enterprise . Middleware > > > > > > _______________________________________________ > > > > > > -- > *Senaka Fernando* > Product Manager - WSO2 Governance Registry; > Associate Technical Lead; WSO2 Inc.; http://wso2.com* > Member; Apache Software Foundation; http://apache.org > > E-mail: senaka AT wso2.com > **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 > Linked-In: http://linkedin.com/in/senakafernando > > *Lean . Enterprise . Middleware > > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > >
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
