Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6714 Please add better getResource-Support for MockServletContext
  3. WICKET-6744

WebApplication.get().getServletContext().getRealPath("/") returning nonsense path

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.7.0
    • None
    • None
    • None
    • OS WINDOWS 10 (64bit)
      java version "1.8.0_212"
      Java(TM) SE Runtime Environment (build 1.8.0_212-b10)
      Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode)

    Description

      After changes in WICKET-6714, method WebApplication.get().getServletContext().getRealPath("/") starts returning nonsense path somewhere inside maven local repository
      file:/C:/Users/karel/.m2/repository/org/webjars/jquery-atmosphere/2.2.13/jquery-atmosphere-2.2.13.jar!/META-INF/resources/

      This occurs when you run tests using WicketTester.

      WebApplication.get().getServletContext() is MockServletContext, 

       

      Tests are OK only on our Jenkins, which runs on the Linux operating system.

       

      Attachments

        Activity

          People

            svenmeier Sven Meier
            karel.haruda Karel Haruda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: