Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-51749

/ddmtemplate/add-template JSON requires service context attributes

    Details

      Description

      Description
      /ddmtemplate/add-template JSON call returns an Illegal Argument Exception

      Steps to reproduce/Testing done

      1. Start Liferay and login as Admin
      2. Go to http://localhost:8080/api/jsonws?signature=%2Fddmtemplate%2Fadd-template-10-groupId-classNameId-classPK-nameMap-descriptionMap-type-mode-language-script-serviceContext
      3. Fill out the following fields
        • groupId
          • Obtained from going to Admin > Site Admin > Configuration and grabbing the site Id)
        • classNameId
          • Obtained from the database and finding the classNameId in the ClassName_ table where value = com.liferay.portlet.asset.model.AssetEntry
        • classPK = 0
        • nameMap = {"en_US":"toto"}
        • descriptionMap = {"en_US":"toto"}
        • Type = display
        • Mode =
        • Language = vm
        • Script = test
      4. Hit Invoke

      Notice that a Illegal Argument Exception is thrown

      Results of Testing
      Expected behavior: The template is added
      Actual behavior: An Illegal Argument Exception is thrown

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 29 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.0 M4