Problem/Motivation

After running the media_acquiadam to acquia_dam upgrade/migration in production and setting a media type to use download method, site is seeing many/most media entities being loaded from the wrong file directory. Instead of the path being sites/default/files/dam/[asset ID value]/filename, it's sites/default/files/dam//filename -- and the file is in fact downloaded to /dam/ and not to a subdirectory based on the asset ID.

Steps to reproduce

Migrate from media_acquiadam to acquia_dam.

Proposed resolution

So it appears that we need:

  • a patch / codefix / possibly docs update to prevent this condition.
  • a patch/command/fix for the resulting problem with file paths for site.

Issue fork acquia_dam-3561930

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajeshreeputra created an issue. See original summary.

rajeshreeputra’s picture

Status: Active » Needs work

Added option to re-download assets as per requirement in Drush command.
Next action: validate UI.

rajeshreeputra’s picture

Status: Needs work » Needs review

Requesting review.

ankitv18’s picture

Status: Needs review » Needs work

Left some comment, hence moving back into NW.

rajeshreeputra’s picture

Status: Needs work » Fixed

Merged!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.