Ticket #298 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

New REST call for set ACL right for multiple mediafiles at once

Reported by: forgacs Owned by: arjen
Priority: major Milestone: MediaMosa 2.1
Component: FTP upload Version: 2.1.2
Keywords: Cc:
MoSCoW: none Estimated time after impact analysis:
Related to project: none Tested: no
Accepted: no Estimated Hours:

Description

A new REST call would be very handy to set ACL rights for multiple mediafiles at once.

REST call: mediafile/acl [POST]
with asset_id[]=....&asset_id[]=... etc.
Other parameters are the usual: aut_app[], aut_domain[], aut_group[], aut_group_id[], aut_realm[], aut_user[], aut_user_id[], replace.

This REST call sets the ACL rights to all of the mediafiles belonging to the given asset ids.

Example Request

mediafile/acl?asset_id[]=7pAkDsceysAZPo0q3PhjtBE1&asset_id[]=J2MKUJUcleMUfUcsZVDpdxi8
POST aut_user[]=user1

Example Response

<items>
  <item id="1">
    <aut_user>
      <asset_id>7pAkDsceysAZPo0q3PhjtBE1</asset_id>
      <mediafile_id>VxsIJXDjuYUJKq81n9Ulimmu</mediafile_id>
      <value>user1</value>
      <result>success</result>
      <result_id>601</result_id>
      <result_description></result_description>
    </aut_user>
  </item>
  <item id="2">
    <aut_user>
      <asset_id>7pAkDsceysAZPo0q3PhjtBE1</asset_id>
      <mediafile_id>OW35AQyoPNUSi4iINunmS2nr</mediafile_id>
      <value>user1</value>
      <result>success</result>
      <result_id>601</result_id>
      <result_description></result_description>
    </aut_user>
  </item>
  <item id="3">
    <aut_user>
      <asset_id>J2MKUJUcleMUfUcsZVDpdxi8</asset_id>
      <mediafile_id>lH8hZUCQmjAUWXIYWnXioHHF</mediafile_id>
      <value>user1</value>
      <result>success</result>
      <result_id>601</result_id>
      <result_description></result_description>
    </aut_user>
  </item>
</items>

Change History

Changed 3 years ago by MC-arjen

  • status changed from new to closed
  • resolution set to fixed
  • version changed from 2.1.3 to 2.1.2
  • component changed from Core to FTP upload

Used for ftp/bulk upload, so it is testable there.

Note: See TracTickets for help on using tickets.