Bug #6661

GET /dhcp is always 404

Added by Ohad Levy almost 4 years ago. Updated almost 4 years ago.

Status:Closed
Priority:Normal
Assigned To:Dmitri Dolguikh
Category:API
Target version:Foreman - Sprint 26
Difficulty: Bugzilla link:
Found in release:nightly Pull request:https://github.com/theforeman/smart-proxy/pull/188
Story points-
Velocity based estimate-
Release1.6.0Release relationshipAuto

Description

when trying to fetch proxy subnets via a API request (GET /dhcp/) I get the following:

, [2014-07-17T09:05:39.725540 #18065] DEBUG -- : Reading config file /etc/dhcpd.conf
D, [2014-07-17T09:05:39.725782 #18065] DEBUG -- : Loading subnets for 127.0.0.1
D, [2014-07-17T09:05:39.725905 #18065] DEBUG -- : Added 10.35.27.0/255.255.255.192 to 127.0.0.1
D, [2014-07-17T09:05:39.726025 #18065] DEBUG -- : Added 10.35.27.128/255.255.255.192 to 127.0.0.1
10.35.4.190 - - [17/Jul/2014 09:05:39] "GET  HTTP/1.1" 404 408 0.0012

It does work correctly if I view the html interface or if i go directly into a subnet via the api (e.g. /dhcp/10.35.27.0).

Associated revisions

Revision 99339284
Added by Dmitri Dolguikh almost 4 years ago

fixes #6661: trailing slash is not required in urls

History

#1 Updated by Dmitri Dolguikh almost 4 years ago

  • Status changed from New to Assigned
  • Assigned To set to Dmitri Dolguikh
  • Target version set to Sprint 26

#2 Updated by The Foreman Bot almost 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/188 added

#3 Updated by Anonymous almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Ohad Levy almost 4 years ago

  • Release set to 1.6.0

Also available in: Atom PDF