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

Generated BaseBlogPostingResourceImpl class expects wrong siteId parameter type

    Details

      Description

      After LPS-114591 all occurrences of siteId in parameter map are converted to Long type.

      RestBuilder should be updated to generate properly method:

      @Override
              @SuppressWarnings("PMD.UnusedLocalVariable")
              public void create(
                              java.util.Collection<BlogPosting> blogPostings,
                              Map<String, Serializable> parameters)
                      throws Exception {
      
                      for (BlogPosting blogPosting : blogPostings) {
                              postSiteBlogPosting(
                                      Long.parseLong((String)parameters.get("siteId")), blogPosting);
                      }
              }
      
      

      sitId parameter has type Long not String.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              igor.beslic Igor Beslic
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
              Engineering Assignee:
              Javier de Arcos Velilla
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                23 weeks, 3 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP102
                  7.0.10.16 DXP SP17
                  7.0.X
                  7.1.10 DXP FP26
                  7.1.10.7 SP7
                  7.1.X
                  7.2.10 DXP FP15
                  7.2.X
                  7.3.10.3 DXP SP3
                  7.3.X
                  7.4.13 DXP GA1
                  Master