Polymer / polymer

Our original Web Component library.
https://polymer-library.polymer-project.org/
BSD 3-Clause "New" or "Revised" License
22.05k stars 2.01k forks source link

Sudden malfunction ouf our webpages : polymer 1.7.0.2 partially moved ? #5706

Open bschwarzRDR opened 1 year ago

bschwarzRDR commented 1 year ago

Hi, Some parts of the website at my workplace have started to malfunction a few days ago (lots of elements are not showing anymore in the pages.). I inspected the problem in firefox using the developer's tools (F12) and tracked down the problem to the incapacity of loading two polymer libraries (namely polymer-micro.html and paper-ripple-behavior.html in version 1.7.0.2).

I suspect the problem has something to do with the displacement of resources from an url (https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/) to another one (https://cdn.jsdelivr.net/gh/download/polymer-cdn@1.7.0.2/). Indeed, in the developer's console all of polymer resources go through a http code 301 with a redirection, except for the two aforementioned libraries which end up with an http code of 200 but whose content is empty. As these two libraries are nowhere to be seen in the source of my page, I suspect they are "collateral" imports from the polymer libraries imported (see below for a list of those.).

I am not a web developer and my analysis sadly ends here. Furthermore, our data being confidential I can't provide an access to our website.

List of polymer libraries imported in the malfunctioning page :

<!--Polymer stuff -->
<script src="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/webcomponentsjs/webcomponents-lite.min.js"></script>
<link href="qliksense-card.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/iron-flex-layout/iron-flex-layout-classes.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-header-panel/paper-header-panel.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-toolbar/paper-toolbar.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-drawer-panel/paper-drawer-panel.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-icon-button/paper-icon-button.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-button/paper-button.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/iron-icons/iron-icons.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/iron-pages/iron-pages.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-menu/paper-menu.html" rel="import">
<link href="https://cdn.rawgit.com/download/polymer-cdn/1.7.0.2/lib/paper-item/paper-item.html" rel="import">
<link href="polymer-mixins.html" rel="import">
<style include="iron-flex iron-positioning" is="custom-style"></style>
<style include="polymer-mixins" is="custom-style"></style>
bschwarzRDR commented 1 year ago

The problem was fixed by replacing old urls with the new ones in my pages. Not sure what was the problem though.