Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-1420

Error occurs when new liferay custom jsp hook using invalid custom jsp folder

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.1.0
    • Component/s: Wizards, Wizards > Hook
    • Labels:
      None
    • Environment:
      Liferay IDE 2.0.1.201402151709-ga2 installed on eclipse-kepler

      Description

      • new liferay hook project
      • new liferay hook > check 'Custom JSPs' > Next
      • 'Add from Liferay...' and choose a jsp file to override
      • enter invalid jsp folder like '/custom_jsps*'
      • Finish

      will notice the error dialog:

      org.eclipse.core.internal.resources.ResourceException: * is an invalid character in resource name 'custom_jsps*'.
      at org.eclipse.core.internal.resources.Resource.checkValidPath(Resource.java:447)
      at org.eclipse.core.internal.resources.Folder.create(Folder.java:89)
      at com.liferay.ide.core.util.CoreUtil.prepareFolder(CoreUtil.java:700)
      at com.liferay.ide.hook.core.operation.AddHookOperation.createCustomJSPs(AddHookOperation.java:196)
      at com.liferay.ide.hook.core.operation.AddHookOperation.execute(AddHookOperation.java:89)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              terry.jia Terry Jia (Inactive)
              Reporter:
              yanan.yuan Yanan Yuan(Ashley Yuan)
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 35 weeks, 1 day ago

                  Packages

                  Version Package
                  2.1.0