You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Zhen Zhang (JIRA)" <ji...@apache.org> on 2010/10/26 04:26:22 UTC

[jira] Created: (GERONIMO-5662) fail to replace default Security Realm

fail to replace default Security Realm
--------------------------------------

                 Key: GERONIMO-5662
                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: console
    Affects Versions: 3.0
         Environment: OS:Windows XP SP3
Java Version: 1.6.0_20
Server:Geronimo 3.0-SNAPSHOT 
            Reporter: Zhen Zhang
            Priority: Minor
             Fix For: 3.0


setps to recur:
1. start the Geronimo server, and then open the admin console. 

2.In security realms portlet, click on "Add new security realm" link.

3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
  
4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
  
5.Click on "Skip Test and Deploy" button.

6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.

7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test

8.Access "Protect" link to verify that the realm is functional.

9.Login should succeed for uid=system, pwd=manager

10.In Security Realms portlet,click on "edit" link next to the security realm to be edited.

11.Modify the properties and click on "Save" button.

12.The new properties should be effective the next time the realm is used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Resolved: (GERONIMO-5662) fail to replace default Security Realm

Posted by chi runhua <ch...@gmail.com>.
The subject of this JIRA is kinda confusing.  IIUC, it's about enabling the
Properties file realm for G3.0  rather than replacing the default
geronimo-default realm.

Could someone please update the subject?

Jeff Chi



On Wed, Nov 3, 2010 at 5:08 PM, Shawn Jiang (JIRA) <ji...@apache.org> wrote:

>
>     [
> https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Shawn Jiang resolved GERONIMO-5662.
> -----------------------------------
>
>    Resolution: Fixed
>
> The new patch makes sense to me.  applied to trunk@ r1030363.
>
> Thanks Viola for the patch.
>
> > fail to replace default Security Realm
> > --------------------------------------
> >
> >                 Key: GERONIMO-5662
> >                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
> >             Project: Geronimo
> >          Issue Type: Bug
> >      Security Level: public(Regular issues)
> >          Components: console
> >    Affects Versions: 3.0
> >         Environment: OS:Windows XP SP3
> > Java Version: 1.6.0_20
> > Server:Geronimo 3.0-SNAPSHOT
> >            Reporter: Zhen Zhang
> >            Assignee: viola.lu
> >            Priority: Minor
> >             Fix For: 3.0
> >
> >         Attachments: G5662.patch, G5662_New.patch,
> VerifyReplaceDefaultSecurityRealm-SEC001.zip
> >
> >
> > setps to recur:
> > 1. start the Geronimo server, and then open the admin console.
> > 2.In security realms portlet, click on "Add new security realm" link.
> > 3.Select realm name and use "test-prop-file-realm" for realm-name, and
> then select Properties File Realm and click on "Next" button.
> >
> > 4.Enter Users File URI (var/security/users.properties) and Groups File
> URI ( var/security/groups.properties) and click on "Next" button.
> >
> > 5.Click on "Skip Test and Deploy" button.
> > 6. Check the  realm named  "test-prop-file-realm"  should be listed in
> the security realms portlet.
> > 7.Deploy geronimo-ldap-demo-1.1.war using plan file
> prop-file-realm-tester.xml and access the application at
> http://localhost:8080/prop-file-realm-test
> > 8.Access "Protect" link to verify that the realm is functional.
> > 9.Login should succeed for uid=system, pwd=manager
> > 10.In Security Realms portlet,click on "edit" link next to the security
> realm to be edited.
> > 11.Modify the properties and click on "Save" button.
> > 12.The new properties should take  effect at the next time when the realm
> is used.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

[jira] Issue Comment Edited: (GERONIMO-5662) j_security_check 404 not found against security realm authentication

Posted by "Zhen Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928151#action_12928151 ] 

Zhen Zhang edited comment on GERONIMO-5662 at 11/4/10 4:01 AM:
---------------------------------------------------------------

thanks for Ivan's exploring. I learn much from your comment.


      was (Author: jayzhangzhen):
    thanks for Ivan's exploring. I learn much from your common.
  
> j_security_check 404 not found against security realm authentication
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Assignee: viola.lu
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: after-ff.txt, before-ff.txt, G5662.patch, G5662_New.patch, ie.txt, VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.Input  username:system, password: manager
> 9.Login page just refreshed, not redirect to /protect/hello.html  success page. And click "login" again, got an 404 not found error. This problem exists on Firefox and chrome, fine on IE

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-5662) j_security_check 404 not found against security realm authentication

Posted by "Zhen Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhen Zhang updated GERONIMO-5662:
---------------------------------

    Comment: was deleted

(was: when execute step 7 ,fail to deploy app at new server build@Nov.08
you will find this info in server log:
2010-11-08 17:16:12,531 ERROR [DeploymentPortlet] The application was not deployed.
Unable to resolve reference "ConfigurationFactory"
    in gbean default/prop-file-realm-tester/1-default/car?J2EEApplication=null,j2eeType=WebModule,name=default/prop-file-realm-tester/1-default/car
    to a gbean matching the pattern [?name=test-prop-file-realm#org.apache.geronimo.security.jaas.ConfigurationFactory]
    due to: No matches for referencePatterns: [?name=test-prop-file-realm#org.apache.geronimo.security.jaas.ConfigurationFactory]
org.apache.geronimo.common.DeploymentException: Unable to resolve reference "ConfigurationFactory"
    in gbean default/prop-file-realm-tester/1-default/car?J2EEApplication=null,j2eeType=WebModule,name=default/prop-file-realm-tester/1-default/car
    to a gbean matching the pattern [?name=test-prop-file-realm#org.apache.geronimo.security.jaas.ConfigurationFactory]
    due to: No matches for referencePatterns: [?name=test-prop-file-realm#org.apache.geronimo.security.jaas.ConfigurationFactory]
	at org.apache.geronimo.deployment.DeploymentContext.getConfigurationData(DeploymentContext.java:534)
	at org.apache.geronimo.deployment.Deployer.install(Deployer.java:342)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:265)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:138)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:872)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
	at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
	at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
	at java.lang.Thread.run(Thread.java:619))

> j_security_check 404 not found against security realm authentication
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Assignee: viola.lu
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: after-ff.txt, before-ff.txt, G5662.patch, G5662_New.patch, ie.txt, VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.Input  username:system, password: manager
> 9.Login page just refreshed, not redirect to /protect/hello.html  success page. And click "login" again, got an 404 not found error. This problem exists on Firefox and chrome, fine on IE

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-5662) fail to replace default Security Realm

Posted by "Zhen Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhen Zhang updated GERONIMO-5662:
---------------------------------

    Description: 
setps to recur:
1. start the Geronimo server, and then open the admin console. 

2.In security realms portlet, click on "Add new security realm" link.

3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
  
4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
  
5.Click on "Skip Test and Deploy" button.

6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.

7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test

8.Access "Protect" link to verify that the realm is functional.

9.Login should succeed for uid=system, pwd=manager

10.In Security Realms portlet,click on "edit" link next to the security realm to be edited.

11.Modify the properties and click on "Save" button.

12.The new properties should take  effect at the next time when the realm is used.

  was:
setps to recur:
1. start the Geronimo server, and then open the admin console. 

2.In security realms portlet, click on "Add new security realm" link.

3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
  
4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
  
5.Click on "Skip Test and Deploy" button.

6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.

7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test

8.Access "Protect" link to verify that the realm is functional.

9.Login should succeed for uid=system, pwd=manager

10.In Security Realms portlet,click on "edit" link next to the security realm to be edited.

11.Modify the properties and click on "Save" button.

12.The new properties should be effective the next time the realm is used.


> fail to replace default Security Realm
> --------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Assignee: viola.lu
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.
> 9.Login should succeed for uid=system, pwd=manager
> 10.In Security Realms portlet,click on "edit" link next to the security realm to be edited.
> 11.Modify the properties and click on "Save" button.
> 12.The new properties should take  effect at the next time when the realm is used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-5662) j_security_check 404 not found against security realm authentication

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

viola.lu updated GERONIMO-5662:
-------------------------------

    Description: 
setps to recur:
1. start the Geronimo server, and then open the admin console. 

2.In security realms portlet, click on "Add new security realm" link.

3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
  
4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
  
5.Click on "Skip Test and Deploy" button.

6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.

7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test

8.Access "Protect" link to verify that the realm is functional.Input  username:system, password: manager

9.Login page just refreshed, not redirect to /protect/hello.html  success page. And click "login" again, got an 404 not found error. This problem exists on Firefox and chrome, fine on IE



  was:
setps to recur:
1. start the Geronimo server, and then open the admin console. 

2.In security realms portlet, click on "Add new security realm" link.

3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
  
4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
  
5.Click on "Skip Test and Deploy" button.

6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.

7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test

8.Access "Protect" link to verify that the realm is functional.

9.Login should succeed for uid=system, pwd=manager

10.In Security Realms portlet,click on "edit" link next to the security realm to be edited.

11.Modify the properties and click on "Save" button.

12.The new properties should take  effect at the next time when the realm is used.

        Summary: j_security_check 404 not found against security realm authentication  (was: fail to replace default Security Realm)

> j_security_check 404 not found against security realm authentication
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Assignee: viola.lu
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: G5662.patch, G5662_New.patch, VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.Input  username:system, password: manager
> 9.Login page just refreshed, not redirect to /protect/hello.html  success page. And click "login" again, got an 404 not found error. This problem exists on Firefox and chrome, fine on IE

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-5662) j_security_check 404 not found against security realm authentication

Posted by "Ivan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan updated GERONIMO-5662:
---------------------------

    Attachment: ie.txt
                after-ff.txt
                before-ff.txt

I investigated this issue a bit, it is related to cache, but the reason why it works on IE, not on Firefox is due to the header : if-modified-since
Comparing the request headers, Firefox does post the request as expected, but a header "if-modified-since" is added, and the server returns Not Modified directly. And with IE, it did not send that header by default ( need to configure it on the IE -> options ). The reason why adding the no-store works is that it prevents Firefox adding the "if-modified-since" header. 
In my opinion, the root cause is that we failed to recover the stored request in the formauthenticator. 
I committed some changes to trunk at rev.1030801


> j_security_check 404 not found against security realm authentication
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Assignee: viola.lu
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: after-ff.txt, before-ff.txt, G5662.patch, G5662_New.patch, ie.txt, VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.Input  username:system, password: manager
> 9.Login page just refreshed, not redirect to /protect/hello.html  success page. And click "login" again, got an 404 not found error. This problem exists on Firefox and chrome, fine on IE

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GERONIMO-5662) j_security_check 404 not found against security realm authentication

Posted by "Zhen Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhen Zhang closed GERONIMO-5662.
--------------------------------


> j_security_check 404 not found against security realm authentication
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Assignee: viola.lu
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: after-ff.txt, before-ff.txt, G5662.patch, G5662_New.patch, ie.txt, VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.Input  username:system, password: manager
> 9.Login page just refreshed, not redirect to /protect/hello.html  success page. And click "login" again, got an 404 not found error. This problem exists on Firefox and chrome, fine on IE

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-5662) j_security_check 404 not found against security realm authentication

Posted by "Zhen Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12929520#action_12929520 ] 

Zhen Zhang commented on GERONIMO-5662:
--------------------------------------

when execute step 7 ,fail to deploy app at new server build@Nov.08
you will find this info in server log:
2010-11-08 17:16:12,531 ERROR [DeploymentPortlet] The application was not deployed.
Unable to resolve reference "ConfigurationFactory"
    in gbean default/prop-file-realm-tester/1-default/car?J2EEApplication=null,j2eeType=WebModule,name=default/prop-file-realm-tester/1-default/car
    to a gbean matching the pattern [?name=test-prop-file-realm#org.apache.geronimo.security.jaas.ConfigurationFactory]
    due to: No matches for referencePatterns: [?name=test-prop-file-realm#org.apache.geronimo.security.jaas.ConfigurationFactory]
org.apache.geronimo.common.DeploymentException: Unable to resolve reference "ConfigurationFactory"
    in gbean default/prop-file-realm-tester/1-default/car?J2EEApplication=null,j2eeType=WebModule,name=default/prop-file-realm-tester/1-default/car
    to a gbean matching the pattern [?name=test-prop-file-realm#org.apache.geronimo.security.jaas.ConfigurationFactory]
    due to: No matches for referencePatterns: [?name=test-prop-file-realm#org.apache.geronimo.security.jaas.ConfigurationFactory]
	at org.apache.geronimo.deployment.DeploymentContext.getConfigurationData(DeploymentContext.java:534)
	at org.apache.geronimo.deployment.Deployer.install(Deployer.java:342)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:265)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:138)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:872)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
	at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
	at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
	at java.lang.Thread.run(Thread.java:619)

> j_security_check 404 not found against security realm authentication
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Assignee: viola.lu
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: after-ff.txt, before-ff.txt, G5662.patch, G5662_New.patch, ie.txt, VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.Input  username:system, password: manager
> 9.Login page just refreshed, not redirect to /protect/hello.html  success page. And click "login" again, got an 404 not found error. This problem exists on Firefox and chrome, fine on IE

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-5662) fail to replace default Security Realm

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

viola.lu updated GERONIMO-5662:
-------------------------------

    Attachment: G5662.patch

pls review it,thanks

> fail to replace default Security Realm
> --------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Assignee: viola.lu
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: G5662.patch, VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.
> 9.Login should succeed for uid=system, pwd=manager
> 10.In Security Realms portlet,click on "edit" link next to the security realm to be edited.
> 11.Modify the properties and click on "Save" button.
> 12.The new properties should take  effect at the next time when the realm is used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-5662) fail to replace default Security Realm

Posted by "Zhen Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhen Zhang updated GERONIMO-5662:
---------------------------------

    Attachment: VerifyReplaceDefaultSecurityRealm-SEC001.zip

Both geronimo-ldap-demo-1.1.war and prop-file-realm-tester.xml  are in this attachment. 

> fail to replace default Security Realm
> --------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.
> 9.Login should succeed for uid=system, pwd=manager
> 10.In Security Realms portlet,click on "edit" link next to the security realm to be edited.
> 11.Modify the properties and click on "Save" button.
> 12.The new properties should be effective the next time the realm is used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-5662) j_security_check 404 not found against security realm authentication

Posted by "Zhen Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928151#action_12928151 ] 

Zhen Zhang commented on GERONIMO-5662:
--------------------------------------

thanks for Ivan's exploring. I learn much from your common.

> j_security_check 404 not found against security realm authentication
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Assignee: viola.lu
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: after-ff.txt, before-ff.txt, G5662.patch, G5662_New.patch, ie.txt, VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.Input  username:system, password: manager
> 9.Login page just refreshed, not redirect to /protect/hello.html  success page. And click "login" again, got an 404 not found error. This problem exists on Firefox and chrome, fine on IE

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (GERONIMO-5662) fail to replace default Security Realm

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

viola.lu reassigned GERONIMO-5662:
----------------------------------

    Assignee: viola.lu

> fail to replace default Security Realm
> --------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Assignee: viola.lu
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.
> 9.Login should succeed for uid=system, pwd=manager
> 10.In Security Realms portlet,click on "edit" link next to the security realm to be edited.
> 11.Modify the properties and click on "Save" button.
> 12.The new properties should be effective the next time the realm is used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (GERONIMO-5662) fail to replace default Security Realm

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shawn Jiang resolved GERONIMO-5662.
-----------------------------------

    Resolution: Fixed

The new patch makes sense to me.  applied to trunk@ r1030363.  

Thanks Viola for the patch.

> fail to replace default Security Realm
> --------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Assignee: viola.lu
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: G5662.patch, G5662_New.patch, VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.
> 9.Login should succeed for uid=system, pwd=manager
> 10.In Security Realms portlet,click on "edit" link next to the security realm to be edited.
> 11.Modify the properties and click on "Save" button.
> 12.The new properties should take  effect at the next time when the realm is used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-5662) j_security_check 404 not found against security realm authentication

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928152#action_12928152 ] 

viola.lu commented on GERONIMO-5662:
------------------------------------

Pls verify it and close it. thanks in advance!

> j_security_check 404 not found against security realm authentication
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Assignee: viola.lu
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: after-ff.txt, before-ff.txt, G5662.patch, G5662_New.patch, ie.txt, VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.Input  username:system, password: manager
> 9.Login page just refreshed, not redirect to /protect/hello.html  success page. And click "login" again, got an 404 not found error. This problem exists on Firefox and chrome, fine on IE

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-5662) fail to replace default Security Realm

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

viola.lu updated GERONIMO-5662:
-------------------------------

    Attachment: G5662_New.patch

Pls review it, thanks.

> fail to replace default Security Realm
> --------------------------------------
>
>                 Key: GERONIMO-5662
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5662
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Assignee: viola.lu
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: G5662.patch, G5662_New.patch, VerifyReplaceDefaultSecurityRealm-SEC001.zip
>
>
> setps to recur:
> 1. start the Geronimo server, and then open the admin console. 
> 2.In security realms portlet, click on "Add new security realm" link.
> 3.Select realm name and use "test-prop-file-realm" for realm-name, and then select Properties File Realm and click on "Next" button.
>   
> 4.Enter Users File URI (var/security/users.properties) and Groups File URI ( var/security/groups.properties) and click on "Next" button.
>   
> 5.Click on "Skip Test and Deploy" button.
> 6. Check the  realm named  "test-prop-file-realm"  should be listed in the security realms portlet.
> 7.Deploy geronimo-ldap-demo-1.1.war using plan file prop-file-realm-tester.xml and access the application at http://localhost:8080/prop-file-realm-test
> 8.Access "Protect" link to verify that the realm is functional.
> 9.Login should succeed for uid=system, pwd=manager
> 10.In Security Realms portlet,click on "edit" link next to the security realm to be edited.
> 11.Modify the properties and click on "Save" button.
> 12.The new properties should take  effect at the next time when the realm is used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.