svn commit: r929298 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r929298 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java

lektran
Author: lektran
Date: Tue Mar 30 21:25:31 2010
New Revision: 929298

URL: http://svn.apache.org/viewvc?rev=929298&view=rev
Log:
Add a debug warning when a given contentId cannot be verified to the given webSiteId

Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java?rev=929298&r1=929297&r2=929298&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java Tue Mar 30 21:25:31 2010
@@ -356,8 +356,14 @@ public class CmsEvents {
                 }
             }
         }
-        if (hadContent) return HttpServletResponse.SC_GONE;
-        return HttpServletResponse.SC_NOT_FOUND;
+        int responseCode;
+        if (hadContent) {
+            responseCode = HttpServletResponse.SC_GONE;
+        } else {
+            responseCode = HttpServletResponse.SC_NOT_FOUND;
+        }
+        Debug.logWarning("Could not verify contentId [" + contentId + "] to webSiteId [" + webSiteId + "], returning code: " + responseCode, module);
+        return responseCode;
     }
 
     protected static int verifySubContent(Delegator delegator, String contentId, String contentIdFrom) throws GeneralException {