[jira] [Commented] (OFBIZ-10833) CMS add content not working

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

[jira] [Commented] (OFBIZ-10833) CMS add content not working

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-10833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16785653#comment-16785653 ]

Ingo Wolfmayr commented on OFBIZ-10833:
---------------------------------------

Dear [~swapnilmmane],

I applied the patch manually and verified the code has been added. I additionally added a print log before the new code line in order to see if it is reached when creating a content item. Here is the result:

*Result manually*: "System.out.println("10833: "+ fieldName + " - "+ multiPartMap.get(fieldName));" <-- right before "request.setAttribute(fieldName, multiPartMap.get(fieldName));"

10833: dataResourceId - master
10833: dataResourceTypeId - LOCAL_FILE
10833: objectInfo -

*CMS*

10833: contentAssocTypeId - SUBSITE
10833: ownerContentId - OFBIZ_HOME
10833: contentIdFrom - OFBIZ_HOME
10833: dataResourceTypeId - IMAGE_OBJECT
10833: webSiteId - OfbizSite
10833: dataResourceName - CMS Image
10833: contentName - CMS Image
10833: description -
10833: mapKey -
10833: contentPurposeTypeId - SECTION
10833: sequenceNum -
10833: dataTemplateTypeId - NONE
10833: decoratorContentId -
10833: templateDataResourceId -
10833: statusId - CTNT_IN_PROGRESS
10833: isPublic - Y
10833: isUploadObject - Y

I assume some of the information is getting lost (CMS way) when the ECA services for createContent are triggered: Find the log entries starting after the content has been created[^LogCreateContent.txt]. For example
" From Field (contentAssocTypeId) is not found in context for createContent, defaulting to null."

The contentAssocTypeId is there when the content is created. The ECA that creates the contentAssoc reports it is not.

Maybe you have an idea?

> CMS add content not working
> ---------------------------
>
>                 Key: OFBIZ-10833
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10833
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content
>    Affects Versions: Trunk, 17.12.01
>            Reporter: Ingo Wolfmayr
>            Assignee: Swapnil M Mane
>            Priority: Major
>         Attachments: LogCreateContent.txt, OFBIZ-10833.patch
>
>
> On demo: content --> "CmsSite" --> CMS:
> Right click on one of the items to add "New Long Text" or "Image".
> After saving the new content:
> Edit WebSite CMS For: []
> "There is no Content PUBLISH_POINT for this WebSite!"
> Having the same problem on a  17.12 local installation.
> h1.  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)