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

Generic error when publishing if there are assets that don't belong on the site #603

Open
mariosm1 opened this issue Aug 17, 2022 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@mariosm1
Copy link
Contributor

mariosm1 commented Aug 17, 2022

Affects Versions
Version 8.0.3 Build 202204R01 (118)
(have not tested on build 124)

Describe the bug
If an asset folder has permissions only on Site A, and Site B has a page that uses an asset from that folder, then publishing that page will throw a generic "error" in the front end.

To Reproduce
Steps to reproduce the behavior:

  1. Create two sites (Navigation button at the top left)
    im1
    im2

  2. Create an asset folder and add a few Rich Text assets to it.

  3. Click the asset folder, then click the Folder properties button
    2

  4. Select only one site in the permissions for that folder. Save the settings
    3

  5. In the site that you did not select for step 5, create a new page

  6. Add a new Rich Text widget to the page in the Layout view. Then switch to the Content view.

  7. Drag a Rich Text asset from the asset folder you created directly onto the page where the Rich Text widget is located

  8. Save and publish the page. Note that an "error" comes up on the page with no additional info on what went wrong.

Expected behavior
An error should come up explaining that there is an asset on the page that does not belong on the site (site doesn't have permissions on that asset folder)

@natechadwick
Copy link
Member

@matomario8 What version / build is affected by this?

@mariosm1
Copy link
Contributor Author

I updated the original post but the version where I saw the issue was Version 8.0.3 Build 202204R01 (118)

@natechadwick
Copy link
Member

Thanks

@natechadwick natechadwick added the bug Something isn't working label Aug 17, 2022
@natechadwick natechadwick added this to the 8.1.2 milestone Aug 17, 2022
@natechadwick natechadwick modified the milestones: 8.1.2, Future Aug 30, 2023
@natechadwick
Copy link
Member

It looks like this would need to get updated in multiple places:

  • drag drop of asset to widget in finder needs a check
  • jcr query in image / file list widgets
  • asset browse dfialogs on image and file widgets
  • Image slider widget

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants