Project

General

Profile

Actions

Bug #15877

closed

Cannot update collection with EnableBetaController14287: true

Added by Peter Amstutz over 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
-
Release relationship:
Auto

Description

$ arv collection update --uuid x1u39-4zz18-6yajeop0guo48h4 --collection '{"properties": {"fruit":"banana"}}'
Error: json: cannot unmarshal string into Go struct field UpdateOptions.attrs of type map[string]interface {}

Setting EnableBetaController14287: false, I am able to make the update with the same command.


Subtasks 1 (0 open1 closed)

Task #15878: Review 15877-accept-json-in-jsonResolvedPeter Amstutz11/26/2019Actions
Actions #1

Updated by Peter Amstutz over 4 years ago

  • Description updated (diff)
Actions #2

Updated by Peter Amstutz over 4 years ago

  • Description updated (diff)
Actions #3

Updated by Tom Clegg over 4 years ago

  • Subject changed from Cannot update properties with EnableBetaController14287: true to Cannot update collection with EnableBetaController14287: true
  • Status changed from New to In Progress
  • Assigned To set to Tom Clegg

Same error:

arv collection update --uuid x1u39-4zz18-6yajeop0guo48h4 --collection '{}'
Actions #4

Updated by Tom Clegg over 4 years ago

Evidently arv sends a request body with json-in-json, like this

Content-Type: application/json

{"collection":"{\"properties\":{}}"}

15877-accept-json-in-json @ b69a0b0f7b4b9a773fb060a592057f9bd146e480

Actions #5

Updated by Peter Amstutz over 4 years ago

  • Target version changed from 2020-01-02 Sprint to 2019-12-04 Sprint
Actions #6

Updated by Peter Amstutz over 4 years ago

Tom Clegg wrote:

Evidently arv sends a request body with json-in-json, like this

[...]

15877-accept-json-in-json @ b69a0b0f7b4b9a773fb060a592057f9bd146e480

LGTM.

Actions #7

Updated by Tom Clegg over 4 years ago

  • Status changed from In Progress to Resolved
Actions #8

Updated by Peter Amstutz about 4 years ago

  • Release set to 22
Actions

Also available in: Atom PDF