glassfish
  1. glassfish
  2. GLASSFISH-17451

[REGRESSION] com.sun.appserv.security.ProgrammaticLogin class removed and it caused SQE test failures against GF4.0

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0
    • Component/s: security
    • Labels:
      None
    • Environment:

      solaris

      Description

      build: GF4.0 build
      OS: solaris

      17 SQE security BAT test cases failed against GF4.0 due to the following compiling error:

      [echo] sqe-common.xml: Compiling test source files
      [javac] Compiling 6 source files to /export/hudson/workspace/sherry-rhl-40-das-bat/appserver-sqe/build/pe/i386_apg-sqe2_Linux/sec/classes
      [javac] /export/hudson/workspace/sherry-rhl-40-das-bat/appserver-sqe/pe/security/plogin/ejbclient/ejb/EJBClientTestBean.java:14: cannot find symbol
      [javac] symbol : class ProgrammaticLogin
      [javac] location: package com.sun.appserv.security
      [javac] import com.sun.appserv.security.ProgrammaticLogin;

        Activity

        Hide
        sonialiu added a comment -

        The com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm class seems removed too. I got the following failure when creating a realm using this class:

        create-auth-realm:
        [echo] Creating auth realm realmperapp ...
        [exec] Deprecated syntax, instead use:
        [exec] asadmin --user admin --passwordfile /export/hudson/workspace/sonia-gf4-security-linux/appserver-sqe/build-config/adminpassword.txt --echo --terse=false --host localhost --port 4848 create-auth-realm [options] ...
        [exec] asadmin --host localhost --port 4848 --user admin --passwordfile /export/hudson/workspace/sonia-gf4-security-linux/appserver-sqe/build-config/adminpassword.txt --interactive=false --echo=true --terse=false create-auth-realm --classname com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm --property jaas-context=jdbcRealm:datasource-jndi=jdbc/s1qeDB:user-table=usertable:user-name-column=userid:password-column=password:group-table=grouptable:group-name-column=groupid:digest-algorithm=MD5 --target server realmperapp
        [exec] remote failure: Creation of Authrealm realmperapp failed. com.sun.enterprise.security.auth.realm.BadRealmException: java.lang.ClassNotFoundException: com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm not found by org.glassfish.security [99]
        [exec] com.sun.enterprise.security.auth.realm.BadRealmException: java.lang.ClassNotFoundException: com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm not found by org.glassfish.security [99]
        [exec] Command create-auth-realm failed.
        [exec] Result: 1

        Show
        sonialiu added a comment - The com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm class seems removed too. I got the following failure when creating a realm using this class: create-auth-realm: [echo] Creating auth realm realmperapp ... [exec] Deprecated syntax, instead use: [exec] asadmin --user admin --passwordfile /export/hudson/workspace/sonia-gf4-security-linux/appserver-sqe/build-config/adminpassword.txt --echo --terse=false --host localhost --port 4848 create-auth-realm [options] ... [exec] asadmin --host localhost --port 4848 --user admin --passwordfile /export/hudson/workspace/sonia-gf4-security-linux/appserver-sqe/build-config/adminpassword.txt --interactive=false --echo=true --terse=false create-auth-realm --classname com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm --property jaas-context=jdbcRealm:datasource-jndi=jdbc/s1qeDB:user-table=usertable:user-name-column=userid:password-column=password:group-table=grouptable:group-name-column=groupid:digest-algorithm=MD5 --target server realmperapp [exec] remote failure: Creation of Authrealm realmperapp failed. com.sun.enterprise.security.auth.realm.BadRealmException: java.lang.ClassNotFoundException: com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm not found by org.glassfish.security [99] [exec] com.sun.enterprise.security.auth.realm.BadRealmException: java.lang.ClassNotFoundException: com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm not found by org.glassfish.security [99] [exec] Command create-auth-realm failed. [exec] Result: 1
        Hide
        sonialiu added a comment -

        Total about 45 test cases failed in the Security module due to these two classes removal.

        Show
        sonialiu added a comment - Total about 45 test cases failed in the Security module due to these two classes removal.
        Hide
        JeffTancill added a comment -

        The classes were repackaged, please change tests to import ProgrammaticLogin from com.sun.enterprise.security.ee.auth.login and import JDBCRealm from
        com.sun.enterprise.security.ee.auth.realm.jdbc.

        Show
        JeffTancill added a comment - The classes were repackaged, please change tests to import ProgrammaticLogin from com.sun.enterprise.security.ee.auth.login and import JDBCRealm from com.sun.enterprise.security.ee.auth.realm.jdbc.

          People

          • Assignee:
            JeffTancill
            Reporter:
            sonialiu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: