Affects Version/s: 6.2.X EE, 7.0.1 CE GA2
If there are any existing "DL File Entries" and a web content template contains any of the following patterns, then when exporting the template in a LAR, an invalid DL File Entry will be retrieved and the LAR will contain a missing reference.
Possible such patterns:
"<context-path>/c/document_library/get_file?", "<context-path>/documents/", or "<context-path>/image/image_gallery?"
Steps to reproduce:
1. Create a new Web Content Structure
2. Create a new Web Content Template based on the web content structure in step 1, containing the following: #"/image/image_gallery?img_id="+$unexecutedCodeHere()
3. Export the Web Content portlet from the Control Panel
4. Export the Web Content portlet again and examine the LAR file's manifest.xml
Expected result: the LAR file simply contains references to the exported structure and template
Actual result: the LAR file contains these references, but also contains a missing reference to an invalid DL File (an export background task), which will prevent importing the LAR properly
Reproduced in 6.2.x: 844d3250b19d4a16e0a77bd5f00d45a84e16639d
Reproduced in master: 7825119a3b081e38367eebf351bd1a8e0590110f