mxp1988 / epubcheck

Automatically exported from code.google.com/p/epubcheck
MIT License
0 stars 0 forks source link

Remote resource error when not using data attribute on object #249

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If you embed a Flash video like this:

<object type="application/x-shockwave-flash" width="300" height="400">
   <param name="movie" value="https://www.youtube.com/v/xyz?version=3" />
</object>

And report in the manifest that the containing file contains a remote resource, 
epubcheck throws an error. It's looking for @data, so doesn't see the remote 
resource in the movie param.

Original issue reported on code.google.com by mgarrish on 6 Feb 2013 at 3:23

GoogleCodeExporter commented 8 years ago
It also doesn't register https:// resources as being remote.

Original comment by mgarrish on 6 Feb 2013 at 3:34

GoogleCodeExporter commented 8 years ago
It also throws an error that '?' is an invalid OPF file name, but the character 
name restrictions in OCF s. 2.4 are only for resources within the container, 
aren't they?

Wouldn't web-hosted resources fall outside of this requirement, or should the 
spec be loosened?

Original comment by mgarrish on 6 Feb 2013 at 4:46

GoogleCodeExporter commented 8 years ago
switch 'file name' with 'file name character'

Original comment by mgarrish on 6 Feb 2013 at 4:47

GoogleCodeExporter commented 8 years ago

Original comment by markus.g...@gmail.com on 26 Mar 2013 at 12:37

GoogleCodeExporter commented 8 years ago

Original comment by markus.g...@gmail.com on 26 Mar 2013 at 12:38

GoogleCodeExporter commented 8 years ago
The issue is quite tricky, as there is no way to know how 3d-party plugins are 
using `param` elements to refer to resources.

One way to mitigate the issue is to add a special case for 
"application/x-shockwave-flash" objects.

But otherwise, it seems to me that checking the validity (i.e. legitimacy) of 
the "remote-resources" property is somehow impossible. WDYT ?

Original comment by rdeltour@gmail.com on 27 Mar 2013 at 1:55

GoogleCodeExporter commented 8 years ago
I'll create dedicated issues for the "https" and file name character issues.

Original comment by rdeltour@gmail.com on 27 Mar 2013 at 1:56

GoogleCodeExporter commented 8 years ago
Proposed resolution: report a WARNING that no remote resource reference has 
been found.

Original comment by rdeltour@gmail.com on 29 Mar 2013 at 2:55

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r456.

Original comment by rdeltour@gmail.com on 29 Mar 2013 at 2:57