Uploaded image for project: 'appNG'
  1. appNG
  2. APPNG-2046

Platform scope not accessible when using multiple appNG taglets for non-privileged applications

    XMLWordPrintable

    Details

    • Type: Feature
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.15.0
    • Component/s: appng-core, appng-taglib
    • Labels:
      None

      Description

      When using multiple appNG taglets on the same JSP Page, the platform scope is no more available after the executing the first taglet.
      This is because the TagletAdapter calls ApplicationProvider.setPlatformScope before calling the TagletProcessor, which is correct, but this needs to be reset when done with the taglet.

      This leads to an NPE in RequestFactoryBean:

      2017-10-17 11:33:36,867 ERROR [ajp-nio-8109-exec-3] taglib.TagletAdapter          : Unable to load Taglet 'xxx' in application 'yyy' (path: zzz.jsp )
      java.lang.NullPointerException
      	at org.appng.api.support.RequestFactoryBean.afterPropertiesSet(RequestFactoryBean.java:90)
      	at org.appng.core.model.ApplicationProvider.getApplicationRequest(ApplicationProvider.java:804)
      	at org.appng.taglib.TagletAdapter.doEndTag(TagletAdapter.java:148)

        Attachments

          Activity

            People

            • Assignee:
              mueller.matthias Matthias Müller
              Reporter:
              mueller.matthias Matthias Müller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: