Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: Web Common

      Description

      When accessing the nighly build server, it looks like the theme generated CSS is loaded for every page.

      https://nightly.nuxeo.com/nuxeo/nxthemes-css/galaxy-styles.css?theme=galaxy&path=/nuxeo&basepath=/nuxeo&collection=default&timestamp=1411739007107

      The issue is that the timestamp=1411739007107 seems to change each time.
      The server is not in dev mode.

      The problem is not visible on demo.nuxeo.com, or on the intranet :
      => it may be related to recent changes in the trunk.

        Attachments

          Issue Links

            Activity

            Hide
            atchertchian Anahide Tchertchian added a comment -

            "cache" attribute value set in theme-view.xml is discarded.
            This is due to a mistake during the JSF2 migration (styles and resources renderers logics have been inverted).

            Also theme resources should be put back inside the h:head tag otherwise html is invalid, as script elements are located between the head and the body tag:

            <!DOCTYPE html>
            <html xmlns="http://www.w3.org/1999/xhtml"><head id="j_idt2">
                <title>Nuxeo Platform - testWorkspace2 allo quoi
                </title>
                <link rel="bookmark" href="http://localhost:8080/nuxeo/getDocument.faces?docRef=default/1:2bc0e8e7-75ca-42f3-8284-2142eedc7890" /><meta http-equiv="Content-Type" content="text/html;charset=utf-8"/><link rel="icon" href="/nuxeo/icons/favicon.png" type="image/png"/><link rel="shortcut icon" href="/nuxeo/icons/favicon.ico" type="image/x-icon"/><base href="http://localhost:8080/nuxeo/" /><meta name="gwt:property" content="locale=en_US" /><link type="text/css" rel="stylesheet" href="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/skinning.ecss?db=eAG7dPvZfwAIqAOT" /><script type="text/javascript" src="/nuxeo/javax.faces.resource/jsf.js.faces?ln=javax.faces"></script><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/jquery.js"></script><script type="text/javascript" src="/nuxeo/javax.faces.resource/select2.js.faces?ln=org.nuxeo.select2"></script><script type="text/javascript" src="/nuxeo/javax.faces.resource/select2_locale_en.js.faces?ln=org.nuxeo.select2"></script><script type="text/javascript" src="/nuxeo/javax.faces.resource/nuxeo-select2.js.faces?ln=org.nuxeo.select2"></script><script type="text/javascript" src="/nuxeo/javax.faces.resource/js/fixviewstate.js.faces"></script><script type="text/javascript" src="/nuxeo/javax.faces.resource/js/fixformtargetframeid.js.faces"></script><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/richfaces.js"></script><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/richfaces-queue.js"></script><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/richfaces-base-component.js"></script><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/log.js"></script><link type="text/css" rel="stylesheet" href="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/log.ecss?db=eAG7dPvZfwAIqAOT" /><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/richfaces-event.js"></script><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/tree.js"></script><link type="text/css" rel="stylesheet" href="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/tree.ecss?db=eAG7dPvZfwAIqAOT" /><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/jquery.position.js"></script><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/json-dom.js"></script><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/jquery.effects.core.js"></script><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/jquery.effects.highlight.js"></script><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/JQuerySpinBtn.js"></script><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/calendar-utils.js"></script><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/calendar.js"></script><link type="text/css" rel="stylesheet" href="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/calendar.ecss?db=eAG7dPvZfwAIqAOT" /><script type="text/javascript" src="/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/status.js"></script></head>
            
            ...
            
            <link type="text/css" rel="stylesheet" media="all" href="/nuxeo/nxthemes-lib/screen.css,jquery.fancybox.style.css,static-styles.css,jquery.ambiance.css,tipsy.css,magnific-popup.css,video-js.css,video-js.nx.css,videojs.thumbnails.css,opensocial-reset-fonts-grids.css,opensocial-container.css,opensocial-gadgets.css,opensocial-light-container-gadgets.css,documentRoutingGraph.css,select2.css,nxthemes.css,autosuggest.css?path=/nuxeo&amp;basepath=/nuxeo/site&amp;timestamp=1411759227388"/><script type="text/javascript"><!--
            var nxthemesPath = "/nuxeo";
            var nxthemesBasePath = "/nuxeo/site";
            var nxContextPath = "/nuxeo";
            //--></script>
            <script type="text/javascript" src="/nuxeo/nxthemes-lib/prototype.js,effects.js,dragdrop.js,seam-remote.js,bsn.AutoSuggest_2.1.3.js,foldable-box.js,window.js,window_effects.js,waitdlg.js,utils.js,jquery.fancybox.js,jquery.tools.cookie.js,fancybox-popup-utils.js,contextmenu.js,jquery.tools.focusfirst.js,jquery.hotkeys.js,sarissa-ie-workaround.js,hideableAdminMessage.js,accessKey.js,jquery.nuxeo.doubleclickshield.js,jquery.ambiance.js,jquery.nuxeo.dropdown.js,jquery.tipsy.js,jquery.magnific-popup.js,nuxeo-lightbox.js,jquery.nuxeo.cv-lightbox.js,nuxeo-documents-import.js,video-js.js,video-player-util.js,videojs.thumbnails.js,audio-player.js,opensocial-rpc-container.js,opensocial-util.js,opensocial-gadgets.js,opensocial-cookies.js,opensocial-cookiebaseduserprefstore.js,jquery.opensocial.gadget.js,automation.js,jquery.jsPlumb-1.5.1-min.js,documentRoutingGraph.js,collections2Formatter.js,jquery.ui.core.js,jquery.ui.widget.js,jquery.ui.mouse.js,jquery.ui.sortable.js,tags2Formatter.js?path=/nuxeo&amp;basepath=/nuxeo/site&amp;timestamp=1411759227388"></script><link rel="stylesheet" type="text/css" media="all" href="/nuxeo/nxthemes-css/galaxy-styles.css?theme=galaxy&amp;path=/nuxeo&amp;basepath=/nuxeo&amp;collection=default&amp;timestamp=1411759227388" />
            
            ...
            
              <body class="documentManagement galaxyDefaultCss168570246 nxStyle971743052PageFrame"><div></div>
                <table summary="" cellpadding="0" cellspacing="0" border="0" class="themeSectionFrame nxHeader">
            

            Ordering issues should be manageable through annotations on the theme jsf renderers.

            Show
            atchertchian Anahide Tchertchian added a comment - "cache" attribute value set in theme-view.xml is discarded. This is due to a mistake during the JSF2 migration (styles and resources renderers logics have been inverted). Also theme resources should be put back inside the h:head tag otherwise html is invalid, as script elements are located between the head and the body tag: <!DOCTYPE html> <html xmlns= "http: //www.w3.org/1999/xhtml" ><head id= "j_idt2" > <title>Nuxeo Platform - testWorkspace2 allo quoi </title> <link rel= "bookmark" href= "http: //localhost:8080/nuxeo/getDocument.faces?docRef= default /1:2bc0e8e7-75ca-42f3-8284-2142eedc7890" /><meta http-equiv= "Content-Type" content= "text/html;charset=utf-8" /><link rel= "icon" href= "/nuxeo/icons/favicon.png" type= "image/png" /><link rel= "shortcut icon" href= "/nuxeo/icons/favicon.ico" type= "image/x-icon" /><base href= "http://localhost:8080/nuxeo/" /><meta name= "gwt:property" content= "locale=en_US" /><link type= "text/css" rel= "stylesheet" href= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/skinning.ecss?db=eAG7dPvZfwAIqAOT" /><script type= "text/javascript" src= "/nuxeo/javax.faces.resource/jsf.js.faces?ln=javax.faces" ></script><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/jquery.js" ></script><script type= "text/javascript" src= "/nuxeo/javax.faces.resource/select2.js.faces?ln=org.nuxeo.select2" ></script><script type= "text/javascript" src= "/nuxeo/javax.faces.resource/select2_locale_en.js.faces?ln=org.nuxeo.select2" ></script><script type= "text/javascript" src= "/nuxeo/javax.faces.resource/nuxeo-select2.js.faces?ln=org.nuxeo.select2" ></script><script type= "text/javascript" src= "/nuxeo/javax.faces.resource/js/fixviewstate.js.faces" ></script><script type= "text/javascript" src= "/nuxeo/javax.faces.resource/js/fixformtargetframeid.js.faces" ></script><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/richfaces.js" ></script><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/richfaces-queue.js" ></script><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/richfaces-base-component.js" ></script><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/log.js" ></script><link type= "text/css" rel= "stylesheet" href= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/log.ecss?db=eAG7dPvZfwAIqAOT" /><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/richfaces-event.js" ></script><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/tree.js" ></script><link type= "text/css" rel= "stylesheet" href= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/tree.ecss?db=eAG7dPvZfwAIqAOT" /><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/jquery.position.js" ></script><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/json-dom.js" ></script><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/jquery.effects.core.js" ></script><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/jquery.effects.highlight.js" ></script><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/JQuerySpinBtn.js" ></script><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/calendar-utils.js" ></script><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/calendar.js" ></script><link type= "text/css" rel= "stylesheet" href= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/calendar.ecss?db=eAG7dPvZfwAIqAOT" /><script type= "text/javascript" src= "/nuxeo/org.richfaces.resources/javax.faces.resource/org.richfaces/status.js" ></script></head> ... <link type= "text/css" rel= "stylesheet" media= "all" href= "/nuxeo/nxthemes-lib/screen.css,jquery.fancybox.style.css, static -styles.css,jquery.ambiance.css,tipsy.css,magnific-popup.css,video-js.css,video-js.nx.css,videojs.thumbnails.css,opensocial-reset-fonts-grids.css,opensocial-container.css,opensocial-gadgets.css,opensocial-light-container-gadgets.css,documentRoutingGraph.css,select2.css,nxthemes.css,autosuggest.css?path=/nuxeo&amp;basepath=/nuxeo/site&amp;timestamp=1411759227388" /><script type= "text/javascript" ><!-- var nxthemesPath = "/nuxeo" ; var nxthemesBasePath = "/nuxeo/site" ; var nxContextPath = "/nuxeo" ; //--></script> <script type= "text/javascript" src= "/nuxeo/nxthemes-lib/prototype.js,effects.js,dragdrop.js,seam-remote.js,bsn.AutoSuggest_2.1.3.js,foldable-box.js,window.js,window_effects.js,waitdlg.js,utils.js,jquery.fancybox.js,jquery.tools.cookie.js,fancybox-popup-utils.js,contextmenu.js,jquery.tools.focusfirst.js,jquery.hotkeys.js,sarissa-ie-workaround.js,hideableAdminMessage.js,accessKey.js,jquery.nuxeo.doubleclickshield.js,jquery.ambiance.js,jquery.nuxeo.dropdown.js,jquery.tipsy.js,jquery.magnific-popup.js,nuxeo-lightbox.js,jquery.nuxeo.cv-lightbox.js,nuxeo-documents- import .js,video-js.js,video-player-util.js,videojs.thumbnails.js,audio-player.js,opensocial-rpc-container.js,opensocial-util.js,opensocial-gadgets.js,opensocial-cookies.js,opensocial-cookiebaseduserprefstore.js,jquery.opensocial.gadget.js,automation.js,jquery.jsPlumb-1.5.1-min.js,documentRoutingGraph.js,collections2Formatter.js,jquery.ui.core.js,jquery.ui.widget.js,jquery.ui.mouse.js,jquery.ui.sortable.js,tags2Formatter.js?path=/nuxeo&amp;basepath=/nuxeo/site&amp;timestamp=1411759227388" ></script><link rel= "stylesheet" type= "text/css" media= "all" href= "/nuxeo/nxthemes-css/galaxy-styles.css?theme=galaxy&amp;path=/nuxeo&amp;basepath=/nuxeo&amp;collection= default &amp;timestamp=1411759227388" /> ... <body class= "documentManagement galaxyDefaultCss168570246 nxStyle971743052PageFrame" ><div></div> <table summary= "" cellpadding=" 0 " cellspacing=" 0 " border=" 0 " class=" themeSectionFrame nxHeader"> Ordering issues should be manageable through annotations on the theme jsf renderers.
            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in nuxeo-jsf-master #2289
            NXP-15365: fix inverted resourecs and strylesheets renderers logics, resulting in loss of cache for resources (jenkins: 3ef77ae55b8fcd2cba8e99409cb05d630c046d4b)
            NXP-15365: make sure resources tags added by theme are inside the page body element (jenkins: b7ed1345e4314aeb1f95f298359c5176583b5122)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in nuxeo-jsf-master #2289 NXP-15365 : fix inverted resourecs and strylesheets renderers logics, resulting in loss of cache for resources (jenkins: 3ef77ae55b8fcd2cba8e99409cb05d630c046d4b ) NXP-15365 : make sure resources tags added by theme are inside the page body element (jenkins: b7ed1345e4314aeb1f95f298359c5176583b5122 )
            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in nuxeo-master #455
            NXP-15365: fix inverted resourecs and strylesheets renderers logics, resulting in loss of cache for resources (jenkins: 3ef77ae55b8fcd2cba8e99409cb05d630c046d4b)
            NXP-15365: make sure resources tags added by theme are inside the page body element (jenkins: b7ed1345e4314aeb1f95f298359c5176583b5122)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in nuxeo-master #455 NXP-15365 : fix inverted resourecs and strylesheets renderers logics, resulting in loss of cache for resources (jenkins: 3ef77ae55b8fcd2cba8e99409cb05d630c046d4b ) NXP-15365 : make sure resources tags added by theme are inside the page body element (jenkins: b7ed1345e4314aeb1f95f298359c5176583b5122 )
            Hide
            hudson Jenkins added a comment -

            FAILURE: Integrated in nuxeo-master-fullbuild-part1-multidb-windows #1100
            NXP-15365: fix inverted resourecs and strylesheets renderers logics, resulting in loss of cache for resources (jenkins: 3ef77ae55b8fcd2cba8e99409cb05d630c046d4b)
            NXP-15365: make sure resources tags added by theme are inside the page body element (jenkins: b7ed1345e4314aeb1f95f298359c5176583b5122)

            Show
            hudson Jenkins added a comment - FAILURE: Integrated in nuxeo-master-fullbuild-part1-multidb-windows #1100 NXP-15365 : fix inverted resourecs and strylesheets renderers logics, resulting in loss of cache for resources (jenkins: 3ef77ae55b8fcd2cba8e99409cb05d630c046d4b ) NXP-15365 : make sure resources tags added by theme are inside the page body element (jenkins: b7ed1345e4314aeb1f95f298359c5176583b5122 )

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: