Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-617

Invalid test URL for interceptedBeanForEEComponentIsNullInInterceptor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.0.Final, 2.0.5.Final
    • 2.0.4.Final
    • Tests
    • None

      When running the test BuiltinMetadataEEBeanTest.interceptedBeanForEEComponentIsNullInInterceptor, I am seeing a HTTP 404 Not Found error which looks to be due to an extra slash being added to the URL:

      String servletResponse = webClient.getPage(servletContextPath + "/test").getWebResponse().getContentAsString();

      servletContextPath (which is injected via @ArquillianResource) already has a trailing slash so we shouldn't add another to the path.

      I looked for other tests that follows the same pattern and see that they do not include the slash (e.g InterceptorEnvironmentJNDITest.java, ActivateRequestContextinEETest.java).

      Also, if I understand correctly, it is up to the server if it wants to collapse '//' into a single '/' or if it wants to treat it as a different resource.

              manovotn Matěj Novotný
              hwibell_jira Hank Ibell (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: