• Bootstrap Navigator icons not displaying : downloadable font: rejected by sanitizer

    By Kim Acket 9 years ago

    Error is console:

    xsp-mixin.css.css:166:2865

    downloadable font: rejected by sanitizer (font-family: “Glyphicons Halflings” style:normal weight:normal stretch:normal src index:1) source: http://antln-test.europe.jacobs.com/xsp/.ibmxspres/.mini/css/2Earesponsive/xpages/css/xsp-core.css&2Earesponsive/bootstrap-3.2.0-dist/css/bootstrap.min.css&2Earesponsive/bootstrap-3.2.0-dist/css/bootstrap-theme.min.css&2Earesponsive/dijit/dbootstrap-0.1.1/theme/dbootstrap/dbootstrap.css&2Earesponsive/xpages/fonts/glyphicons-halflings-regular.woff

    • By Aliaksandr Patapenka 9 years ago

      A hint to ExtLib developers:

      There is a problem with the link to the font file in the new xsp-mixin.css.css in the ExtLib V 11.

      I was able to fix this changing following in the xsp-mixin.css.css :

      url(../fonts/glyphicons-halflings-regular.woff)

      with

      url('/xsp/.ibmxspres/.extlib/responsive/bootstrap-3.2.0-dist/fonts/glyphicons-halflings-regular.woff')

      notice quotes and full path instead of relative paths.

      When I did this on the fly in the browser it works Ok, however this needs to be fixed in the ExtLib code so generated on the fly xsp-mixin.css.css will have correct value for woff url.

      • By B Gleeson 9 years ago

        Eureka! I think you've hit the nail on the head of the issue here, and one that was reported on the github repository. The url you mention is defined in “bootstrap.min.css” and it's a relative path to the font files. This works fine with aggregation turned off. But with aggregation turned on, the relative path will be wrong and we need the longer url you posted. I'll look into it to verify that changing the url fixes the glyphicons issue, and if it does we'll get the fix into the next extlib release.

        In the meantime you can work around it by disabling aggregation in your application's xsp.properties (in the Persistence tab, disable “Use runtime optimized JavaScript and CSS resources).

        Thanks for posting the info

        • By Kim Acket 9 years ago

          Thanks guys!!! :-)

          • By B Gleeson 9 years ago

            This issue has been fixed in release 12 of the 901 XPages Extension Library. Thanks for raising the issue with us.

            • By Shillem Volpato 9 years ago

              I don't know. I just installed release 12 but I still can't get something like glyphicon-sort-by-alphabet to work. Am I missing something?

              I'm sure I have release 12 correctly installed:

              tell http osgi ss com.ibm.xsp.extlib 30/03/2015 12:29:24 Framework is launched. 30/03/2015 12:29:24 id State Bundle 30/03/2015 12:29:24 12 ACTIVE com.ibm.xsp.extlib.mobile_9.0.1.v00_12_20150311-1316 30/03/2015 12:29:24 13 ACTIVE com.ibm.xsp.extlibx_9.0.1.v00_10_20141105-0922 30/03/2015 12:29:24 15 ACTIVE com.ibm.xsp.extlib.controls_9.0.1.v00_12_20150311-1316 30/03/2015 12:29:24 16 ACTIVE com.ibm.xsp.extlib_9.0.1.v00_12_20150311-1316 30/03/2015 12:29:24 17 ACTIVE com.ibm.xsp.extlib.relational_9.0.1.v00_12_20150311-1316 30/03/2015 12:29:24 19 ACTIVE com.ibm.xsp.extlib.domino_9.0.1.v00_12_20150311-1316 30/03/2015 12:29:24 20 <> com.ibm.xsp.extlibx.core_9.0.1.v00_10_20141105-0922 30/03/2015 12:29:24 21 ACTIVE com.ibm.xsp.extlib.oneui_9.0.1.v00_12_20150311-1316 30/03/2015 12:29:24 33 RESOLVED com.ibm.xsp.extlibx.controls_9.0.1.v00_10_20141105-0922 30/03/2015 12:29:24 36 ACTIVE com.ibm.xsp.extlib.core_9.0.1.v00_12_20150311-1316 30/03/2015 12:29:24 211 INSTALLED com.ibm.xsp.extlib.controls_9.0.1.v00_00_20150108-0821 30/03/2015 12:29:24 212 INSTALLED com.ibm.xsp.extlib.core_9.0.1.v00_00_20150108-0821 30/03/2015 12:29:24 213 INSTALLED com.ibm.xsp.extlib.domino_9.0.1.v00_00_20150108-0821 30/03/2015 12:29:24 214 INSTALLED com.ibm.xsp.extlib.mobile_9.0.1.v00_00_20150108-0821 30/03/2015 12:29:24 215 INSTALLED com.ibm.xsp.extlib.oneui_9.0.1.v00_00_20150108-0821 30/03/2015 12:29:24 216 INSTALLED com.ibm.xsp.extlib_9.0.1.v00_00_20150108-0821

              • By Shillem Volpato 9 years ago

                Nevermind… that was a browser cache problem… I forget to remember I must count to 10 before posting anything.