Hello,
I'm not exactly sure how to start debuging that, so I would love
to have any help.
So, I have an application that after session creation (user
login), I get an HTTP 404 for
https://myapp/lift/page/F8011079085101U1U3W.js (where
'F8011079085101U1U3W' is the value in data-lift-gc in
<body data-lift-session-id="xxx" data-lift-gc="F8011079085101U1U3W").
If I reload the page, everything is working fine (and the
new /lift/page/xxxx.js page is correctly served). If I logout
and login again => same error.
I was working fine in a previous version of the app using the
same version of liftweb (3.0.2), so it may not be directly related
to lift, but I have no idea where to start looking for.
On the server, I only get, even with "trace" logs for liftweb:
[2018-03-23 14:55:53] INFO net.liftweb.util.TimeHelpers - Service request (GET) /rudder-web/lift/page/F8011079085101U1U3W.js returned 404, took 5 Milliseconds
Any insight would be much appreciated.-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
Other JS/CSS resources are found (we use a "cache" system that
generate unique URL by version of our app to control cache
invalidation on browser side), so it does not seems to be a
problem with lift backend at that moment.
Interestingly, if I try to do several redicts with different
sessions cleaning (I though it was linked to lift session
creation, some kind of race condition), each time the JS is
correctly loaded:
LiftRules.statelessDispatch.append { case Req("secure" :: "redirect" :: Nil, _, GetRequest) => () => Full(RedirectResponse(REDIRECT_URL)) } LiftRules.dispatch.append { case Req("secure" :: "destroy0" :: Nil, _, GetRequest) => S.request.foreach(_.request.session.terminate) () => Full(RedirectResponse(REDIRECT_URL)) case Req("secure" :: "destroy1" :: Nil, _, GetRequest) => S.session.foreach( _.destroySession) () => Full(RedirectResponse(REDIRECT_URL)) case Req("secure" :: "destroy2" :: Nil, _, GetRequest) => S.session.foreach( _.destroySessionAndContinueInNewSession(() => S.redirectTo(REDIRECT_URL))) () => Full(RedirectResponse(REDIRECT_URL)) }
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
def findFunc(funcName: String): Option[S.AFuncHolder] = Option(messageCallback.get(funcName))(called in RenderVersion.doWith(..)) returns None. In the case where the JS is correctly loaded, the messageCallback map contains the method.
We tested different jetty version with eclipse "run-jetty-run" plugin, so it was exactly the same code with different jetty server.
In all case, just after sesssion creation+redirect => JS problem. Just hitting f5 is ok. So yes, same session, same server, same everything.
Have you any idea to debug that? I have zero idea right now :/
lo
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
Cheers!
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
-- Francois ARMAND - @fanf42 https://github.com/Normation/rudder http://www.normation.com
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.