Bug #6661

GET /dhcp is always 404

Added by Ohad Levy about 4 years ago. Updated 6 days ago.

Status:Closed
Priority:Normal
Assignee:Dmitri Dolguikh
Category:API
Target version:1.6.0
Difficulty: Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link: Found in Releases:Foreman - Nightly
Pull request:https://github.com/theforeman/smart-proxy/pull/188

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 about 4 years ago

fixes #6661: trailing slash is not required in urls

History

#1 Updated by Dmitri Dolguikh about 4 years ago

  • Status changed from New to Assigned
  • Assignee set to Dmitri Dolguikh
  • Target version set to 1.8.0

#2 Updated by The Foreman Bot about 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 about 4 years ago

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

#4 Updated by Ohad Levy about 4 years ago

  • Legacy Backlogs Release (now unused) set to 10

Also available in: Atom PDF