Uploaded image for project: 'PUBLIC - Liferay Maven'
  1. PUBLIC - Liferay Maven
  2. MAVEN-110

service.xml namespace element can easily include illegal characters like '-' or a number

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: Liferay Artifacts
    • Labels:
      None

      Description

      The service's namespace element has the ${aritfactId} as the default value. Many times artifact ids may have '-' in them. HOwever, accordingly to ServiceBuilder.java line 673, only only allow .isChar() and underscore '_', everything else will through exception.

      To reproduce a problem:

      1. create a new project using liferay-servicebuilder-archetype and fill "test-sb-123" to the artifactId.
      2. Run build-service and notice the error in namespace element.

        Attachments

          Activity

            People

            Assignee:
            mika.koivisto Mika Koivisto
            Reporter:
            terry.jia Terry Jia (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              6 years, 41 weeks, 5 days ago

                Packages

                Version Package
                Master