Closed r0adrunner closed 11 years ago
The problem was caused by wrap-noir-session wrapping the request before wrap-noir-flash is used. Updated the app-handler to include them in the correct order which resolves the issue.
@r0adrunner could you retest with the latest lib-noir 0.3.7 and see if the problem is resolved. I tested locally and seems to be working as expected. I updated the app-handler
to include the wrap-noir-flash
, so that you don't have to do that explicitly now:
(def app (middleware/app-handler all-routes))
BUG DESCRIPTION: Flash session storage apparently not working in lib-noir.
STEPS TO REPRODUCE:
1) For practical reasons, I'm using the scaffolding tool provided by the luminus framework:
2) Change the following in the file 'handler.clj': Add:
Comment out:
Add:
3) Change the following in the file 'routes/home.clj':
Add these dependencies:
Add these routes to the home-routes:
Add these functions:
4) Make sure changes are in effect and navigate to "http://localhost:3000/step1" and then to "http://localhost:3000/step2"
EXPECTED RESULT: "http://localhost:3000/step2" prints the word "something"
ACTUAL RESULT: "http://localhost:3000/step2" prints the word "nothing"