MMBase

cloudcontextsecurity: multiple usernode update crashes webapp

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.0
  • Fix Version/s: 1.8.0
  • Component/s: Cloud Context Security
  • Description:
    Hide
    original bugid: #6677
    cloudcontextsecurtiy has a feature that every time a user logs in, the lastlogon field of the mmbaseusers node is being updated. this is great except when you have a page in your website that gets a lot of hits and that opens a cloud as a certain user (not anonymous). in that case every request handling thread will que up to update that same mmbaseusers node, resulting in the death of your webapp.

    solution:
     - if you remove the lastlogon field from the mmbaseusers builder, the problem is gone, becouse the code checks for the existance of the field before the update takes place.
    If you remove the field after installing cloud context security, you have to drop the 'not null' constraint on the lastlogon field in the database manually.
    Two other options are:
    1. Use class authentication
    2 Use the config/admin.properties
    Show
    original bugid: #6677 cloudcontextsecurtiy has a feature that every time a user logs in, the lastlogon field of the mmbaseusers node is being updated. this is great except when you have a page in your website that gets a lot of hits and that opens a cloud as a certain user (not anonymous). in that case every request handling thread will que up to update that same mmbaseusers node, resulting in the death of your webapp. solution:  - if you remove the lastlogon field from the mmbaseusers builder, the problem is gone, becouse the code checks for the existance of the field before the update takes place. If you remove the field after installing cloud context security, you have to drop the 'not null' constraint on the lastlogon field in the database manually. Two other options are: 1. Use class authentication 2 Use the config/admin.properties

Activity

Hide
Ernst Bunders added a comment - 2005-02-28 15:20
cloudcontextsecurity: multiple usernode update crashes webapp
cloudcontextsecurtiy has a feature that every time a user logs in, the lastlogon field of the mmbaseusers node is being updated. this is great except when you have a page in your website that gets a lot of hits and that opens a cloud as a certain user (not anonymous). in that case every request handling thread will que up to update that same mmbaseusers node, resulting in the death of your webapp.

solution:
 - if you remove the lastlogon field from the mmbaseusers builder, the problem is gone, becouse the code checks for the existance of the field before the update takes place
Show
Ernst Bunders added a comment - 2005-02-28 15:20 cloudcontextsecurity: multiple usernode update crashes webapp cloudcontextsecurtiy has a feature that every time a user logs in, the lastlogon field of the mmbaseusers node is being updated. this is great except when you have a page in your website that gets a lot of hits and that opens a cloud as a certain user (not anonymous). in that case every request handling thread will que up to update that same mmbaseusers node, resulting in the death of your webapp. solution:  - if you remove the lastlogon field from the mmbaseusers builder, the problem is gone, becouse the code checks for the existance of the field before the update takes place
Hide
Ernst Bunders added a comment - 2005-03-04 15:06
cloudcontextsecurity: multiple usernode update crashes webapp
cloudcontextsecurtiy has a feature that every time a user logs in, the lastlogon field of the mmbaseusers node is being updated. this is great except when you have a page in your website that gets a lot of hits and that opens a cloud as a certain user (not anonymous). in that case every request handling thread will que up to update that same mmbaseusers node, resulting in the death of your webapp.

solution:
 - if you remove the lastlogon field from the mmbaseusers builder, the problem is gone, becouse the code checks for the existance of the field before the update takes place.
If you remove the field after installing cloud context security, you have to drop the 'not null' constraint on the lastlogon field in the database manually.
Show
Ernst Bunders added a comment - 2005-03-04 15:06 cloudcontextsecurity: multiple usernode update crashes webapp cloudcontextsecurtiy has a feature that every time a user logs in, the lastlogon field of the mmbaseusers node is being updated. this is great except when you have a page in your website that gets a lot of hits and that opens a cloud as a certain user (not anonymous). in that case every request handling thread will que up to update that same mmbaseusers node, resulting in the death of your webapp. solution:  - if you remove the lastlogon field from the mmbaseusers builder, the problem is gone, becouse the code checks for the existance of the field before the update takes place. If you remove the field after installing cloud context security, you have to drop the 'not null' constraint on the lastlogon field in the database manually.

People

Dates

  • Created:
    2006-03-24 12:34
    Updated:
    2010-12-30 13:04
    Resolved:
    2006-11-24 13:51