Ticket #257 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

/asset/{id} post call now requires an 'owner_id'

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

Description

When I only want to update the 'isprivate' of an asset, I used to call

[POST] asset/8ype1EkUpSyHTOPTJTzM49vc with params user_id=SURFNET.michiel&isprivate=true

In 2.1.0 the same call results in

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <header>
    <item_count>0</item_count>
    <item_count_total>0</item_count_total>
    <item_offset>0</item_offset>
    <request_matched_method>POST</request_matched_method>
    <request_matched_uri>/asset/$asset_id</request_matched_uri>
    <request_process_time>0.0257</request_process_time>
    <request_result>error</request_result>
    <request_result_description>MediaMosia - missing required parameter: owner_id (USER_ID)</request_result_description>
    <request_result_id>1002</request_result_id>
    <request_uri>[POST] /asset/qebAOhxInagHFSjHUhcvhrDx</request_uri>
    <version>2.1.0.236:07ebc5929cac</version>
  </header>
  <items/>
</response>

But according to the documentation (1.7.3, http://mediamosa.org/node/5136) the owner_id is optional, and only necessary when changing ownership of the asset.

Change History

Changed 3 years ago by robert

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

Release 2.1

Changed 3 years ago by robert

  • status changed from closed to reopened
  • resolution ready_for_review deleted

Changed 3 years ago by robert

  • status changed from reopened to closed
  • resolution set to fixed

Changed 3 years ago by Michiel.Schok

  • tested changed from no to yes
  • accepted changed from no to yes

owner_id is no longer required on the restcall. OK

Note: See TracTickets for help on using tickets.