Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17030

Wrong basic authentication is not taken into account in case of cookie

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 11.10.2
    • Authentication
    • None
    • Unknown

    Description

      I noticed the following behaviour while working on a new Resource Handler with the Authenticate annotation.
      It appears that using wrong credentials in HTTP authorization headers doesn't prevent the resource handler to be executed.

      Basically I would have expected to get immediately a 401 Unauthorized in case of wrong credentials, without entering in the resource handler.

      Now it might be discussed what should be done in case no headers or cookie are provided to a Resource handler with Authenticate annotation, but I guess the javadoc should be clarified since right now it specifies

      Indicate that a {@link org.xwiki.resource.ResourceReferenceHandler} should be executed in an authenticated context.

      Attachments

        Activity

          People

            Unassigned Unassigned
            surli Simon Urli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: