Ticket #2488 (closed defect: worksforme)

Opened 2 years ago

Last modified 23 months ago

Group update via API fails validation with organization and publisher profile enabled

Reported by: johnglover Owned by: johnglover
Priority: major Milestone: ckan-sprint-2012-06-25
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

Reported on IRC by 'floapps'.

  • when posting a group update with {packages: [package-1, package-2, etc.]}, getting ValidationError?: {'Packages': {'name': Missing value?}}, although package objects did contain a name field
  • same API call worked with organization and publisher profile disabled
  • also worked if added a form_to_db_schema_options function which used default_update_group_schema for api updates instead of default_group_schema
  • tried on both 1.7 and 1.7.1b

Change History

comment:1 Changed 23 months ago by johnglover

  • Owner set to johnglover
  • Priority changed from awaiting triage to major
  • Status changed from new to assigned
  • Milestone set to current-ckan-sprint-2012-06-25

comment:2 Changed 23 months ago by johnglover

  • Status changed from assigned to closed
  • Resolution set to worksforme

Works for me on 1.7.1.

Perhaps floapps was using older groups (of type 'group' instead of 'organization') and/or didn't add a user to the group?

Note: See TracTickets for help on using tickets.