Project

General

Profile

Actions

Support #11305

closed

foreman new proxy add fails with error "No features found on this proxy, please make sure you enable at least one feature"

Added by tony zheng about 9 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Triaged:
Fixed in Releases:
Found in Releases:

Description

it seems to be same bug as #2494
foreman proxy returning html instead of JSON

but i have different version of sinatra.

here is my curl output:

[root@tony_zheng-pc ~]# curl -k -H 'accept application/json' http://105.1.43.51:8000/features
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html> 
  <head> 
    <title>DHCP Web interface</title> 
    <link href='/css/styles.css' rel='stylesheet' /> 
  </head> 
  <body> 
    <div id='wrapper'> 
      <div id='header'> 
        <h1>DHCP Browser</h1> 
        <div id='nav'> 
          <ol> 
            <a href='/dhcp'>     <li>Home</li> </a>
            <a href='/features'> <li>Features</li> </a>
          </ol> 
        </div> 
      </div> 
      <div id='content'> 
        <h2>Suported features</h2>
<ul>

</ul>

      </div> 
      <div id='footer'> 
        <p> &copy; 2010 <a href='mailto:ohadlevy@gmail.com'> Ohad Levy </a> </p> 
      </div> 
    </div> 
  </body> 
</html> 
[root@tony_zheng-pc ~]# 

and here are versions of sinatra i have:
[root@pmonkey ~]# rpm -qa |grep sinatra
rubygem-sinatra-1.0-2.el6.noarch
ruby193-rubygem-sinatra-1.3.2-12.el6.noarch

Actions

Also available in: Atom PDF