Uploaded image for project: 'Tiles'
  1. Tiles
  2. TILES-487

BaseLocaleUrlDefinitionDAO not stripping tab and newline chars from file resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.1.3
    • None
    • tiles-core
    • None
    • Windows

    • Patch

    Description

      Seems to be a bug with BaseLocaleUrlDefinitionDAO used by TilesConfigurer when using auto code formatting in IDE's such as eclipse.

      The following code has tab / new line characters that are not stripped off in the BaseLocaleUrlDefinitionDAO.identifySources applicationContext.getResources(resources[i]) (line 188) call.

      End result is that a FileNotFoundException is thrown (value is /WEB-INF/layouts/layouts.xml\n\t\t\t\t).

      <bean class="org.springframework.web.servlet.view.tiles2.TilesConfigurer"
      id="tilesConfigurer">
      <property name="definitions">
      <list>
      <value>/WEB-INF/layouts/layouts.xml
      </value>
      <!-- Scan views directory for Tiles configurations -->
      <value>/WEB-INF/views/**/views.xml
      </value>
      </list>
      </property>
      </bean>

      Attachments

        Activity

          People

            Unassigned Unassigned
            travisjwarren Travis Warren
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: