Project

General

Profile

Actions

Bug #7134

closed

Rudder API timeouts when passing wrong parameters

Added by Alexis Mousset over 8 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

When one of the API parameters (token or version) is wrong, the request take a very long time to complete. It seems like a server-side timeout:

curl -v -k -X GET -H "Content-Type: application/json;charset=utf-8" --header "X-API-Token: SxedZNGsc6rxWXnHMKDPD13OTuoYPBXUZ" --header "X-API-Version: latest" "https://127.0.0.1:8381/rudder/api/nodes" 
*   Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8381 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* skipping SSL peer certificate verification
* SSL connection using TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate:
*     subject: CN=server.rudder.local
*     start date: Aug 19 12:42:02 2015 GMT
*     expire date: Aug 18 12:42:02 2019 GMT
*     common name: server.rudder.local
*     issuer: CN=server.rudder.local
> GET /rudder/api/nodes HTTP/1.1
> User-Agent: curl/7.40.0
> Host: 127.0.0.1:8381
> Accept: */*
> Content-Type: application/json;charset=utf-8
> X-API-Token: SxedZNGsc6rxWXnHMKDPD13OTuoYPBXUZ
> X-API-Version: latest
> 

< HTTP/1.1 401 Unauthorized
< Date: Wed, 26 Aug 2015 09:09:05 GMT
< Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
< Content-Length: 381
< Content-Type: text/html; charset=iso-8859-1
< 
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
</body></html>
* Connection #0 to host 127.0.0.1 left intact

Related issues 2 (0 open2 closed)

Related to Rudder - Bug #9485: Rudder interface slows down to a halt on RHEL7Rejected2016-10-20Actions
Related to Rudder - Bug #10295: Log an error when Rest API fails ReleasedFrançois ARMANDActions
Actions #1

Updated by Alexis Mousset over 8 years ago

Does not happen on 2.10.

Actions #2

Updated by Alexis Mousset over 8 years ago

This is an httpd bug, happening with the ProxyErrorOverride directive on 2.4 version : https://bz.apache.org/bugzilla/show_bug.cgi?id=53420. It was fixed in httpd 2.4.11.

The problem occurs at least on RHEL/CentOS 7, but probably on other recent distributions too.

Actions #3

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.2 to 3.1.3
Actions #4

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.3 to 3.1.4
Actions #5

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.4 to 3.1.5
Actions #6

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.5 to 3.1.6
Actions #7

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.6 to 3.1.7
Actions #8

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.7 to 3.1.8
Actions #9

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.8 to 3.1.9
Actions #10

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.9 to 3.1.10
Actions #11

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 3.1.10 to 3.1.11
Actions #12

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 3.1.11 to 3.1.12
Actions #13

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.12 to 3.1.13
Actions #14

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.13 to 3.1.14
Actions #15

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.14 to 3.1.15
Actions #16

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.15 to 3.1.16
Actions #17

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.16 to 3.1.17
Actions #18

Updated by Benoît PECCATTE over 7 years ago

  • Status changed from New to In progress
  • Assignee set to Benoît PECCATTE
Actions #19

Updated by Benoît PECCATTE over 7 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder/pull/1320
Actions #20

Updated by Benoît PECCATTE over 7 years ago

  • Related to Bug #9485: Rudder interface slows down to a halt on RHEL7 added
Actions #21

Updated by Benoît PECCATTE over 7 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #22

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.0.1, 3.1.16 and 3.2.10 which were released today.

Actions #23

Updated by François ARMAND about 7 years ago

  • Related to Bug #10295: Log an error when Rest API fails added
Actions

Also available in: Atom PDF