Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338202 - Add flag to remove user-agent string for net-proxy/paros
Summary: Add flag to remove user-agent string for net-proxy/paros
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-20 15:52 UTC by Sam Barlow
Modified: 2012-12-25 12:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Example (paros-3.2.13-nouseragent.patch,736 bytes, patch)
2010-09-20 15:54 UTC, Sam Barlow
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Barlow 2010-09-20 15:52:59 UTC
May a USE flag be added to the net-proxy/paros to remove the user agent string?
For example, the following patch:
'''
diff -Nru paros.orig/src/org/parosproxy/paros/Constant.java paros/src/org/parosproxy/paros/Constant.java
--- paros.orig/src/org/parosproxy/paros/Constant.java	2010-09-20 15:11:26.459001974 +0000
+++ paros/src/org/parosproxy/paros/Constant.java	2010-09-20 15:12:02.804956987 +0000
@@ -77,7 +77,8 @@
     private static Constant instance = null;
     
     public static final int MAX_HOST_CONNECTION = 5;
-    public static final String USER_AGENT = PROGRAM_NAME + "/" + PROGRAM_VERSION;
+//  public static final String USER_AGENT = PROGRAM_NAME + "/" + PROGRAM_VERSION;
+    public static final String USER_AGENT = "";
 
     private static String staticEyeCatcher = PROGRAM_NAME;
     private static boolean staticSP = false;
'''

Reproducible: Always

Steps to Reproduce:
Feature Request
Comment 1 Sam Barlow 2010-09-20 15:54:14 UTC
Created attachment 248169 [details, diff]
Example
Comment 2 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-09-20 16:22:52 UTC
For what reason are you suggesting this change?
Comment 3 Sam Barlow 2010-09-20 19:01:34 UTC
I would like the ability to use the proxy without "Paros/3.2" being appended to the browsers User Agent String, and am sure others would like to same option.  Which can be done with the attached patch.  This is not a bug, but a feature request.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-09-20 20:15:34 UTC
I guess that's a candidate for an obvious WONTFIX.
Comment 5 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-09-21 15:50:33 UTC
(In reply to comment #3)
> I would like the ability to use the proxy without "Paros/3.2" being appended to
> the browsers User Agent String, and am sure others would like to same option. 
> Which can be done with the attached patch.  This is not a bug, but a feature
> request.
> 

You didn't answer my question. It is kind of obvious that you want it not prepend the proxy name. *Why* is the interesting bit.
Comment 6 Sam Barlow 2010-09-23 23:49:39 UTC
I work in the network security field and encounter may instances where I need to control what is in the user agent string, for example a proxy server (other than paros) can present authentication requirements depending on the content of a user agent string.  I have been applying the attached patch and rebuilding the ebuild for some time now with each new update (not a big deal) and thought that others such as myself would greatly appreciate a USE flag.  Several of my colleagues using Gentoo do the same thing.
Comment 7 Pacho Ramos gentoo-dev 2012-12-25 12:58:56 UTC
dropped