Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1393

POST request from a non-JSF to a JSF page fails with when ds:windowId is used

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • JSF-Module
    • Security Level: public (Regular issues)
    • None

    Description

      When doing a POST request to a JSF page, I'm getting the following exception.

      This worked before withouth the ds:windowId tag. I will provide a PR showing the issue, but I'm not sure how this can be fixed yet. Obviously, one should use a GET request, but I have some legacy code that uses POST and it's hard to identify all cases. Would be great if we could solve this for other people.

      org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type org.apache.deltaspike.core.api.scope.WindowScoped
       at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:689)
       at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.getIfExists(ContextualInstanceStrategy.java:90)
       at org.jboss.weld.bean.ContextualInstance.getIfExists(ContextualInstance.java:63)
       at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:83)
       at org.jboss.weld.bean.proxy.ProxyMethodHandler.getInstance(ProxyMethodHandler.java:125)
       at org.apache.deltaspike.jsf.impl.token.PostRequestTokenManager$Proxy$_$$_WeldClientProxy.createNewToken(Unknown Source)

      Attachments

        Issue Links

          Activity

            People

              struberg Mark Struberg
              christian.beikov Christian Beikov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m