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

              brian.chan Brian Chan
              igor.beslic Igor Beslic
              Kiyoshi Lee Kiyoshi Lee
              Javier de Arcos Velilla Javier de Arcos Velilla
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 16 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