Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CustomContentHandler for ReEntry
#9
(05-18-2019, 09:22 PM)Erwin_Mouthaan Wrote: Same problem here. Also, if on ServerController the AllowMultipleSessionsPerUser is True, the Session ID is duplicated in URL.

Bug can easily be reproduced with ContentHandlers demo.
https://github.com/Atozed/IntraWeb/tree/...ntHandlers

Steps to reproduce:
  1. set AllowMultipleSessionsPerUser on ServerController
  2. Run ContentHandlers demo
  3. Click for example button "Call Red Form (uses TContentForm class)"
  4. Click button "Back to Main Form"
URL in browser contains Session ID twice.


In ContentHandlers demo the TContentForm is registered with an empty path parameter:
Code:
  THandlers.Add( '' , 'redform.html' , TContentForm.Create( TRedForm ) )

But, if AllowMultipleSessionsPerUser is false, and content handler is registered with non-empty path parameter, it results in 404 error.
Code:
  THandlers.Add( '/mypath/' , 'redform.html' , TContentForm.Create( TRedForm ) );


Custom Content Handlers is powerful feature in IntraWeb. In our project we have TContentForm descendant to dynamically show an IWForm depending on query string in URL. It is comparable with DynamicContentWithHandlers demo to show different kind of reports, but with TContentForm instead. Bugfix or workaround appreciated.

Hi Erwin,

I can confirm that a bug exists if you set AllowMultipleSessionsPerUser and include a path to the form.

This is already fixed in our code base and we'll release an update soon. Not sure if a viable workaround exists, unless you modify IW.Content.Form.pas and build it yourself...
Reply


Messages In This Thread
RE: CustomContentHandler for ReEntry - by kudzu - 04-04-2019, 12:10 AM
RE: CustomContentHandler for ReEntry - by Alexandre Machado - 05-22-2019, 10:41 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)