Students unable to see linked public images in another site on published assessment and images don't exist in site
Description
is related to
Activity

Matthew Jones July 25, 2018 at 8:43 AM
From comments this seems to be incorporated by 11

Matthew Jones April 19, 2017 at 5:20 PM
Okay, I believe this isn't as big a deal in later versions of 11 because of
https://sakaiproject.atlassian.net/browse/SAM-2594#icft=SAM-2594 https://sakaiproject.atlassian.net/browse/SAM-2595#icft=SAM-2595 https://sakaiproject.atlassian.net/browse/SAM-2596#icft=SAM-2596
However this is still a problem on 10.x because https://sakaiproject.atlassian.net/browse/SAM-1596#icft=SAM-1596 was merged into 10. So I feel like merging https://sakaiproject.atlassian.net/browse/SAM-3186#icft=SAM-3186 into 10 is the best course of action. Any maybe just removing this eventually.

Matthew Jones February 23, 2017 at 4:20 PM
Idea for implementation:
Replace the replaceAll method in replaceSiteIdsForString with a replaceAllFn http://stackoverflow.com/a/13932688/3708872 In this method check to see if the destination actually exists (ideally through the CHS api).

Matthew Jones January 17, 2017 at 4:16 PM
I also feel like this behavior backported to 10.6 isn't great since it's functionality change in a minor release that can't be disabled. It's already coming up for some of our users.

Matthew Jones January 17, 2017 at 3:08 PM
I still feel like it's a bug so I'm reopening as the title does describe the problem. I think the solutions need to either be
Provide an option during the publish to either update (or not update) the links when publishing. I don't feel like it should be doing this automatically. We have many use cases where it shouldn't be happening automatically.
Or possibly better
Before updating the links, actually verify if the link going to be updated in https://sakaiproject.atlassian.net/browse/SAM-1596#icft=SAM-1596 exists in the destination location. If it doesn't don't do the update. It's quite possible that the students could access the link perfectly fine where it was without doing any URL rewriting.
Details
Priority
MajorComponents
Assignee
Matthew JonesMatthew JonesReporter
Derek RamseyDerek RamseyLabels
Environment
10x
trunk
Details
Details
Priority
Components
Assignee

Reporter

This may be a regression from SAM-1596.
Instructor uploads photos in site A that are publicly viewable
Instructor uses insert photo button within CKEditor in site B to link to photos in site A
In the working copy, the link to the images are correct
Once published, the image URL's update the site ID's to the new site which breaks the image