Ticket #377 (closed enhancement: fixed)

Opened 3 years ago

Last modified 22 months ago

supplements limit will trim input, no warning

Reported by: robert Owned by: robert
Priority: minor Milestone: MediaMosa 3.0
Component: Core Version: 2.2.5
Keywords: Cc:
MoSCoW: Must Have Estimated time after impact analysis:
Related to project: none Tested: no
Accepted: no Estimated Hours: 1

Description

The asset supplement update call will truncate the input to a certain length and will not warn when it trims the value. This has unexpected results.

Change History

Changed 3 years ago by robert

  • priority changed from major to minor

Changed 3 years ago by robert

  • version set to 2.2.5

Changed 2 years ago by Frans

  • milestone changed from MediaMosa X.X to MediaMosa 3.0

Changed 2 years ago by Frans

Also the 64k limit is limited.
Solutions: - raise this limit
- make it flexible in the MM backend - as EGA setting

Changed 2 years ago by Frans

  • estimated_hours changed from 0 to 1
  • moscow changed from Should Have to Must Have

Changed 2 years ago by dpovshed

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

Implemented in rev #1512

Changed 2 years ago by robert

  • status changed from closed to reopened
  • resolution ready_for_review deleted

Changed 2 years ago by robert

  • owner set to robert
  • status changed from reopened to assigned

Changed 2 years ago by robert

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

Changed 22 months ago by forgacs

App_id = 1

You can set the limit of the supplement here:
 https://beheer.acceptatie.vpcore.snkn.nl/admin/mediamosa/config/global

Let's 1 KB for testing.

Create supplement:
POST: /asset/B2KfVSWCXlawaWZtOkoYKfrL/supplement/create

Set supplement:
POST: /asset/B2KfVSWCXlawaWZtOkoYKfrL/supplement/h1NVEOqdUuKYppcToTf1WVIu/update
supplement=12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789

There is a warning.

Set the limit to 256 KB:
 https://beheer.acceptatie.vpcore.snkn.nl/admin/mediamosa/config/global

Set the supplement again: Success.

Get supplement:
GET: /asset/B2KfVSWCXlawaWZtOkoYKfrL/supplement

Note: See TracTickets for help on using tickets.