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

roo generated controllers and scaffolding is unable to support non-numeric keys

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0.M3
    • Fix Version/s: 1.1.0.RC1
    • Component/s: WEB MVC
    • Labels:
      None
    • Environment:
      all

      Description

      I created a few entities and I annotated one of my entity attributes with the @Id annotation and I took off the autogenerated annotation. I let roo regen the jspx and controller scaffolding and everything seemed fine until I tried to enter a string into the key that contained a "/" in it. The entity is called gl and the key is called glAccount. When I attempt to enter the gl of "A/R", the post (create) controller fires as it should then it redirects to "redirect:/gl/"+entity.getGlAccount(); which ends up having a url of GET("/gl/A/R") which should be "/gl/A%2fR". Please update the scaffolding to escape the id values when creating links in the tagx files and in the controllers.

        Attachments

          Activity

            People

            Assignee:
            sschmidt Stefan Schmidt
            Reporter:
            solid Matt Young
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: