Ticket #197 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Upload: metadata dubbel

Reported by: Michiel.Schok Owned by: MC-arjen
Priority: major Milestone: MediaMosa 1.7
Component: Core Version: 1.7.2
Keywords: Cc:
MoSCoW: Estimated time after impact analysis:
Related to project: none Tested:
Accepted: no Estimated Hours:

Description

Bij upload van een mediafile, zien we dat metadata als 'title', 'description', 'creator' dubbel aangemaakt wordt.

Na het aanmaken van een asset, mediafile en uploadticket, en tijdens de upload (datatransfer), een [get] /asset levert 1 titel, 1 beschrijving en 1 maker, na upload en analyse komt er een tweede bij:

<request_uri>[GET] asset/XKqNR8naQUxVqJZ4ep1UQB4l?app_id=9</request_uri>

<format/>
<language/>
<title>Wildlife</title>
<title>Wildlife</title>
<creator>maker dubbel?</creator>
<creator>maker dubbel?</creator>
<publisher/>
<subject/>
<description>Komt de beschrijving hier ook dubbel?</description>
<description>Komt de beschrijving hier ook dubbel?</description>
<contributor/>
<date>2011-11-11 00:00:00</date>
<date>2011-11-11 00:00:00</date>
<identifier/>
<source/>

Materiaal is zojuist geupload op app-id 9. Ook bij SURFmedia test (id 5) treedt een identiek probleem op.

Gedrag valt me op sinds dinsdagochtend, maar kan niet uitsluiten dat het daarvoor ook al aanwezig was.

Change History

Changed 4 years ago by Michiel.Schok

On the same asset, I also observe that 2 stills are created. We only request one.
In this case, the relevant portion of the /asset call is:

    <request_uri>[GET] asset/XKqNR8naQUxVqJZ4ep1UQB4l</request_uri>

          <still>
            <mediafile_id>WUlJpxPJp8mmM8hZUKYnRftD</mediafile_id>
            <asset_id>XKqNR8naQUxVqJZ4ep1UQB4l</asset_id>
            <app_id>9</app_id>
            <owner_id>SURFNET.michiel</owner_id>
            <group_id></group_id>
            <is_original_file>FALSE</is_original_file>
            <is_downloadable>FALSE</is_downloadable>
            <filename></filename>
            <uri></uri>
            <sannas_mount_point>/mnt/naspcd1/vpx-acc</sannas_mount_point>
            <transcode_profile_id></transcode_profile_id>
            <tool></tool>
            <command></command>
            <file_extension>jpeg</file_extension>
            <testtag>FALSE</testtag>
            <is_protected>FALSE</is_protected>
            <created>2009-11-11 11:28:32</created>
            <changed>2009-11-11 11:28:32</changed>
            <asset_id_root>XKqNR8naQUxVqJZ4ep1UQB4l</asset_id_root>
            <transcode_inherits_acl>FALSE</transcode_inherits_acl>
            <mediafile_source>5IDr4ICaUE1y2C5sewx7L74l</mediafile_source>
            <is_streamable>FALSE</is_streamable>
            <tag></tag>
            <is_still>TRUE</is_still>
            <type>VIDEO</type>
            <metadata_id>644140</metadata_id>
            <video_codec></video_codec>
            <colorspace></colorspace>
            <width>176</width>
            <height>144</height>
            <fps></fps>
            <audio_codec></audio_codec>
            <sample_rate></sample_rate>
            <channels></channels>
            <file_duration></file_duration>
            <container_type></container_type>
            <bitrate></bitrate>
            <bpp></bpp>
            <filesize>6195</filesize>
            <mime_type>image/jpeg</mime_type>
            <is_hinted>FALSE</is_hinted>
            <is_inserted_md>FALSE</is_inserted_md>
            <still_time_code>0</still_time_code>
            <still_order>0</still_order>
            <still_type></still_type>
            <still_format>jpeg</still_format>
            <still_default>TRUE</still_default>
            <still_ticket>http://app.acceptatie.vpx.kennisnet.nl/still/P3X3Y8z1sjQi2HjX6lPYolVU</still_ticket>
          </still>
          <still>
            <mediafile_id>2ZRQn7FpiAPLlKWmjoVR7DVZ</mediafile_id>
            <asset_id>XKqNR8naQUxVqJZ4ep1UQB4l</asset_id>
            <app_id>9</app_id>
            <owner_id>SURFNET.michiel</owner_id>
            <group_id></group_id>
            <is_original_file>FALSE</is_original_file>
            <is_downloadable>FALSE</is_downloadable>
            <filename></filename>
            <uri></uri>
            <sannas_mount_point>/mnt/naspcd1/vpx-acc</sannas_mount_point>
            <transcode_profile_id></transcode_profile_id>
            <tool></tool>
            <command></command>
            <file_extension>jpeg</file_extension>
            <testtag>FALSE</testtag>
            <is_protected>FALSE</is_protected>
            <created>2009-11-11 11:28:32</created>
            <changed>2009-11-11 11:28:32</changed>
            <asset_id_root>XKqNR8naQUxVqJZ4ep1UQB4l</asset_id_root>
            <transcode_inherits_acl>FALSE</transcode_inherits_acl>
            <mediafile_source>5IDr4ICaUE1y2C5sewx7L74l</mediafile_source>
            <is_streamable>FALSE</is_streamable>
            <tag></tag>
            <is_still>TRUE</is_still>
            <type>VIDEO</type>
            <metadata_id>644141</metadata_id>
            <video_codec></video_codec>
            <colorspace></colorspace>
            <width>176</width>
            <height>144</height>
            <fps></fps>
            <audio_codec></audio_codec>
            <sample_rate></sample_rate>
            <channels></channels>
            <file_duration></file_duration>
            <container_type></container_type>
            <bitrate></bitrate>
            <bpp></bpp>
            <filesize>7507</filesize>
            <mime_type>image/jpeg</mime_type>
            <is_hinted>FALSE</is_hinted>
            <is_inserted_md>FALSE</is_inserted_md>
            <still_time_code>1</still_time_code>
            <still_order>1</still_order>
            <still_type></still_type>
            <still_format>jpeg</still_format>
            <still_default>FALSE</still_default>
            <still_ticket>http://app.acceptatie.vpx.kennisnet.nl/still/JNOnZXZ4OzdmlKYLU4kmB4jz</still_ticket>
          </still>

Changed 4 years ago by Michiel.Schok

I now have confirmation about the twin stills, in combination of doubling of metadata.
When I have an asset with no stills, metadata in the /asset had only single valued 'description' and 'creator'.

After an /asset/{id}/still/create?owner_id={owner}&mediafile_id={orignial mediafile} [post]-call

actually TWO stills were created, and metadata was doubled.

If I repeat the /still/create call two more times, the /asset call leads to

...
<dublin_core>
        <type>video</type>
        <type>video</type>
        <type>video</type>
        <type>video</type>
        <type>video</type>
        <type>video</type>
        <format></format>
        <language></language>
        <title>Still testen</title>
        <title>Still testen</title>
        <title>Still testen</title>
        <title>Still testen</title>
        <title>Still testen</title>
        <title>Still testen</title>
        <creator>michiel</creator>
        <creator>michiel</creator>
        <creator>michiel</creator>
        <creator>michiel</creator>
        <creator>michiel</creator>
...

Changed 4 years ago by robert

Bug has been fixed and will be included in the next fix release. The bug, as you expected, was caused by the number of stills in the mediafile. Pre mediamosa 1.7 was always 1 still per mediafile which didn't trigger this problem.

Changed 4 years ago by Michiel.Schok

That's great news. Thanks.
Have you also checked the /asset/{id}/still/create call which I called once, and generated 2 stills?
Or should I report that in another issue?

Changed 4 years ago by robert

Can you make a new ticket for the /asset/{id}/still/create problem? Dont think the double metadata is also causing double stills.

Changed 3 years ago by forgacs

  • owner set to MC-arjen
  • status changed from new to assigned

I have checked this issue and everything is all right. There isn't duplicated metadata.

Changed 3 years ago by MC-arjen

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

MM #197 Upload: metadata was generated double; this should not occur anymore.
released in 1.7.2

Note: See TracTickets for help on using tickets.