Coder Social home page Coder Social logo

Comments (10)

glassfishrobot avatar glassfishrobot commented on August 20, 2024

from glassfish.

glassfishrobot avatar glassfishrobot commented on August 20, 2024

@glassfishrobot Commented
danbrice said:
I just noticed that com.sun.enterprise.security.LoginException and not
javax.security.auth.login.LoginException which
com.sun.appserv.security.AppservPasswordLoginModule.login() throws.

A bit confusing given that the custom login module has to throw the javax version. Maybe there's
nothing can be done about that - but it would have been easier to code against if
com.sun.appserv.security.ProgrammaticLogin.login() threw specific exceptions instead of the all general
"Exception". Surely that could be changed without breaking any existing code.

Thanks,
Dan.

from glassfish.

glassfishrobot avatar glassfishrobot commented on August 20, 2024

@glassfishrobot Commented
sridatta said:
changing owner to sridatta

from glassfish.

glassfishrobot avatar glassfishrobot commented on August 20, 2024

@glassfishrobot Commented
@shingwaichan said:
reassigned to an engineer

from glassfish.

glassfishrobot avatar glassfishrobot commented on August 20, 2024

@glassfishrobot Commented
ahshishs said:
Will make the change so that the root stack trace does not get lost.
I'll also file a bug to clean the following:
1. Some methods in ProgrammaticLogin public API throw java.lang.Exception
The exception should be changed to more narrow and specific subclass
2. LoginContextDriver methods throw com.sun.enterprise.security.LoginException
See if this can be changed to javax.security.auth.login.LoginException
3. com.sun.enterprise.security.LoginException extends java.lang.RuntimeException
(via java.lang.SecurityException) - which means this exception can go uncaught
at compile-time. Should be changed so the goes through the compiler checks.

from glassfish.

glassfishrobot avatar glassfishrobot commented on August 20, 2024

@glassfishrobot Commented
ahshishs said:
Made the suggested changes througout LoginContextDriver so that the root cause
exception is not lost when creating a new LoginException.

from glassfish.

glassfishrobot avatar glassfishrobot commented on August 20, 2024

@glassfishrobot Commented
Was assigned to ahshishs

from glassfish.

glassfishrobot avatar glassfishrobot commented on August 20, 2024

@glassfishrobot Commented
This issue was imported from java.net JIRA GLASSFISH-32

from glassfish.

glassfishrobot avatar glassfishrobot commented on August 20, 2024

@glassfishrobot Commented
Reported by danbrice

from glassfish.

glassfishrobot avatar glassfishrobot commented on August 20, 2024

@glassfishrobot Commented
Marked as fixed on Tuesday, March 14th 2006, 6:25:56 am

from glassfish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.