Uploaded image for project: 'Magnolia Groovy Module'
  1. Magnolia Groovy Module
  2. MGNLGROOVY-179

Groovy Classes representing Servlet or Filter are not reloaded upon scripts changed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an issue
    • Neutral
    • None
    • None
    • None
    • None
    • Yes
    • Foundation 7
    • 1

    Description

      Reproduce steps:

      • Create a new Groovy Class for testing such as this one:
        scripts.info.xml
      • Note that we put it under correct folder structure as below:
      • Configure our servlet accordingly as below
        config.server.filters.servlets.TestServlet.yaml
      • Test the servlet that it is running fine
      • 1st try: Change the script then try again the servlet
      • The issue is the response has not been updated accordingly, it is still `Requesting /1234` after my changes.

      -> Expected result is that our Groovy Class Loader will reload the classes upon scripts changed.

      Checklists

        Acceptance criteria

        Attachments

          1. change-it.png
            change-it.png
            249 kB
          2. config.server.filters.servlets.TestServlet.yaml
            0.3 kB
          3. running.png
            running.png
            47 kB
          4. scripts.info.xml
            5 kB
          5. test-servlet.png
            test-servlet.png
            94 kB

          Activity

            People

              fgrilli Federico Grilli
              viet.nguyen Viet Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 3h
                    3h