Bug 841688 - repo groups PUT causes 500
Summary: repo groups PUT causes 500
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: API/integration
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-19 21:14 UTC by Michael Hrivnak
Modified: 2014-03-31 01:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-07 14:10:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Michael Hrivnak 2012-07-19 21:14:56 UTC
Description of problem:

pulp.server.webservices.controllers.repo_groups.RepoGroupResource.PUT tries to pass two positional arguments to RepoGroupManager.update_repo_group, but that method is only willing to accept one of them.  As a result, a PUT request to that controller returns 500.

http://git.fedorahosted.org/git/?p=pulp.git;a=blob;f=platform/src/pulp/server/webservices/controllers/repo_groups.py;h=ca3804a4e3066a6d0f26be7dd15950057974c4c8;hb=HEAD#l116

Version-Release number of selected component (if applicable):

latest (git @ca3804a4)

Comment 1 Jay Dobies 2012-07-24 14:12:55 UTC
Fixed as part of commit:


commit 50d9a547a54b0567ce28b09a324fd2468e6180ee
Author: Jay Dobies <jason.dobies>
Date:   Mon Jul 23 14:36:11 2012 -0400

    Unit tests for repo group CRUD REST controllers

platform/src/pulp/server/dispatch/constants.py
platform/src/pulp/server/webservices/controllers/repo_groups.py
platform/src/pulp/server/webservices/controllers/repositories.py
platform/test/unit/test_repo_group_controller.py

Comment 2 Jeff Ortel 2012-08-02 13:48:21 UTC
build: 0.320.

Comment 3 Preethi Thomas 2012-08-13 19:16:24 UTC
verified
[root@preethi-el6-pulp ~]# rpm -q pulp-rpm-server
pulp-rpm-server-0.0.321-1.el6.noarch

>>> pic.PUT('/v2/repo_groups/mygroup/',body={ "display_name": "Demo Group"})
Request Body
{
  "display_name": "Demo Group"
}
Response Body
{
  "scratchpad": null, 
  "display_name": "Demo Group", 
  "description": null, 
  "_ns": "repo_groups", 
  "notes": {}, 
  "repo_ids": [], 
  "_id": {
    "$oid": "50256b11196f455d6800007f"
  }, 
  "id": "mygroup", 
  "_href": "/pulp/api/v2/repo_groups/mygroup/"
}
(200, {u'scratchpad': None, u'display_name': u'Demo Group', u'description': None, u'_ns': u'repo_groups', u'notes': {}, u'repo_ids': [], u'_id': {u'$oid': u'50256b11196f455d6800007f'}, u'id': u'mygroup', u'_href': u'/pulp/api/v2/repo_groups/mygroup/'})
>>>

Comment 4 Preethi Thomas 2013-01-07 14:10:03 UTC
Pulp 2.0 released.


Note You need to log in before you can comment on or make changes to this bug.