Skip to content

SdlArtwork clone issue #546

@crokita

Description

@crokita

Bug Summary

See original report from Java team

Cloning an SdlArtwork after having the artwork set its _imageRPC property (ex. through setPrimaryGraphic) gets the property passed to the clone as well. When trying to set the file name to something else and sending it again the _imageRPC is cached and will not change its value. The FileManager doesn't use _imageRPC but the text and graphic operation class does and this causes the wrong image to show up on the HMI.

Reproduction Steps

  1. Send an SdlArtwork via setPrimaryGraphic
  2. Clone the SdlArtwork
  3. Change its file name
  4. Send it again via setPrimaryGraphic

Expected Behavior:
TextAndGraphicUpdateOperation uses the new file name in its _imageRPC and the right image is uploaded

Observed Behavior:
TextAndGraphicUpdateOperation uses the old file name in its _imageRPC and the wrong image is uploaded

Which projects have you seen this bug on?

No response

JavaScript Version(s)

1.5.0

sdl_javascript Version

1.5.0

Testing Environment(s)

Manticore v2.10.0

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions