Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9975

Escaped symbols in workspace path brake detection of CSS url path

    XMLWordPrintable

Details

    • Hide

      1. Create workspace with whitespaces or parentheses in its name. (or it could be a folder in a project with similar name)
      2. Create a simple web page with a element with css style:

      style="background: url(WebContent/pages( 1 )/test ( pic ).png);"
      

      The idea is that the "url" should have some escaped in css symbols.
      The image should present in the specified location.
      3. Open Visual Page Editor or Preview and notice that the image is not displayed.

      Show
      1. Create workspace with whitespaces or parentheses in its name. (or it could be a folder in a project with similar name) 2. Create a simple web page with a element with css style: style= "background: url(WebContent/pages( 1 )/test ( pic ).png);" The idea is that the "url" should have some escaped in css symbols. The image should present in the specified location. 3. Open Visual Page Editor or Preview and notice that the image is not displayed.

    Description

      In some cases background image in the web file is not sown. Particularly when the path to the image is defined inside css style in "url" attribute.

      The issue happens when workspace path has symbols that shuld be escaped in css, like whitespaces, parentheses, etc: "${workspace_loc}/../runtime(2)".

      When JBDS resolves this path escaped symbols are written without any changes. It conducts to the failure that image is not displayed on the page.

      Attachments

        1. screenshot-2.jpg
          screenshot-2.jpg
          45 kB
        2. screenshot-1.jpg
          screenshot-1.jpg
          52 kB
        3. print_share_sprite.png
          print_share_sprite.png
          1 kB
        4. jbide9975windows.png
          jbide9975windows.png
          10 kB
        5. JBIDE9975.html
          0.4 kB
        6. divtag.png
          divtag.png
          47 kB
        7. bodytag.png
          bodytag.png
          38 kB
        8. _example_page.html
          147 kB

        Issue Links

          Activity

            People

              dmaliarevich_jira Denis Maliarevich (Inactive)
              vyemialyanchyk_jira Vitali Yemialyanchyk (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: