Feature #6735

Add user-agent to reposman

Added by Ве Fio over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:2010-10-24
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:SCM
Target version:1.0.3
Resolution:Fixed

Description

Hi,

On my system, reposman.rb fails with a 400 Bad Request. The reason for that is that I use mod_security, which has some strict rules regarding correct compliance with requests, browsers, etc. (these rules are very essential because they cause bad bots, malicious users, malicious requests, etc, to be denied)

Anyways, one of the requirements is that anything accessing the site must have a user-agent, and the reason that reposman fails is because it doesn't specify a user-agent (I read my access logs)

So, could a user-agent be added? It'd make the tool more compliant with standards anyways, and it'd allow people to more easily see and understand that the "thing" accessing their /sys/ area is reposman.

I was thinking of a user-agent such as: "Redmine repository manager/1.3 (http://<site url>)"

Associated revisions

Revision 4288
Added by Jean-Philippe Lang over 6 years ago

Adds a user-agent to reposman (#6735).

History

#1 Updated by Jean-Philippe Lang over 6 years ago

  • Status changed from New to Closed
  • Target version set to 1.1.0
  • Resolution set to Fixed

Done in r4288. User-agent is "Redmine repository manager/#{Version}"

#2 Updated by Eric Davis over 6 years ago

  • Target version changed from 1.1.0 to 1.0.3

This is safe for the 1.0-stable branch and 1.0.3.

Also available in: Atom PDF