Uploaded image for project: 'Droids'
  1. Droids
  2. DROIDS-4

NoRobotsClient does not follow the standard for robot.txt location

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      I see that the url for the robots was relative to the path and this not follow the robots standard.

      ...
      public static URL findRobotsUrl(URL base, String prefix) throws MalformedURLException {
      URL url = new URL(base, "robots.txt");
      boolean exist = existUrl(url);
      ...

      It should be "new URL(base, "/robots.txt");"

      I found this on the web:

      Attach a patch to solve this behavior.

      Salu10.

      Attachments

        1. norobot-rfc.diff
          3 kB
          Javier Puerto

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jpuerto Javier Puerto
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: