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

Invalid test URL for interceptedBeanForEEComponentIsNullInInterceptor

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty