API root returns HTML instead of a list of versions

Bug #1478689 reported by Graham Hayes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Searchlight
Fix Released
Medium
Lakshmi N Sampath

Bug Description

➜ vagrant git:(master) http http://192.168.121.242:9393/ X-Auth-Token:$token
    HTTP/1.1 404 Not Found
    Content-Length: 319
    Content-Type: text/html
    Date: Mon, 27 Jul 2015 20:16:26 GMT
    X-Openstack-Request-Id: req-req-650bff85-8527-40c4-acab-f646bcb60ca8

    <html>
      <head><title>Not Found</title></head>
      <body>
        <h1>Not Found</h1>
        <p>The resource could not be found.
    <br/>/
    <!-- defined apps: (None, '/v1')
    SCRIPT_NAME: ''
    PATH_INFO: '/'
    HTTP_HOST: '192.168.121.242:9393' --></p>
        <hr noshade>
        <div align="right">WSGI Server</div>
      </body>
    </html>

Most OpenStack APIs return a list of API versions, and some metadata (support status, metadata about JSON formats etc)

Steve McLellan (sjmc7)
Changed in searchlight:
importance: Undecided → Medium
Changed in searchlight:
assignee: nobody → Lakshmi N Sampath (lakshmi-sampath)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to searchlight (master)

Fix proposed to branch: master
Review: https://review.openstack.org/207864

Changed in searchlight:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to searchlight (master)

Reviewed: https://review.openstack.org/207864
Committed: https://git.openstack.org/cgit/openstack/searchlight/commit/?id=11a9c6a75ce468db968c7c8b7bd886bb75487bcd
Submitter: Jenkins
Branch: master

commit 11a9c6a75ce468db968c7c8b7bd886bb75487bcd
Author: Lakshmi N Sampath <email address hidden>
Date: Fri Jul 31 05:29:55 2015 -0700

    Fix for API root returns HTML instead of a list of versions

    It returns the only supported current version(v1).
    Sample api-paste.ini is modified to link the routing
    properly.

    Change-Id: I0496fefb03a39f8c91802402c7c5e05c3be6444c
    Closes-Bug: #1478689
    Co-Authored-By: Travis Tripp <email address hidden>
    Co-Authored-By: Lakshmi N Sampath <email address hidden>

Changed in searchlight:
status: In Progress → Fix Committed
Changed in searchlight:
milestone: none → liberty-rc1
Changed in searchlight:
status: Fix Committed → Fix Released
Changed in searchlight:
milestone: liberty-rc1 → 0.1.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.