Bug 6576 - Local server detection for disabling proxy in send-error-report does not work
Summary: Local server detection for disabling proxy in send-error-report does not work
Status: RESOLVED FIXED
Alias: None
Product: Error Reporting tool
Classification: Yocto Project Subprojects
Component: Error Reporting Tool (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium normal
Target Milestone: 1.7
Assignee: Roxana Ciobanu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-07-25 15:13 UTC by Paul Eggleton
Modified: 2014-08-22 12:09 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2014-07-25 15:13:45 UTC
If HTTP_PROXY or http_proxy is set when the send-error-report script is run, it will check to see if fetching / on the specified server returns 200 without the proxy set. If it does it will assume that the proxy is not needed (e.g. because the server is a local instance, which is often the case when doing development on the error reporting server itself). However this check can never work because fetching / always redirects to /Errors/ in the current code and thus returns code 301. We probably need to try fetching /Errors/ instead.