Project

General

Profile

Actions

Defect #11749

closed

Redmine.pm: HEAD is not considered as a read-only method

Added by Antonio García-Domínguez over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Category:
SCM extra
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

I've been using Redmine.pm to control access to other per-project resources that aren't really repositories, such as WebDAV storage areas. One of these WebDAV areas hosted an Eclipse repository in a public project, and it was asking for a password simply to install artifacts from it from Eclipse.

After looking at the logs, it appears that Eclipse was checking if a certain file existed using the HTTP HEAD method. As it's not considered read-only by Redmine.pm, it was asking for auth credentials. IIRC, HTTP HEAD is a read-only method, as it is basically a GET request without the body:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4

I've attached a trivial patch that fixes the problem by adding HEAD as a read-only method. With this, the hosted update site can be installed from Eclipse just fine.


Files

add-head-as-read-only.patch (759 Bytes) add-head-as-read-only.patch Antonio García-Domínguez, 2012-08-31 12:13
Actions #1

Updated by Toshi MARUYAMA over 11 years ago

  • Category set to SCM extra
Actions #2

Updated by Jean-Philippe Lang over 11 years ago

  • Target version set to 2.1.0
Actions #3

Updated by Jean-Philippe Lang over 11 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Committed in r10279.

Actions

Also available in: Atom PDF