Project

General

Profile

Actions

Bug #39637

closed

Candlepin 5.0 fails oauth POST with nil body and JSON content type

Added by Ian Ballou 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Subscriptions
Target version:
Difficulty:
hard
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

The CANDLEPIN-1263 fix ([commit eb1910643b](https://github.com/candlepin/candlepin/commit/eb1910643b)) changed `RestEasyOAuthMessage.getParameters()` to guard all HTTP methods from calling `getFormParameters()` when the Content-Type is not `application/x-www-form-urlencoded` (or is null). Previously, only PUT was guarded. This was necessary because RESTEasy 7.0.2 started throwing `RESTEASY003750` for POST requests with non-form content types.

The side effect: an old bug in Katello is suddenly causing OAuth issues. There is a typo in the http_resource for Candlepin that causes headers to be sent in the body instead of the actual headers for POST, PUT, etc. We will fix this from the Katello side.

Actions #1

Updated by The Foreman Bot 3 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/11835 added
Actions #2

Updated by Ian Ballou 3 months ago

  • Description updated (diff)
Actions #3

Updated by Ian Ballou 3 months ago

  • Red Hat JIRA set to SAT-49343
Actions #4

Updated by The Foreman Bot 3 months ago

  • Fixed in Releases Katello 5.1.0 added
Actions #5

Updated by Ian Ballou 3 months ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by Samir Jha 3 months ago

  • Triaged changed from No to Yes
  • Fixed in Releases Katello 5.0.0 added
  • Fixed in Releases deleted (Katello 5.1.0)
Actions #7

Updated by The Foreman Bot 3 months ago

  • Fixed in Releases Katello 5.0.1 added
Actions

Also available in: Atom PDF