Grails
  1. Grails
  2. GRAILS-7900

Validateable classes and command objects from plugins are not automatically scanned

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.7
    • Fix Version/s: 2.0-M2
    • Component/s: None
    • Labels:
      None

      Description

      If a plugin defines command objects or @Validateable classes, the application does not evaluate these as validateable by default and the result can be very confusing error messages about missing properties as the "constraints" property remains a Closure instead of a constrainedProperties map.

      Example: plugin that has command objects and uses bean-fields. After installing this plugin the plugin's forms will not work and show obscure error about missing property.

      Recommendation: either during plugin packaging time or plugin compile time, plugin artefacts are always scanned/info put into metadata such that the application author does not need to update their Config grails.validateable.packages to make plugins work.

        Issue Links

          Activity

          Hide
          Jeff Scott Brown added a comment -

          Marc,

          I think this is has been inadvertently fixed because of GRAILS-7377. Do you concur?

          Show
          Jeff Scott Brown added a comment - Marc, I think this is has been inadvertently fixed because of GRAILS-7377 . Do you concur?
          Hide
          Jeff Scott Brown added a comment -

          Fixed along with GRAILS-7377. The component scanner is no longer relevant.

          Show
          Jeff Scott Brown added a comment - Fixed along with GRAILS-7377 . The component scanner is no longer relevant.

            People

            • Assignee:
              Jeff Scott Brown
              Reporter:
              Marc Palmer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development