Project

General

Profile

Actions

Bug #12077

closed

Bug #11836: sharedfile_to_node reports repaired even if it fails

In some cases the shared-file API returns 405 instead of 404

Added by Benoît PECCATTE about 6 years ago. Updated about 6 years ago.

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

Description

When we issue a HEAD on the shared-file api, we sometimes get a 405 error.
This is due to the version of mod_wsgi

mod_wsgi rewrites HEAD request to GET in some cases (don't know exactly when, but it depends on apache output filter, and breaks centos7 and not ubuntu 16)
Broken with wod_wsgi 3.4, works with mod_wsgi 4.3.0
GET requests here a rewritten HEAD, Real GET while be send at another location by a rewrite (cond and rule in rudder-apache-relay-ssl.conf file)
Some explanation: http://blog.dscpl.com.au/2009/10/wsgi-issues-with-http-head-requests.html
Some workaround: https://github.com/GrahamDumpleton/mod_wsgi/issues/2

We fixed the problem for the shared folder we must do the same for the shared-file api

Actions #1

Updated by Benoît PECCATTE about 6 years ago

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

Updated by Benoît PECCATTE about 6 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1491
Actions #3

Updated by Benoît PECCATTE about 6 years ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Vincent MEMBRÉ about 6 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.10 and 4.2.4 which were released today.

Actions

Also available in: Atom PDF