Project

General

Profile

Actions

Feature #6735

closed

Add user-agent to reposman

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
Start date:
2010-10-24
Due date:
% Done:

0%

Estimated time:
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>)"

Actions #1

Updated by Jean-Philippe Lang over 13 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}"

Actions #2

Updated by Eric Davis over 13 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.

Actions

Also available in: Atom PDF