Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix for YB6576
@ 2014-08-04 12:16 Roxana Ciobanu
  2014-08-04 12:16 ` [PATCH 1/1] scripts/send-error-report: fetch /Errors/ instead of / Roxana Ciobanu
  0 siblings, 1 reply; 2+ messages in thread
From: Roxana Ciobanu @ 2014-08-04 12:16 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 0a7530fcd2e8ae91b297a3ebd9877957f0550d4c:

  upstream-tracking: Add various CHECK_DATE and UPDATE_REASONs for my recipes (2014-08-03 12:40:41 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib roxana/YB6576
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=roxana/YB6576

Roxana Ciobanu (1):
  scripts/send-error-report: fetch /Errors/ instead of /.

 scripts/send-error-report | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] scripts/send-error-report: fetch /Errors/ instead of /.
  2014-08-04 12:16 [PATCH 0/1] Fix for YB6576 Roxana Ciobanu
@ 2014-08-04 12:16 ` Roxana Ciobanu
  0 siblings, 0 replies; 2+ messages in thread
From: Roxana Ciobanu @ 2014-08-04 12:16 UTC (permalink / raw)
  To: openembedded-core

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. However this check can never work because
fetching / always redirects to /Errors/ in the current code and
thus returns code 301. This is fixed by fetching /Errors/ instead of /.

[YOCTO #YB6576]

Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>
---
 scripts/send-error-report | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/send-error-report b/scripts/send-error-report
index 48d983b..c99d387 100755
--- a/scripts/send-error-report
+++ b/scripts/send-error-report
@@ -20,7 +20,7 @@ def handle_connection(server, data):
         # we need to check that the server isn't a local one, as in no_proxy
         try:
             temp = httplib.HTTPConnection(server, strict=True, timeout=5)
-            temp.request("GET", "/")
+            temp.request("GET", "/Errors/")
             tempres = temp.getresponse()
             if tempres.status == 200:
                 proxyrequired = False
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-04 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-04 12:16 [PATCH 0/1] Fix for YB6576 Roxana Ciobanu
2014-08-04 12:16 ` [PATCH 1/1] scripts/send-error-report: fetch /Errors/ instead of / Roxana Ciobanu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox