Defect #11749

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

Added by Antonio García-Domínguez about 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:SCM extra
Target version:2.1.0
Resolution:Fixed Affected version:2.0.3

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.

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

Associated revisions

Revision 10279
Added by Jean-Philippe Lang about 5 years ago

Redmine.pm: HEAD is not considered as a read-only method (#11749).

History

#1 Updated by Toshi MARUYAMA about 5 years ago

  • Category set to SCM extra

#2 Updated by Jean-Philippe Lang about 5 years ago

  • Target version set to 2.1.0

#3 Updated by Jean-Philippe Lang about 5 years ago

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

Committed in r10279.

Also available in: Atom PDF