|
[ https://issues.apache.org/jira/browse/OFBIZ-5202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13700514#comment-13700514 ] Petr Pytelka commented on OFBIZ-5202: ------------------------------------- Hello, I've tried to investigate what is the problem and created a patch. 1. Steps to reproduce - run Ofbiz 12.04 - Upload logo to the party Image will not be uploaded and progress bar get stuck 2. What is cause of the problem Service "createContentRole" is called indirectly from the service createContentAlternativeUrl but this service does not have parameter partyId 3. Proposed solution 3.1. add optional parameter partyId to the service createContentAlternativeUrl <service name="createContentAlternativeUrl" engine="simple" location="component://content/script/org/ofbiz/content/content/ContentServices.xml" invoke="createContentAlternativeUrl" auth="true" transaction-timeout="7200"> <description>Create Content Alternative URL</description> <attribute name="contentId" mode="IN" type="String" optional="true"></attribute> + <attribute name="partyId" mode="IN" type="String" optional="true"></attribute> <attribute name="contentCreated" mode="OUT" type="String" optional="true"></attribute> </service> 3.2. add parameter to the map of parameters for the service createConent which is called from the createContentAlternativeUrl (file ContentServices.xml) ... <set field="contentCtx.localeString" from-field="localeString"/> + <set field="contentCtx.partyId" value="${parameters.partyId}"/> ... Could you take a look on this issue and proposed solution? Thanks, Petr > upload content at party profile is not working > ---------------------------------------------- > > Key: OFBIZ-5202 > URL: https://issues.apache.org/jira/browse/OFBIZ-5202 > Project: OFBiz > Issue Type: Bug > Components: content, party > Affects Versions: Release Branch 12.04 > Environment: ubuntu desktop 12.4 > Reporter: Moustafa Mahmoud > Attachments: UploadFail-12.04.patch > > > i tried to upload content at party profile screen with purpose "Logo Image URL" and Is public "YES" but i got the following exception > ---- exception report ---------------------------------------------------------- > ERROR: Could not complete the Create Content Alternative URLs. [file:/media/68C2E6E0C2E6B18C/Work/Developers_foundation/Workspace/OFBiz/ofbiz/applications/content/script/org/ofbiz/content/content/ContentServices.xml#createContentAlternativeUrl] process [problem invoking the [createContent] service with the map named [contentCtx] containing [{dataResourceId=10001, statusId=CTNT_IN_PROGRESS, localeString=en_US, userLogin=[GenericEntity:UserLogin][createdStamp,2013-05-23 12:19:58.0(java.sql.Timestamp)][createdTxStamp,2013-05-23 12:19:58.0(java.sql.Timestamp)][currentPassword,null()][disabledDateTime,null()][enabled,N(java.lang.String)][externalAuthId,null()][hasLoggedOut,null()][isSystem,Y(java.lang.String)][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2013-05-23 12:19:58.0(java.sql.Timestamp)][lastUpdatedTxStamp,2013-05-23 12:19:58.0(java.sql.Timestamp)][partyId,null()][passwordHint,null()][requirePasswordChange,null()][successiveFailedLogins,null()][userLdapDn,null()][userLoginId,system(java.lang.String)], locale=en_US}]: The following required parameter is missing: [IN] [createContentRole.partyId]] > Exception: org.ofbiz.service.ServiceValidationException > Message: The following required parameter is missing: [IN] [createContentRole.partyId] > ---- stack trace --------------------------------------------------------------- > org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [IN] [createContentRole.partyId] > org.ofbiz.service.ModelService.validate(ModelService.java:626) > org.ofbiz.service.ModelService.validate(ModelService.java:562) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:371) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:225) > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) > org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138) > org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159) > org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188) > ---------- > can anyone help me > Cheers > Mostafa -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
| Free forum by Nabble | Edit this page |
