Arelle / ixbrl-viewer

The Arelle iXBRL Viewer allows Inline XBRL (or iXBRL) reports to be viewed interactively in a web browser. The viewer allows users to access the tagged XBRL data embedded in an iXBRL report.
Other
90 stars 55 forks source link

Assets Not Copied to Temporary Directory in GUI Code Path #683

Open austinmatherne-wk opened 2 months ago

austinmatherne-wk commented 2 months ago

What happened?

When opening a report containing relative assets (such as images) via the GUI code path, the assets are not copied to the temporary directory where the viewer is created. As a result, requests for these assets return 404 errors when the viewer is opened.

Version

1.4.27

With which browsers are you experiencing the bug?

Firefox, Chrome, Safari, Microsoft Edge

Documents

XBRL.zip

Screenshots

No response

paulwarren-wk commented 1 month ago

How should this work? Discovering all such dependencies is non-trivial, as it requires scanning both the HTML and the CSS for relative links. What do we do about relative URLs that reference an ancestor directory?

For reports opened via a report package, we could potentially copy the contents of the whole package across.

austinmatherne-wk commented 1 month ago

We had a team chat about this and decided to only target report packages for now. If we need to support extracted reports, we'll likely need to perform some trickery from the web server to redirect requests to the original location