Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-347

TilesOperations fails on Windows with spaces in path and also consumes root exceptions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0.RC2
    • Fix Version/s: 1.0.0.RC3
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      If you run script vote.roo on Windows from an empty directory that appears in a path containing a space, you get:

      java.lang.IllegalStateException: Unable to parse the tiles C:\springsource\roo-1
      .0.0.RC2\vote 3\src\main\webapp\WEB-INF\views\views.xml file
      at org.springframework.roo.addon.mvc.jsp.TilesOperations.<init>(TilesOperations.java:94)
      at org.springframework.roo.addon.security.SecurityOperations.installSecurity(SecurityOperations.java:87)

      The real root exception is also swallowed by the handling approach of:

      } catch (Exception e) {
      throw new IllegalStateException("Unable to parse the tiles " + viewFile + " file");
      }

      It would probably be useful to retain the root exception and pass it to the IllegalStateException constructor.

        Attachments

          Activity

            People

            • Assignee:
              sschmidt Stefan Schmidt
              Reporter:
              balex Ben Alex
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: