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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4-RC1
    • Fix Version/s: 1.4-RC2
    • Component/s: wicket
    • Labels:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: