In the request above, the client cloned a book from an open source network (https://digitaleditions.library.dal.ca/environmentalscience/) to a Pressbooks-operated network (https://caul-cbua.pressbooks.pub/environmentalscience/). Upon doing so, the client realized that, although the images still show up on the cloned book, only thirteen images were cloned into the media library from the original and the rest were still referencing the images from the original book. All of the images which did not clone successfully appear to have been edited on the server, which adds additional info to the image URL. This issue able to be reproduced locally: https://integrations.pressbooks.network/environmentalscience/
Description
This unexpected cloning routine was identified in this client correspondence: https://pressbooks.zendesk.com/agent/tickets/3927
In the request above, the client cloned a book from an open source network (https://digitaleditions.library.dal.ca/environmentalscience/) to a Pressbooks-operated network (https://caul-cbua.pressbooks.pub/environmentalscience/). Upon doing so, the client realized that, although the images still show up on the cloned book, only thirteen images were cloned into the media library from the original and the rest were still referencing the images from the original book. All of the images which did not clone successfully appear to have been edited on the server, which adds additional info to the image URL. This issue able to be reproduced locally: https://integrations.pressbooks.network/environmentalscience/
Steel has investigated a little bit and has guessed that this may occur when the image is altered on the Pressbooks platform in the original. Here is corresponding code from the cloning routine: https://github.com/pressbooks/pressbooks/blob/fb9320e3af09ddd3373a19f5b37d2feba07736c2/inc/cloner/class-cloner.php#L741-L754
From the original book:
Steps to Reproduce
Expected behavior: All images upon cloning should go in the media library
Actual behavior: Only certain images cloned into the media library, other images were left out.