Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed EZP-31639: media and file fields not loaded correctly in edit mode #1391

Merged
merged 2 commits into from
May 29, 2020
Merged

Fixed EZP-31639: media and file fields not loaded correctly in edit mode #1391

merged 2 commits into from
May 29, 2020

Conversation

adamwojs
Copy link
Member

@adamwojs adamwojs commented May 26, 2020

Question Answer
Tickets https://jira.ez.no/browse/EZP-31639
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

TL;DR: URLs to binary content of ezmedia/ezfile fields used in ezplatform-admin-ui should generated in scope of the current siteaccess, otherwise additional auth. might be required if resource is not public available e.g. specific versions (sessions are not shared between siteaccesses by default).

Alternative solution

  1. Pass siteaccess parameter explicitly to ez_content_download route to force url generation in specific siteaccess. it's not as easy as it sounds see ez_content_download_field_id route

  2. Create dedicated download controller for ezplatform-admin-ui (ez_content_download is designed to be used in frontend)

Known issues

Issue discovered while testing: the content preview / edit view doesn't take current translation language into account when displaying field value. We need follow up story here.

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@adamwojs adamwojs added the Bug label May 26, 2020
@adamwojs adamwojs self-assigned this May 26, 2020
@adamwojs adamwojs changed the title Fixed EZP-31639: mdia and file fields not loaded correctly in edit mode Fixed EZP-31639: media and file fields not loaded correctly in edit mode May 26, 2020
@adamwojs adamwojs marked this pull request as ready for review May 27, 2020 08:16
Co-authored-by: Andrew Longosz <alongosz@users.noreply.github.com>
Copy link
Member

@mnocon mnocon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue is gone, so +1

But except for:

Issue discovered while testing: the content preview / edit view doesn't take current translation language into account when displaying field value. We need follow up story here.

it looks like there is another issue, is something wrong related to drafts - when while editing Content a new video is added and Content is saved as a draft the previous video is still displayed.

I will create the follow ups so we can investigate it.

@lserwatka lserwatka merged commit 5d1568f into ezsystems:1.5 May 29, 2020
@lserwatka
Copy link
Member

@mnocon could you add ticket for this follow up here?

@mnocon
Copy link
Member

mnocon commented May 29, 2020

@lserwatka The ticket is here: https://jira.ez.no/browse/EZP-31660

@adamwojs adamwojs deleted the ezp-31639 branch May 29, 2020 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

6 participants