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

buildService never ends in case of having a multi-key entity with a long package-name

    Details

    • Fix Priority:
      4

      Description

      Root cause
      This issue is cause by LPS-86806 , see commit d7b06d011b1ff0527a9b972dc8c69283095b8ed0

      Steps to reproduce

      1. Create a Liferay Workspace, for example with blade:
        • blade init
      2. Go to Liferay Workspace root folder and add following line to gradle.properties file:
        com.liferay.portal.tools.service.builder.version=xxx
      3. Create a service builder module
        • blade create test -t service-builder
      4. Configure the service builder entity with following modules/test/test-service/service.xml
        <service-builder  package-path="com.aaaabbbbbbbbbbbbbbbbbcccdddddddddddd">
            <namespace>FOO</namespace>
            <entity local-service="true" name="Abcdefghijklmnopq" remote-service="false" uuid="false" cache-enabled="false">
                <column name="aaa" type="String" primary="true"></column>
                <column name="bbb" type="String" primary="true"></column>
            </entity>
        </service-builder>
      5. Execute gradlew buildService
        • Expected behavior: service builder files are correctly generated
        • Wrong behavior: buildService never ends

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jorge.diaz Jorge Diaz
                Reporter:
                jorge.diaz Jorge Diaz
                Participants of an Issue:
                Recent user:
                Tina Tian
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  3 weeks, 4 days ago

                  Packages

                  Version Package