You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2010/03/30 23:25:32 UTC
svn commit: r929298 -
/ofbiz/trunk/applications/content/src/org/ofbiz/content/cms/CmsEvents.java
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 {