Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-837

RestPlugin supports only whole numbers as resource identifiers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 3.x Future
    • None
    • Java EE
    • None

      The RestPlugin contains the following @Path annotation:

      @Path("/{id:[0-9][0-9]*}")
      

      irrespective of the type of the JPA Entity @Id field.

      Even among the basic @Id types deemed supported by the Rest plugin, having any of the decimal types like float and double, or String, as the type of the @Id field in the JPA entity would result in generation of an incorrect REST resource.

      The regex should preferably be context-sensitive and contain a different regex for different @Id types, or be omitted altogether.

            Unassigned Unassigned
            vineet.reynolds_jira Vineet Reynolds (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: