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

Remove extra Servlet Mapping for the robots.txt file

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Minor
    • 3.2 M3
    • 3.2 M2
    • Root Webapp
    • None
    • Unknown

    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

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

            Dates

              Created:
              Updated:
              Resolved: