Adoxio / xRM-Portals-Community-Edition

The definitive edition of Microsoft Open Source Portals, supported by the experts in portals.
MIT License
107 stars 60 forks source link

Web file upload through front-side editing doesn't create a note attachment #31

Closed amervitz closed 6 years ago

amervitz commented 6 years ago

There is a bug where uploading a file through the front-side editor results in a 404 when trying to view the file afterwards. The cause appears to be due to the uploaded file being missing on the note attachment on the created Web File record.

Steps to reproduce:

  1. Login with content editing permissions
  2. Create a new child file
  3. Select a file and save the record
  4. Get a 404 when trying to view the file at the expected URL
  5. Open the web file record in Dynamics 365, see there isn't an attachment in the notes
amervitz commented 6 years ago

The issue occurs specifically on web pages where there isn't an access control rule set directly on the web page itself - i.e. on pages that are descendants of a page with an access control rule higher up in the page hierarchy.

amervitz commented 6 years ago

Fixed by commit https://github.com/Adoxio/xRM-Portals-Community-Edition/commit/11b9fa4f7836691736607ccd0494ff42ff0fa78e.