Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1994

String.replaceAll(regex, replacement). The dot in ".html" I guess is meant to be literal

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-RC1
    • 1.4-RC2
    • wicket
    • None

    Description

      In PackageResourceGuard

      protected boolean acceptAbsolutePath(String path)
      {
      ...
      if ("html".equals(ext) &&
      getClass().getClassLoader().getResource(path.replaceAll(".html", ".class")) != null)

      { return false; }

      return acceptExtension(ext);
      }

      String.replaceAll(regex, replacement). I guess it must be replaceAll("
      .html", ".class") instead.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jdonnerstag Juegen Donnerstag
            jdonnerstag Juegen Donnerstag
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment