Bug 1234615: Check that resized image files are viewable by user
When exporting via Html export process - if not then ignore the file
To test:
1) Add an image block/file to a page and set a width value
2) Go into db block_instance table and change the artefactid to an
image that is owned by another user
3) Reload the page - you should see the image block but not the
attached image
4) Export the page as HTML, either as full or standalone
Before patch - you will end up with image file in the files/extra/
directory
After patch - you should not get the image in the files/extra/
directory and you should get an info warning 'Unable to copy artefact
file ***' on export page.
behatnotneeded
Change-Id: Iaeb9404b3329c4eb3eac59354801b598f7cd5ba8
Signed-off-by: Robert Lyon <email address hidden>
Reviewed: https:/ /reviews. mahara. org/6692 /git.mahara. org/mahara/ mahara/ commit/ 36ab4bffb02b1a4 f43ed1a5fd20dcc ad4a18d642
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: 16.04_STABLE
commit 36ab4bffb02b1a4 f43ed1a5fd20dcc ad4a18d642
Author: Robert Lyon <email address hidden>
Date: Fri Jul 8 11:02:22 2016 +1200
Bug 1234615: Check that resized image files are viewable by user
When exporting via Html export process - if not then ignore the file
To test:
1) Add an image block/file to a page and set a width value
2) Go into db block_instance table and change the artefactid to an
image that is owned by another user
3) Reload the page - you should see the image block but not the
attached image
4) Export the page as HTML, either as full or standalone
Before patch - you will end up with image file in the files/extra/
directory
After patch - you should not get the image in the files/extra/
directory and you should get an info warning 'Unable to copy artefact
file ***' on export page.
behatnotneeded
Change-Id: Iaeb9404b3329c4 eb3eac59354801b 598f7cd5ba8
Signed-off-by: Robert Lyon <email address hidden>