Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2656

Disabling strict CSS URL rewriting still throws exceptions for non-existing files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.6.2, 5.7.0
    • tapestry-core
    • None

    Description

      When running Tapestry with tapestry.strict-css-url-rewriting set to false, you still get a exception when you have an url(some/url/file.css) which points to a non-existing file. 

       

      java.lang.RuntimeException: Unable to locate asset 'classpath:oup/images/btn_bkg_library.gif' (the file does not exist).java.lang.RuntimeException: Unable to locate asset 'classpath:oup/images/btn_bkg_library.gif' (the file does not exist). at org.apache.tapestry5.internal.services.AssetSourceImpl.getLocalizedAssetFromResource(AssetSourceImpl.java:390) at org.apache.tapestry5.internal.services.AssetSourceImpl.getAssetInLocale(AssetSourceImpl.java:305) at org.apache.tapestry5.internal.services.AssetSourceImpl.getAsset(AssetSourceImpl.java:131) at $AssetSource_16ab12558976.getAsset(Unknown Source) at org.apache.tapestry5.internal.services.assets.CSSURLRewriter.replaceURLs(CSSURLRewriter.java:177)

      Attachments

        Activity

          People

            thiagohp Thiago Henrique De Paula Figueiredo
            thiagohp Thiago Henrique De Paula Figueiredo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: