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

Remove extra Servlet Mapping for the robots.txt file

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2 M2
    • Fix Version/s: 3.2 M3
    • Component/s: Root Webapp
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Right now we have:

        <!-- Make sure we don't redirect when the container is asking for the favicon -->
        <servlet-mapping>
          <servlet-name>default</servlet-name>
          <url-pattern>/favicon.ico</url-pattern>
        </servlet-mapping>
        <!-- Make sure we don't redirect when the container is asking for the robots.txt file -->
        <servlet-mapping>
          <servlet-name>default</servlet-name>
          <url-pattern>/robots.txt</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>XWikiDispatcherServlet</servlet-name>
          <url-pattern>/</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>default</servlet-name>
          <url-pattern>/robots.txt</url-pattern>
        </servlet-mapping>
      

      The duplication was added in XTROOT-5 (was initially added in XTROOT-2)

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: