-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Production issue with CDTS - Header and Foot saving as SFG files #8966
Comments
Thank you for flagging this issue! We have initiated necessary work in order to resolve it as quickly as possible. |
Curiously, the following page that use CDTS template work fine: https://cenw-wscoe.github.io/sgdc-cdts/docs/index-en.html |
CDTS has not released a new version in a while. I was able to reproduce your bug. However, Looking at the html source code of your site it appears you are using version 26 of CDTS. CDTS is currently at version 32.
I also noticed something odd, the file it's prompting me to save on my computer "sig-blk-en.svg" is set to use version 25. Please try using version 4.0.32 and let me know if that worked. Thanks, |
Is the plan to fix this regression and not serve up the new response headers for the SVG files? From what I can tell everything worked fine till the web server started returning a content-disposition header set to attachment and also x-frame-options set to sameorigin. Or are we expected to upgrade legacy applications to 4.0.32 to fix this? |
That page uses an img vs. object from what I see in our site.
|
Thanks for the additional troubleshooting info. @duboisp Do you know if some settings changed on canada.ca web servers ? It's odd that an older version of CDTS stopped working as expected. |
Yes we have updated the The issue is the image is blocked when it's loaded from an object element. ref. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options I am going to look today if we can add an exception for those svg file. |
You could look also in the same time for support of WOOF2 from the server (Referrer Policyno-referrer-when-downgrade ) https://www.perpetual-beta.org/weblog/the-curious-case-of-tls-and-the-missing-referrers.html |
It's seems fixed now |
Folks, I am have expericed this issue consistantly recently. Colleagues of mine tell me that the SVG file is prompting a 'NS_BINDING_ABORTED' message while it unsuccessfully caches the SVG logo. Best, Please visit: canada.ca/commemorative-map |
Which browser/tools your colleague has used Is it Firefox? and what is the version? |
Latest version of Firefox Developer However, this issues also occurs with Chrome and Explorer |
@duboisp is it fixed for all servers including nhdc310.hrdc-drhc.net ? Also some CSP have been adding @jeanbenoitrochon Issue is that security has been upgraded but not CDTS. FYI |
@duboisp is it fixed for all servers including nhdc310.hrdc-drhc.net ? Also some CSP have been adding @jeanbenoitrochon Issue is that security has been upgraded but not CDTS. |
@StdGit |
@mcharala FWIW the SVGs on that page seem to be working properly for me. Their HTTP response headers are using The only thing I noticed is that the static HTML fallbacks for that page's CDTS implementation are still using |
@mcharala I don't think the issue is on your end. I think that what is happening is that security(CSP) has changed on one of the server and your browser is trying to download it Firefox tried to download the first time. https://www.canada.ca/etc/designs/canada/cdts/gcweb/v4_0_32/assets/wmms-blk.svg Some ref Another issue could be the format of the svg And you have this error
|
@EricDunsworth @StdGit Thank you for the recommendations. I will make sure my colleagues double back and fix the character encoding. |
@mcharala Probably It is on cdts side, not your code :-) |
What did you replace and with what? :-) |
I disagree :-) The issue is still there. Image is displayed now but the browser tries also to download it. I think it could be related to
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade-Insecure-Requests But definitively a change in the server or Browsers. Not the code :-)
|
FWIW those SVG files are currently being served to me using @duboisp @GormFrank Thoughts? |
The latest update to the CDTS common header and footers appears to have introduced a bug. Our production application (link below) as well dev instances are failing to load header and footers properly. They are resulting in Images saved to users local machine as SVG files.
This is an urgent issues as it affecting production application . Likely many application are impacted.
Most users only see the issues after they clear the cache and recieve the latest CDTS templates.
George
Here a link to our production Applicaiotn
https://nnhpd-pla-dlmm-dpsnso.hc-sc.gc.ca/pla-dlmm/
The text was updated successfully, but these errors were encountered: