Bug 1318325

Summary: GET/POST/PUT /api/v2/auth_source_ldaps/ do not return 'server_type' attribute
Product: Red Hat Satellite Reporter: Andrii Balakhtar <abalakht>
Component: APIAssignee: Roman Plevka <rplevka>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, ehelms, rplevka, sshtein
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
URL: http://projects.theforeman.org/issues/14240
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1318629 (view as bug list) Environment:
Last Closed: 2016-07-27 09:07:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Nailgun output of GET/POST/PUT requests to /api/v2/auth_source_ldaps/
none
tested scenarios none

Description Andrii Balakhtar 2016-03-16 14:02:32 UTC
Created attachment 1137052 [details]
Nailgun output of GET/POST/PUT requests to /api/v2/auth_source_ldaps/

Description of problem:
auth_source_ldaps have 'server_type' attribute, value of which is not returned by any of POST/GET/PUT request in sat6.2.

Version-Release number of selected component (if applicable):
Satellite 6.2.0 Compose 3

How reproducible:
100%

Steps to Reproduce:
1. Issue HTTP POST request to https://sat.example.com/api/v2/auth_source_ldaps with 'server_type' attribute set to some value (e.g. 'active_directory').
2. Capture the response. Examine the JSON payload and discover that the "server_type" attribute is not mentioned.
3. Issue HTTP GET and HTTP PUT requests to previously created auth_source_ldap. Check the "server_type" attribute presence.

Actual results:
'server_type' attribute is absent in GET/POST/PUT responses.

Expected results:
'server_type' attribute is present and has correct value.

Additional info:

Comment 3 Shimon Shtein 2016-03-16 17:38:08 UTC
Created redmine issue http://projects.theforeman.org/issues/14240 from this bug

Comment 4 Bryan Kearney 2016-03-16 18:13:36 UTC
Upstream bug component is Provisioning

Comment 5 Bryan Kearney 2016-03-17 08:13:35 UTC
Upstream bug component is API

Comment 6 Bryan Kearney 2016-03-17 14:14:02 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14240 has been closed
-------------
Shimon Shtein
Applied in changeset commit:82a0ba465e8de728c10f2d1e5678c9df2499186f.

Comment 7 Roman Plevka 2016-03-26 00:26:46 UTC
Created attachment 1140495 [details]
tested scenarios

VERIFIED
Sat6.2 Snap5.1

Comment 10 errata-xmlrpc 2016-07-27 09:07:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1500