Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20723

linkcheck cronjob: some urls marked invalid due to HEAD request

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Low Low
    • Customer request, 5.4.3, 5.3.6
    • 4.5.0, 4.6.0, 4.7.0, 5.0, 5.1
    • Misc
    • None
    • eZ Publish 4.x, 5.x-legacy

    Description

      The linkcheck cronjob verifies if external urls are valid using eZHTTPTool.

      As no result data needs to be returned, curl is set the option to only get headers, and thus performs a HEAD request.

      However, some sites do not respond in the same manner as to a GET request, and return error status codes (http 500, 503, 405).

      A few examples:

      $ curl --head http://www.wn-immo.de/search.html
      HTTP/1.1 500 Internal Server Error
      
      $ curl --head http://www.amazon.com/
      HTTP/1.1 405 MethodNotAllowed
      

      For compatibility, curl should use a standard GET, while still only downloading headers.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 5 minutes
                1h 5m