shuber      2004/10/18 16:57:51 CEST

  Modified files:
    core/src/java/org/jahia/params ParamBean.java 
  Log:
  Added sanity check on guest user to test if it is coming from another site. If this 
is the case we don't use it.
  
  Revision  Changes    Path
  1.12      +10 -0     jahia/core/src/java/org/jahia/params/ParamBean.java
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/core/src/java/org/jahia/params/ParamBean.java.diff?r1=1.11&r2=1.12&f=h
  
  
  
  Index: ParamBean.java
  ===================================================================
  RCS file: /home/cvs/repository/jahia/core/src/java/org/jahia/params/ParamBean.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ParamBean.java    7 Oct 2004 18:18:32 -0000       1.11
  +++ ParamBean.java    18 Oct 2004 14:57:51 -0000      1.12
  @@ -3410,6 +3410,16 @@
           }
           */
   
  +        // sanity check for user guest, in case we're in the context of
  +        // concurrent requests on multiple sites
  +        if (theUser != null) {
  +            if 
(theUser.getUsername().equals(JahiaUserManagerService.GUEST_USERNAME) &&
  +                theUser.getSiteID() != this.getSiteID()) {
  +                // guest user coming from different site, let's ignore it.
  +                theUser = null;
  +            }
  +        }
  +
           if (theUser == null) {
               setUserGuest(this.getSiteID());
           }
  

Reply via email to