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

FileUtil.getShortFileName() does not work for some inputs

    Details

      Description

      FileUtil.getShortFileName("/aaa\bbb\test.jsp")

      will return: aaa\bbb\test.jsp
      correct value should be: test.jsp

      FileUtil.getPath("/aaa\bbb\test.jsp")

      will return: /
      correct value should be: /aaa\bbb\

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              samuel.kong Samuel Kong
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 3 weeks, 2 days ago

                  Packages

                  Version Package
                  6.0.X EE
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  --Sprint 11/12
                  6.2.0 CE M2