Error when deleting a product image from content
------------------------------------------------

                 Key: OFBIZ-4431
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4431
             Project: OFBiz
          Issue Type: Bug
          Components: content
    Affects Versions: SVN trunk
            Reporter: Sam Hamilton
            Priority: Minor


When you try and delete a product image e.g. 
https://localhost:8443/catalog/control/EditProductContent?productId=WG-1111 the 
following error is produced in the log:

2011-09-19 15:41:47,793 (http-0.0.0.0-8443-8) [                
Log.java:117:INFO ] [CommonPermissionServices.xml#genericBasePermissionCheck 
line 41] Checking for primary permission CATALOG_VIEW
2011-09-19 15:41:47,795 (http-0.0.0.0-8443-8) [     
ServiceEcaRule.java:137:INFO ] For Service ECA [catalogPermissionCheck] on 
[return] got false for condition: [hasPermission][equals][false][true][Boolean]
2011-09-19 15:41:47,834 (http-0.0.0.0-8443-8) [       
ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin 
delegatorName=default
2011-09-19 15:41:47,840 (http-0.0.0.0-8443-8) [     
ControlServlet.java:324:INFO ] [[[LookupProduct(Domain:https://localhost)] 
Request Done- total:0.067,since last([LookupProduct(Do...):0.067]]
2011-09-19 15:41:47,861 (http-0.0.0.0-8443-8) [     
ControlServlet.java:141:INFO ] [[[LookupContent(Domain:https://localhost)] 
Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
2011-09-19 15:41:47,867 (http-0.0.0.0-8443-8) [     
RequestHandler.java:750:INFO ] Rendering View [LookupContent], 
sessionId=863FB4E665376D4A9F650C1D4CF784B2.jvm1
2011-09-19 15:41:47,885 (http-0.0.0.0-8443-8) [       
ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin 
delegatorName=default
2011-09-19 15:41:47,891 (http-0.0.0.0-8443-8) [     
ControlServlet.java:324:INFO ] [[[LookupContent(Domain:https://localhost)] 
Request Done- total:0.029,since last([LookupContent(Do...):0.029]]
2011-09-19 15:41:47,956 (http-0.0.0.0-8443-8) [     
ControlServlet.java:141:INFO ] 
[[[removeContentFromProduct(Domain:https://localhost)] Request Begun, 
encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
2011-09-19 15:41:48,020 (http-0.0.0.0-8443-8) [       
ModelService.java:565:ERROR] [ModelService.validate] : {removeProductContent} : 
(IN) Required test error: org.ofbiz.service.ServiceValidationException: The 
following required parameter is missing: [IN] 
[removeProductContent.contentId]The following required parameter is missing: 
[IN] [removeProductContent.fromDate]The following required parameter is 
missing: [IN] [removeProductContent.productContentTypeId]The following required 
parameter is missing: [IN] [removeProductContent.productId]
2011-09-19 15:41:48,021 (http-0.0.0.0-8443-8) [  
ServiceDispatcher.java:381:ERROR] 
---- exception report ----------------------------------------------------------
Incoming context (in runSync : removeProductContent) does not match expected 
requirements
Exception: org.ofbiz.service.ServiceValidationException
Message: The following required parameter is missing: [IN] 
[removeProductContent.contentId]The following required parameter is missing: 
[IN] [removeProductContent.fromDate]The following required parameter is 
missing: [IN] [removeProductContent.productContentTypeId]The following required 
parameter is missing: [IN] [removeProductContent.productId]
---- stack trace ---------------------------------------------------------------
org.ofbiz.service.ServiceValidationException: The following required parameter 
is missing: [IN] [removeProductContent.contentId]The following required 
parameter is missing: [IN] [removeProductContent.fromDate]The following 
required parameter is missing: [IN] 
[removeProductContent.productContentTypeId]The following required parameter is 
missing: [IN] [removeProductContent.productId]
org.ofbiz.service.ModelService.validate(ModelService.java:626)
org.ofbiz.service.ModelService.validate(ModelService.java:562)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:379)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:336)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:680)
--------------------------------------------------------------------------------

2011-09-19 15:41:48,021 (http-0.0.0.0-8443-8) [  
ServiceDispatcher.java:515:INFO ] [[Sync service failed...- total:0.0,since 
last(Begin):0.0]] - 'catalog / removeProductContent'
2011-09-19 15:41:48,021 (http-0.0.0.0-8443-8) [    
TransactionUtil.java:351:INFO ] [TransactionUtil.rollback] transaction rolled 
back
2011-09-19 15:41:48,021 (http-0.0.0.0-8443-8) [    
TransactionUtil.java:276:WARN ] [TransactionUtil.commit] Not committing 
transaction, status is No Transaction (6)
2011-09-19 15:41:48,021 (http-0.0.0.0-8443-8) [     
RequestHandler.java:648:INFO ] Ran Event [service:#removeProductContent] from 
[request], result is [error]
2011-09-19 15:41:48,021 (http-0.0.0.0-8443-8) [     
RequestHandler.java:434:ERROR] Request removeContentFromProduct caused an error 
with the following message: {The following required parameter is missing: [IN] 
[removeProductContent.contentId], The following required parameter is missing: 
[IN] [removeProductContent.fromDate], The following required parameter is 
missing: [IN] [removeProductContent.productContentTypeId], The following 
required parameter is missing: [IN] [removeProductContent.productId]}
2011-09-19 15:41:48,022 (http-0.0.0.0-8443-8) [     
RequestHandler.java:750:INFO ] Rendering View [EditProductContent], 
sessionId=863FB4E665376D4A9F650C1D4CF784B2.jvm1
2011-09-19 15:41:48,029 (http-0.0.0.0-8443-8) [   
PrimaryKeyFinder.java:153:INFO ] Returning null because found incomplete 
primary key in find: [GenericEntity:Product][productId,null()]
2011-09-19 15:41:48,031 (http-0.0.0.0-8443-8) [   
PrimaryKeyFinder.java:153:INFO ] Returning null because found incomplete 
primary key in find: [GenericEntity:Product][productId,null()]
2011-09-19 15:41:48,294 (http-0.0.0.0-8443-8) [   
PrimaryKeyFinder.java:153:INFO ] Returning null because found incomplete 
primary key in find: [GenericEntity:Product][productId,null()]
2011-09-19 15:41:48,391 (http-0.0.0.0-8443-8) [       
ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin 
delegatorName=default

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to