Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10426

When creating blog or forums, it failed to save

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 18.12.01, 17.12.06
    • Component/s: ecommerce
    • Labels:
      None

      Description

      Create a blog or forum and click save button, it will popup with error message. The reason is because the mapKey passed from front end cannot be handled by the service. The solution is not to pass the mapKey to the service.

      Steps:  

      1) navigate to https://demo-trunk.ofbiz.apache.org/content/control/blogContent?blogContentId=BLOGROOTBIGAL

      2) create a new article  https://demo-trunk.ofbiz.apache.org/content/control/EditBlogArticle?blogContentId=BLOGROOTBIGAL

       

      ERROR: Could not complete the Post a new Content article Entry file:/Users/explorer/Documents/ofbiz/ofbiz-framework/applications/content/minilang/content/ContentServices.xml#createArticleContent process [problem invoking the [createTextContent] service with the map named [createText] containing [{userLogin=[GenericEntity:UserLogin][createdStamp,2018-06-01 21:38:24.088(java.sql.Timestamp)][createdTxStamp,2018-06-01 21:38:24.086(java.sql.Timestamp)][currentPassword,

      {SHA}

      47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledBy,null()][disabledDateTime,null()][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,Asia/Shanghai(java.lang.String)][lastUpdatedStamp,2018-06-02 03:00:52.632(java.sql.Timestamp)][lastUpdatedTxStamp,2018-06-02 03:00:52.632(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,null()][requirePasswordChange,null()][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)], textData=hello, dataTemplateTypeId=NONE, mapKey=MAIN, contentIdFrom=ASK, description=hello, partyId=admin, locale=en_US, dataResourceTypeId=ELECTRONIC_TEXT, contentName=hell world}]: Unknown parameter found: [createTextContent.contentIdFrom]Unknown parameter found: [createTextContent.mapKey]]

       

        Attachments

        1. blog-error.png
          230 kB
          Priya Sharma
        2. OFBIZ-10426-Working.png
          55 kB
          Aman Mishra
        3. OFBIZ-10426-R17-Article.png
          88 kB
          Aman Mishra
        4. OFBIZ-10426-R17-Blog.png
          96 kB
          Aman Mishra
        5. OFBIZ-10426-IssueRepl.png
          73 kB
          Aman Mishra
        6. OFBIZ-10426-ArticleCreationFix.png
          57 kB
          Aman Mishra
        7. OFBIZ-10426.patch
          0.8 kB
          Aman Mishra

          Activity

            People

            • Assignee:
              aman.mishra Aman Mishra
              Reporter:
              nk_smallbee Jason Hao
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: