knguyen     2005/06/08 11:53:05 CEST

  Modified files:        (Branch: JAHIA-4-1-BRANCH)
    src/java/org/jahia/services/fields 
                                       ContentApplicationField.java 
  Log:
  - check for dummy request
  
  Revision      Changes    Path
  1.23.4.2.2.1  +3 -1      
jahia/src/java/org/jahia/services/fields/ContentApplicationField.java
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/src/java/org/jahia/services/fields/ContentApplicationField.java.diff?r1=1.23.4.2&r2=1.23.4.2.2.1&f=h
  
  
  
  Index: ContentApplicationField.java
  ===================================================================
  RCS file: 
/cvs/jahia/src/java/org/jahia/services/fields/Attic/ContentApplicationField.java,v
  retrieving revision 1.23.4.2
  retrieving revision 1.23.4.2.2.1
  diff -u -r1.23.4.2 -r1.23.4.2.2.1
  --- ContentApplicationField.java      14 Oct 2004 18:12:40 -0000      1.23.4.2
  +++ ContentApplicationField.java      8 Jun 2005 09:53:05 -0000       
1.23.4.2.2.1
  @@ -17,6 +17,7 @@
   import org.jahia.data.ConnectionTypes;
   import org.jahia.exceptions.JahiaException;
   import org.jahia.params.ParamBean;
  +import org.jahia.params.DummyServletRequestWrapper;
   import org.jahia.registries.ServicesRegistry;
   import org.jahia.services.version.ActivationTestResults;
   import org.jahia.services.version.ContentObjectEntryState;
  @@ -98,7 +99,8 @@
   
           String tmpValue = "";
   
  -        if (jParams != null) {
  +        if (jParams != null && jParams.getRealRequest() != null
  +                && !(jParams.getRealRequest() instanceof 
DummyServletRequestWrapper)) {
               tmpValue = ServicesRegistry.getInstance ().
                       getJahiaApplicationsDispatchingService ().
                       getAppOutput (this.getID (), appID, jParams);
  

Reply via email to