Ticket #124 (closed defect: worksforme)

Opened 4 years ago

Last modified 4 years ago

group_id wordt niet geupdate bij een [post] /asset

Reported by: Michiel.Schok Owned by:
Priority: major Milestone: MediaMosa 1.6
Component: Core Version: Tested and Accepted
Keywords: Cc:
MoSCoW: Estimated time after impact analysis:
Related to project: none Tested:
Accepted: yes Estimated Hours:

Description (last modified by Michiel.Schok) (diff)

It seems that it is not possible to change the 'group_id' wen using a [post] on /asset/{id} .

[post] /asset/HZNWmXZgPo0m1B5oAoGHtGTf
[params] group_id=test&user_id=SURFgroepen.michiel.schok

returns

Insufficient paramaters given, changes not saved

Is that 'by design' or a 'bug' ?

Change History

Changed 4 years ago by Michiel.Schok

  • description modified (diff)

Changed 4 years ago by MC-arjen

  • status changed from new to closed
  • resolution set to worksforme

This is by design, the idea is that users are not allowed to change the ownership of assets by themself, this is true for the fields: user_id and group_id.

There is however an extra possibility for an EGA: the "is_app_admin" field. If the call is made like this:

[post] /asset/HZNWmXZgPo0m1B5oAoGHtGTf
[params] is_app_admin=TRUE&group_id=test&user_id=SURFgroepen.michiel.schok

the user and group can be changed.

improved documentation on : http://mediamosa.org/node/3549 (http://mediamosa.org/api)

Changed 4 years ago by Michiel.Schok

  • accepted changed from no to yes

OK, the answer is accepted and worksforustoo

Changed 4 years ago by Frans

  • version set to Tested and Accepted
Note: See TracTickets for help on using tickets.