Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-73512

In case of a request with mixed JS and CSS files, combo servlet consider all files with the extension of first one

    Details

      Description

      In case of a request with mixed JS and CSS files, combo servlet consider all files with the extension of first one.

      Steps to reproduce

      1. Open URL with JS + CSS: http://localhost:8780/combo/?browserId=firefox&minifierType=&languageId=en_US&b=7010&/o/frontend-js-web/aui/aui-url/aui-url.js&/o/frontend-js-web/aui/widget-base/assets/skins/sam/widget-base.css
        • Expected behavior: An error is produced because we are mixing file types
        • Wrong behavior: Mixed content is returned with Content-Type:text/javascript header (see in browser developer tools) and an exception is shown in log file
          10:56:11,689 ERROR [http-nio-8780-exec-4][GoogleJavaScriptMinifier:116] (/o/frontend-js-web/aui/widget-base/assets/skins/sam/widget-base.css:1): Parse error. syntax error
          10:56:11,802 ERROR [http-nio-8780-exec-4][GoogleJavaScriptMinifier:116] (/o/frontend-js-web/aui/widget-base/assets/skins/sam/widget-base.css:1): Parse error. missing ; before statement
          
      2. Open URL with CSS + JS: http://localhost:8080/combo/?browserId=firefox&minifierType=&languageId=en_US&b=7010&/o/frontend-js-web/aui/widget-base/assets/skins/sam/widget-base.css&/o/frontend-js-web/aui/aui-url/aui-url.js
        • Expected behavior: An error is produced because we are mixing file types
        • Wrong behavior: Mixed content is returned with Content-Type:text/css header (see in browser developer tools)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 17 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP25
                7.0.X EE
                7.0.4 CE GA5
                7.1.X
                Master