Bug 820941

Summary: (rhq.plugins.www.util.WWWUtils)- Ping request returned a response with client error 403, but server returns 200
Product: [Other] RHQ Project Reporter: Libor Zoubek <lzoubek>
Component: AgentAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED NOTABUG QA Contact: Mike Foley <mfoley>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.4CC: hrupp, loleary, theute
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-14 22:00:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Libor Zoubek 2012-05-11 11:46:36 UTC
Description of problem: I am getting warnings from apache plugin in agent.log 

[ResourceContainer.invoker.daemon-58] (rhq.plugins.www.util.WWWUtils)- Ping request to [http://1.2.3.4:80] returned a response with client error 403 (Forbidden)

When I try GET on http://1.2.3.4:80 I get 200-OK.

Version-Release number of selected component (if applicable):
RHQ 4.5-master

How reproducible:always


Steps to Reproduce:
1.import apache on linux
2.check agent.log


Expected results: warnings should disappear, since  http://1.2.3.4:80 does not return 403

Comment 1 Larry O'Leary 2012-05-14 14:53:41 UTC
Is a redirect being used? What does the following produce:

wget --max-redirect=0 http://1.2.3.4/


I am not sure if we would handle redirects. Additionally, if a proxy configuration is used, it could react differently to each client. How are you testing the http://1.2.3.4:80 URL when receiving the 200 OK? Also, what does the access.log and error.log reveal for the ping?

Comment 2 Libor Zoubek 2012-05-14 22:00:58 UTC
Not a bug. My mistake. There is no proxy, no such thing. I just tried it in chromium and saw 'Red Hat Enterprise Linux Test Page' and I did not believe that by default httpd on RHEL6 returns 403.