[Lift] Re: Lift security vulnerability
Thanks Joni! I appreciate the sample code. Dan On Mar 7, 8:10 am, Joni Freeman freeman.j...@gmail.com wrote: Note, it is very easy to clean up the JSON before rendering by using 'map' function: json map { case JString(s) = JString(sripOutBinaryChars(s)) case x = x } (You just need to implement that sripOutBinaryChars function...). Cheers Joni On Mar 5, 8:26 pm, Dano olearydani...@gmail.com wrote: I think I would like to amend my last post by asking if it is possible that the lift-jsonlibrary support the ability to strip out binary characters since many times an application uses the results ofJSON operations to render back to the client. Thanks. Dan On Mar 5, 9:53 am, Dano olearydani...@gmail.com wrote: I can reproduce it in our application, but I think it is not necessarily due to Lift. This is what I am trying to sort out. We have client-side javascript which is sendingJSONcommands to the server and things blow up once things come back from the server. In this case, Lift is not responsible for the rendering so I would say this is an application issue. I am poking at the demo lift application to try to flush out issues common to the group and understand what is a framework issue and what needs to be addressed by the application. Thanks. Dan On Mar 5, 9:47 am, Naftoli Gugenheim naftoli...@gmail.com wrote: Can you reproduce the vulnerability in your own M3 app? - Danoolearydani...@gmail.com wrote: I would never claim to be astute. However, I did observe that demo.liftweb.net is now built using 2.0-M3 as is clearly listed at the bottom of the page. I also observed that the Wizard example is still broken (paste binary characters into 'First Name' and then click the Next button). I have not yet registered for an account with Assembla but would be happy to file the bug. Dan On Mar 4, 7:33 pm, Ross Mellgren dri...@gmail.com wrote: Check dpp's response as of 8:01 -Ross On Mar 4, 2010, at 7:49 PM, Naftoli Gugenheim wrote: What version is the demo running? - Danoolearydani...@gmail.com wrote: Just saw that Lift 2.0-M3 was released. I looked to see if the vulnerability was still present in demo.liftweb.net and I am still able to generate exceptions in the browser when I paste binary characters in the textfields for the Wizard, Wizard Challenge, and Arc Challenge examples in the Misc section. Don't know if this remaining problem is supposed to be handled by the application or framework, but thought I would make a post to alert the group. Dan On Feb 24, 11:49 am, Dano olearydani...@gmail.com wrote: The recent scala days conference activity may have cause the updates to this thread to escape notice. Just wondering if there is concern about the remaining binary character problems I noted in my prior post. Thanks in advance. Dan On Feb 22, 1:34 pm, Dano olearydani...@gmail.com wrote: More information on this in case anyone is interested. If you go to theliftdemo website, it appears the issue with characters is mostly addressed except for the Misc code section. Specifically, the Wizard, Wizard Challenge and Arc Challenge #1 examples will generate XML parsing errors. For these problems, I am not sure if the issue if the example or the framework. If the issue is with the example, it would be good to know whatLiftapps need to do to avoid getting bitten by binary characters entered into form fields. Thanks in advance. Dan On Feb 17, 11:06 am, Dano olearydani...@gmail.com wrote: Hello, I was wondering if the fix for the control characters issue was included in 2.0-M2. I just did a test with ourLiftapplication built with 2.0-M2 and I am still seeing problems (i.e. javascript exceptions - NS_ERROR_INVALID_POINTER). Thanks in advance. Dan On Feb 3, 9:08 am, David Pollak feeder.of.the.be...@gmail.com wrote: Thanks for pointing that out. There are other problems as well... I'll fix them (in both the Scala andLiftdiffs) On Wed, Feb 3, 2010 at 7:39 AM, Feng Zhang sharpzh...@gmail.com wrote: I found that in the fix, \n is changed to \t, while \t to \n. Is this desired behavior? Thank you, Feng On Wed, Feb 3, 2010 at 9:20 AM, Indrajit Raychaudhuri indraj...@gmail.com wrote: 1. Fix in head/master (2.0-SNAPSHOT) and prepone 2.0-M2. 2. Backport in 1.0.x branch and spin 1.0.4. We haven't marked 1.0.x 'unsupported' yet. Forcing apps to move to 2.0-M2
[Lift] Re: Lift security vulnerability
I would never claim to be astute. However, I did observe that demo.liftweb.net is now built using 2.0-M3 as is clearly listed at the bottom of the page. I also observed that the Wizard example is still broken (paste binary characters into 'First Name' and then click the Next button). I have not yet registered for an account with Assembla but would be happy to file the bug. Dan On Mar 4, 7:33 pm, Ross Mellgren dri...@gmail.com wrote: Check dpp's response as of 8:01 -Ross On Mar 4, 2010, at 7:49 PM, Naftoli Gugenheim wrote: What version is the demo running? - Danoolearydani...@gmail.com wrote: Just saw that Lift 2.0-M3 was released. I looked to see if the vulnerability was still present in demo.liftweb.net and I am still able to generate exceptions in the browser when I paste binary characters in the textfields for the Wizard, Wizard Challenge, and Arc Challenge examples in the Misc section. Don't know if this remaining problem is supposed to be handled by the application or framework, but thought I would make a post to alert the group. Dan On Feb 24, 11:49 am, Dano olearydani...@gmail.com wrote: The recent scala days conference activity may have cause the updates to this thread to escape notice. Just wondering if there is concern about the remaining binary character problems I noted in my prior post. Thanks in advance. Dan On Feb 22, 1:34 pm, Dano olearydani...@gmail.com wrote: More information on this in case anyone is interested. If you go to theliftdemo website, it appears the issue with characters is mostly addressed except for the Misc code section. Specifically, the Wizard, Wizard Challenge and Arc Challenge #1 examples will generate XML parsing errors. For these problems, I am not sure if the issue if the example or the framework. If the issue is with the example, it would be good to know whatLiftapps need to do to avoid getting bitten by binary characters entered into form fields. Thanks in advance. Dan On Feb 17, 11:06 am, Dano olearydani...@gmail.com wrote: Hello, I was wondering if the fix for the control characters issue was included in 2.0-M2. I just did a test with ourLiftapplication built with 2.0-M2 and I am still seeing problems (i.e. javascript exceptions - NS_ERROR_INVALID_POINTER). Thanks in advance. Dan On Feb 3, 9:08 am, David Pollak feeder.of.the.be...@gmail.com wrote: Thanks for pointing that out. There are other problems as well... I'll fix them (in both the Scala andLiftdiffs) On Wed, Feb 3, 2010 at 7:39 AM, Feng Zhang sharpzh...@gmail.com wrote: I found that in the fix, \n is changed to \t, while \t to \n. Is this desired behavior? Thank you, Feng On Wed, Feb 3, 2010 at 9:20 AM, Indrajit Raychaudhuri indraj...@gmail.com wrote: 1. Fix in head/master (2.0-SNAPSHOT) and prepone 2.0-M2. 2. Backport in 1.0.x branch and spin 1.0.4. We haven't marked 1.0.x 'unsupported' yet. Forcing apps to move to 2.0-M2 just for this vulnerability fix isn't fun. Cheers, Indrajit On 03/02/10 3:34 PM, Timothy Perrett wrote: +1 Fix it in head, no need to back-port; M2 is only around the corner. Cheers, Tim On 3 Feb 2010, at 09:49, Jeppe Nejsum Madsen wrote: David Pollakfeeder.of.the.be...@gmail.com writes: I'd like to get a sense of how important the community views this defect. Is it a backport the fix to every milestone and release yesterday or is it a fix it in 2.0-M2 or someplace in between. For me, it's fix it in 2.0-SNAPSHOT /Jeppe -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received
[Lift] Re: Lift security vulnerability
I can reproduce it in our application, but I think it is not necessarily due to Lift. This is what I am trying to sort out. We have client-side javascript which is sending JSON commands to the server and things blow up once things come back from the server. In this case, Lift is not responsible for the rendering so I would say this is an application issue. I am poking at the demo lift application to try to flush out issues common to the group and understand what is a framework issue and what needs to be addressed by the application. Thanks. Dan On Mar 5, 9:47 am, Naftoli Gugenheim naftoli...@gmail.com wrote: Can you reproduce the vulnerability in your own M3 app? - Danoolearydani...@gmail.com wrote: I would never claim to be astute. However, I did observe that demo.liftweb.net is now built using 2.0-M3 as is clearly listed at the bottom of the page. I also observed that the Wizard example is still broken (paste binary characters into 'First Name' and then click the Next button). I have not yet registered for an account with Assembla but would be happy to file the bug. Dan On Mar 4, 7:33 pm, Ross Mellgren dri...@gmail.com wrote: Check dpp's response as of 8:01 -Ross On Mar 4, 2010, at 7:49 PM, Naftoli Gugenheim wrote: What version is the demo running? - Danoolearydani...@gmail.com wrote: Just saw that Lift 2.0-M3 was released. I looked to see if the vulnerability was still present in demo.liftweb.net and I am still able to generate exceptions in the browser when I paste binary characters in the textfields for the Wizard, Wizard Challenge, and Arc Challenge examples in the Misc section. Don't know if this remaining problem is supposed to be handled by the application or framework, but thought I would make a post to alert the group. Dan On Feb 24, 11:49 am, Dano olearydani...@gmail.com wrote: The recent scala days conference activity may have cause the updates to this thread to escape notice. Just wondering if there is concern about the remaining binary character problems I noted in my prior post. Thanks in advance. Dan On Feb 22, 1:34 pm, Dano olearydani...@gmail.com wrote: More information on this in case anyone is interested. If you go to theliftdemo website, it appears the issue with characters is mostly addressed except for the Misc code section. Specifically, the Wizard, Wizard Challenge and Arc Challenge #1 examples will generate XML parsing errors. For these problems, I am not sure if the issue if the example or the framework. If the issue is with the example, it would be good to know whatLiftapps need to do to avoid getting bitten by binary characters entered into form fields. Thanks in advance. Dan On Feb 17, 11:06 am, Dano olearydani...@gmail.com wrote: Hello, I was wondering if the fix for the control characters issue was included in 2.0-M2. I just did a test with ourLiftapplication built with 2.0-M2 and I am still seeing problems (i.e. javascript exceptions - NS_ERROR_INVALID_POINTER). Thanks in advance. Dan On Feb 3, 9:08 am, David Pollak feeder.of.the.be...@gmail.com wrote: Thanks for pointing that out. There are other problems as well... I'll fix them (in both the Scala andLiftdiffs) On Wed, Feb 3, 2010 at 7:39 AM, Feng Zhang sharpzh...@gmail.com wrote: I found that in the fix, \n is changed to \t, while \t to \n. Is this desired behavior? Thank you, Feng On Wed, Feb 3, 2010 at 9:20 AM, Indrajit Raychaudhuri indraj...@gmail.com wrote: 1. Fix in head/master (2.0-SNAPSHOT) and prepone 2.0-M2. 2. Backport in 1.0.x branch and spin 1.0.4. We haven't marked 1.0.x 'unsupported' yet. Forcing apps to move to 2.0-M2 just for this vulnerability fix isn't fun. Cheers, Indrajit On 03/02/10 3:34 PM, Timothy Perrett wrote: +1 Fix it in head, no need to back-port; M2 is only around the corner. Cheers, Tim On 3 Feb 2010, at 09:49, Jeppe Nejsum Madsen wrote: David Pollakfeeder.of.the.be...@gmail.com writes: I'd like to get a sense of how important the community views this defect. Is it a backport the fix to every milestone and release yesterday or is it a fix it in 2.0-M2 or someplace in between. For me, it's fix it in 2.0-SNAPSHOT /Jeppe -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups Lift group. To post
[Lift] Re: Lift security vulnerability
I think I would like to amend my last post by asking if it is possible that the lift-json library support the ability to strip out binary characters since many times an application uses the results of JSON operations to render back to the client. Thanks. Dan On Mar 5, 9:53 am, Dano olearydani...@gmail.com wrote: I can reproduce it in our application, but I think it is not necessarily due to Lift. This is what I am trying to sort out. We have client-side javascript which is sending JSON commands to the server and things blow up once things come back from the server. In this case, Lift is not responsible for the rendering so I would say this is an application issue. I am poking at the demo lift application to try to flush out issues common to the group and understand what is a framework issue and what needs to be addressed by the application. Thanks. Dan On Mar 5, 9:47 am, Naftoli Gugenheim naftoli...@gmail.com wrote: Can you reproduce the vulnerability in your own M3 app? - Danoolearydani...@gmail.com wrote: I would never claim to be astute. However, I did observe that demo.liftweb.net is now built using 2.0-M3 as is clearly listed at the bottom of the page. I also observed that the Wizard example is still broken (paste binary characters into 'First Name' and then click the Next button). I have not yet registered for an account with Assembla but would be happy to file the bug. Dan On Mar 4, 7:33 pm, Ross Mellgren dri...@gmail.com wrote: Check dpp's response as of 8:01 -Ross On Mar 4, 2010, at 7:49 PM, Naftoli Gugenheim wrote: What version is the demo running? - Danoolearydani...@gmail.com wrote: Just saw that Lift 2.0-M3 was released. I looked to see if the vulnerability was still present in demo.liftweb.net and I am still able to generate exceptions in the browser when I paste binary characters in the textfields for the Wizard, Wizard Challenge, and Arc Challenge examples in the Misc section. Don't know if this remaining problem is supposed to be handled by the application or framework, but thought I would make a post to alert the group. Dan On Feb 24, 11:49 am, Dano olearydani...@gmail.com wrote: The recent scala days conference activity may have cause the updates to this thread to escape notice. Just wondering if there is concern about the remaining binary character problems I noted in my prior post. Thanks in advance. Dan On Feb 22, 1:34 pm, Dano olearydani...@gmail.com wrote: More information on this in case anyone is interested. If you go to theliftdemo website, it appears the issue with characters is mostly addressed except for the Misc code section. Specifically, the Wizard, Wizard Challenge and Arc Challenge #1 examples will generate XML parsing errors. For these problems, I am not sure if the issue if the example or the framework. If the issue is with the example, it would be good to know whatLiftapps need to do to avoid getting bitten by binary characters entered into form fields. Thanks in advance. Dan On Feb 17, 11:06 am, Dano olearydani...@gmail.com wrote: Hello, I was wondering if the fix for the control characters issue was included in 2.0-M2. I just did a test with ourLiftapplication built with 2.0-M2 and I am still seeing problems (i.e. javascript exceptions - NS_ERROR_INVALID_POINTER). Thanks in advance. Dan On Feb 3, 9:08 am, David Pollak feeder.of.the.be...@gmail.com wrote: Thanks for pointing that out. There are other problems as well... I'll fix them (in both the Scala andLiftdiffs) On Wed, Feb 3, 2010 at 7:39 AM, Feng Zhang sharpzh...@gmail.com wrote: I found that in the fix, \n is changed to \t, while \t to \n. Is this desired behavior? Thank you, Feng On Wed, Feb 3, 2010 at 9:20 AM, Indrajit Raychaudhuri indraj...@gmail.com wrote: 1. Fix in head/master (2.0-SNAPSHOT) and prepone 2.0-M2. 2. Backport in 1.0.x branch and spin 1.0.4. We haven't marked 1.0.x 'unsupported' yet. Forcing apps to move to 2.0-M2 just for this vulnerability fix isn't fun. Cheers, Indrajit On 03/02/10 3:34 PM, Timothy Perrett wrote: +1 Fix it in head, no need to back-port; M2 is only around the corner. Cheers, Tim On 3 Feb 2010, at 09:49, Jeppe Nejsum Madsen wrote: David Pollakfeeder.of.the.be...@gmail.com writes: I'd like to get a sense of how important the community views this defect. Is it a backport the fix to every milestone and release yesterday or is it a fix it in 2.0-M2 or someplace in between. For me, it's fix it in 2.0-SNAPSHOT /Jeppe -- You received this message because you are subscribed
[Lift] Re: Lift security vulnerability
I should have been more clear on 'pasting binary characters'. At the url http://www.webmasterworld.com/forum39/1098.htm, they talk about an issue with binary characters. I copied the 'square character' text (which I have confirmed are binary) from that page into the Wizard example on the demo lift site. As to JSON, our client side code is sending JSON containing what the user entered in the form. Based on the above, it sounds like we should strip the binary characters when processing the JSON commands. Thanks. Dan On Mar 5, 10:49 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Mar 5, 2010 at 10:26 AM, Dano olearydani...@gmail.com wrote: I think I would like to amend my last post by asking if it is possible that the lift-json library support the ability to strip out binary characters since many times an application uses the results of JSON operations to render back to the client. Control characters are legal in JSON so it's not the place of the library to strip out control characters. If you're sending JSON strings that are supposed to be valid XHTML, then it's up to your app to make sure the Strings are valid. If you are using Scala's XML literals and toString, you are hitting a bug in the XML libraries that render incorrect Strings. I have fixed the bug in the 2.8 branch, but there's no practical way to go back and make the fix part of 2.7.x. If you use Lift's AltXML library to convert the XML to String. Lift's library also has the patch to ensure that XML - String is valid per this W3C page:http://www.w3.org/International/questions/qa-controls Thanks. Dan On Mar 5, 9:53 am, Dano olearydani...@gmail.com wrote: I can reproduce it in our application, but I think it is not necessarily due to Lift. This is what I am trying to sort out. We have client-side javascript which is sending JSON commands to the server and things blow up once things come back from the server. In this case, Lift is not responsible for the rendering so I would say this is an application issue. I am poking at the demo lift application to try to flush out issues common to the group and understand what is a framework issue and what needs to be addressed by the application. Thanks. Dan On Mar 5, 9:47 am, Naftoli Gugenheim naftoli...@gmail.com wrote: Can you reproduce the vulnerability in your own M3 app? - Danoolearydani...@gmail.com wrote: I would never claim to be astute. However, I did observe that demo.liftweb.net is now built using 2.0-M3 as is clearly listed at the bottom of the page. I also observed that the Wizard example is still broken (paste binary characters into 'First Name' and then click the Next button). I have not yet registered for an account with Assembla but would be happy to file the bug. Dan On Mar 4, 7:33 pm, Ross Mellgren dri...@gmail.com wrote: Check dpp's response as of 8:01 -Ross On Mar 4, 2010, at 7:49 PM, Naftoli Gugenheim wrote: What version is the demo running? - Danoolearydani...@gmail.com wrote: Just saw that Lift 2.0-M3 was released. I looked to see if the vulnerability was still present in demo.liftweb.net and I am still able to generate exceptions in the browser when I paste binary characters in the textfields for the Wizard, Wizard Challenge, and Arc Challenge examples in the Misc section. Don't know if this remaining problem is supposed to be handled by the application or framework, but thought I would make a post to alert the group. Dan On Feb 24, 11:49 am, Dano olearydani...@gmail.com wrote: The recent scala days conference activity may have cause the updates to this thread to escape notice. Just wondering if there is concern about the remaining binary character problems I noted in my prior post. Thanks in advance. Dan On Feb 22, 1:34 pm, Dano olearydani...@gmail.com wrote: More information on this in case anyone is interested. If you go to theliftdemo website, it appears the issue with characters is mostly addressed except for the Misc code section. Specifically, the Wizard, Wizard Challenge and Arc Challenge #1 examples will generate XML parsing errors. For these problems, I am not sure if the issue if the example or the framework. If the issue is with the example, it would be good to know whatLiftapps need to do to avoid getting bitten by binary characters entered into form fields. Thanks in advance. Dan On Feb 17, 11:06 am, Dano olearydani...@gmail.com wrote: Hello, I was wondering if the fix for the control characters issue was included in 2.0-M2. I just did a test with ourLiftapplication built
[Lift] Re: Lift security vulnerability
Just saw that Lift 2.0-M3 was released. I looked to see if the vulnerability was still present in demo.liftweb.net and I am still able to generate exceptions in the browser when I paste binary characters in the textfields for the Wizard, Wizard Challenge, and Arc Challenge examples in the Misc section. Don't know if this remaining problem is supposed to be handled by the application or framework, but thought I would make a post to alert the group. Dan On Feb 24, 11:49 am, Dano olearydani...@gmail.com wrote: The recent scala days conference activity may have cause the updates to this thread to escape notice. Just wondering if there is concern about the remaining binary character problems I noted in my prior post. Thanks in advance. Dan On Feb 22, 1:34 pm, Dano olearydani...@gmail.com wrote: More information on this in case anyone is interested. If you go to theliftdemo website, it appears the issue with characters is mostly addressed except for the Misc code section. Specifically, the Wizard, Wizard Challenge and Arc Challenge #1 examples will generate XML parsing errors. For these problems, I am not sure if the issue if the example or the framework. If the issue is with the example, it would be good to know whatLiftapps need to do to avoid getting bitten by binary characters entered into form fields. Thanks in advance. Dan On Feb 17, 11:06 am, Dano olearydani...@gmail.com wrote: Hello, I was wondering if the fix for the control characters issue was included in 2.0-M2. I just did a test with ourLiftapplication built with 2.0-M2 and I am still seeing problems (i.e. javascript exceptions - NS_ERROR_INVALID_POINTER). Thanks in advance. Dan On Feb 3, 9:08 am, David Pollak feeder.of.the.be...@gmail.com wrote: Thanks for pointing that out. There are other problems as well... I'll fix them (in both the Scala andLiftdiffs) On Wed, Feb 3, 2010 at 7:39 AM, Feng Zhang sharpzh...@gmail.com wrote: I found that in the fix, \n is changed to \t, while \t to \n. Is this desired behavior? Thank you, Feng On Wed, Feb 3, 2010 at 9:20 AM, Indrajit Raychaudhuri indraj...@gmail.com wrote: 1. Fix in head/master (2.0-SNAPSHOT) and prepone 2.0-M2. 2. Backport in 1.0.x branch and spin 1.0.4. We haven't marked 1.0.x 'unsupported' yet. Forcing apps to move to 2.0-M2 just for this vulnerability fix isn't fun. Cheers, Indrajit On 03/02/10 3:34 PM, Timothy Perrett wrote: +1 Fix it in head, no need to back-port; M2 is only around the corner. Cheers, Tim On 3 Feb 2010, at 09:49, Jeppe Nejsum Madsen wrote: David Pollakfeeder.of.the.be...@gmail.com writes: I'd like to get a sense of how important the community views this defect. Is it a backport the fix to every milestone and release yesterday or is it a fix it in 2.0-M2 or someplace in between. For me, it's fix it in 2.0-SNAPSHOT /Jeppe -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Lift security vulnerability
The recent scala days conference activity may have cause the updates to this thread to escape notice. Just wondering if there is concern about the remaining binary character problems I noted in my prior post. Thanks in advance. Dan On Feb 22, 1:34 pm, Dano olearydani...@gmail.com wrote: More information on this in case anyone is interested. If you go to the lift demo website, it appears the issue with characters is mostly addressed except for the Misc code section. Specifically, the Wizard, Wizard Challenge and Arc Challenge #1 examples will generate XML parsing errors. For these problems, I am not sure if the issue if the example or the framework. If the issue is with the example, it would be good to know what Lift apps need to do to avoid getting bitten by binary characters entered into form fields. Thanks in advance. Dan On Feb 17, 11:06 am, Dano olearydani...@gmail.com wrote: Hello, I was wondering if the fix for the control characters issue was included in 2.0-M2. I just did a test with our Lift application built with 2.0-M2 and I am still seeing problems (i.e. javascript exceptions - NS_ERROR_INVALID_POINTER). Thanks in advance. Dan On Feb 3, 9:08 am, David Pollak feeder.of.the.be...@gmail.com wrote: Thanks for pointing that out. There are other problems as well... I'll fix them (in both the Scala and Lift diffs) On Wed, Feb 3, 2010 at 7:39 AM, Feng Zhang sharpzh...@gmail.com wrote: I found that in the fix, \n is changed to \t, while \t to \n. Is this desired behavior? Thank you, Feng On Wed, Feb 3, 2010 at 9:20 AM, Indrajit Raychaudhuri indraj...@gmail.com wrote: 1. Fix in head/master (2.0-SNAPSHOT) and prepone 2.0-M2. 2. Backport in 1.0.x branch and spin 1.0.4. We haven't marked 1.0.x 'unsupported' yet. Forcing apps to move to 2.0-M2 just for this vulnerability fix isn't fun. Cheers, Indrajit On 03/02/10 3:34 PM, Timothy Perrett wrote: +1 Fix it in head, no need to back-port; M2 is only around the corner. Cheers, Tim On 3 Feb 2010, at 09:49, Jeppe Nejsum Madsen wrote: David Pollakfeeder.of.the.be...@gmail.com writes: I'd like to get a sense of how important the community views this defect. Is it a backport the fix to every milestone and release yesterday or is it a fix it in 2.0-M2 or someplace in between. For me, it's fix it in 2.0-SNAPSHOT /Jeppe -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Lift security vulnerability
More information on this in case anyone is interested. If you go to the lift demo website, it appears the issue with characters is mostly addressed except for the Misc code section. Specifically, the Wizard, Wizard Challenge and Arc Challenge #1 examples will generate XML parsing errors. For these problems, I am not sure if the issue if the example or the framework. If the issue is with the example, it would be good to know what Lift apps need to do to avoid getting bitten by binary characters entered into form fields. Thanks in advance. Dan On Feb 17, 11:06 am, Dano olearydani...@gmail.com wrote: Hello, I was wondering if the fix for the control characters issue was included in 2.0-M2. I just did a test with our Lift application built with 2.0-M2 and I am still seeing problems (i.e. javascript exceptions - NS_ERROR_INVALID_POINTER). Thanks in advance. Dan On Feb 3, 9:08 am, David Pollak feeder.of.the.be...@gmail.com wrote: Thanks for pointing that out. There are other problems as well... I'll fix them (in both the Scala and Lift diffs) On Wed, Feb 3, 2010 at 7:39 AM, Feng Zhang sharpzh...@gmail.com wrote: I found that in the fix, \n is changed to \t, while \t to \n. Is this desired behavior? Thank you, Feng On Wed, Feb 3, 2010 at 9:20 AM, Indrajit Raychaudhuri indraj...@gmail.com wrote: 1. Fix in head/master (2.0-SNAPSHOT) and prepone 2.0-M2. 2. Backport in 1.0.x branch and spin 1.0.4. We haven't marked 1.0.x 'unsupported' yet. Forcing apps to move to 2.0-M2 just for this vulnerability fix isn't fun. Cheers, Indrajit On 03/02/10 3:34 PM, Timothy Perrett wrote: +1 Fix it in head, no need to back-port; M2 is only around the corner. Cheers, Tim On 3 Feb 2010, at 09:49, Jeppe Nejsum Madsen wrote: David Pollakfeeder.of.the.be...@gmail.com writes: I'd like to get a sense of how important the community views this defect. Is it a backport the fix to every milestone and release yesterday or is it a fix it in 2.0-M2 or someplace in between. For me, it's fix it in 2.0-SNAPSHOT /Jeppe -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] Re: Lift security vulnerability
Hello, I was wondering if the fix for the control characters issue was included in 2.0-M2. I just did a test with our Lift application built with 2.0-M2 and I am still seeing problems (i.e. javascript exceptions - NS_ERROR_INVALID_POINTER). Thanks in advance. Dan On Feb 3, 9:08 am, David Pollak feeder.of.the.be...@gmail.com wrote: Thanks for pointing that out. There are other problems as well... I'll fix them (in both the Scala and Lift diffs) On Wed, Feb 3, 2010 at 7:39 AM, Feng Zhang sharpzh...@gmail.com wrote: I found that in the fix, \n is changed to \t, while \t to \n. Is this desired behavior? Thank you, Feng On Wed, Feb 3, 2010 at 9:20 AM, Indrajit Raychaudhuri indraj...@gmail.com wrote: 1. Fix in head/master (2.0-SNAPSHOT) and prepone 2.0-M2. 2. Backport in 1.0.x branch and spin 1.0.4. We haven't marked 1.0.x 'unsupported' yet. Forcing apps to move to 2.0-M2 just for this vulnerability fix isn't fun. Cheers, Indrajit On 03/02/10 3:34 PM, Timothy Perrett wrote: +1 Fix it in head, no need to back-port; M2 is only around the corner. Cheers, Tim On 3 Feb 2010, at 09:49, Jeppe Nejsum Madsen wrote: David Pollakfeeder.of.the.be...@gmail.com writes: I'd like to get a sense of how important the community views this defect. Is it a backport the fix to every milestone and release yesterday or is it a fix it in 2.0-M2 or someplace in between. For me, it's fix it in 2.0-SNAPSHOT /Jeppe -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.comliftweb%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/liftweb?hl=en. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
[Lift] build issue - javax.mail - is anyone having this problem?
Hello, We did a build this morning and are getting an error from maven on the javax.mail dependency (see below). We are currently referencing version 1.4. It seems to get this from the central maven repository (http://repo2.maven.org/maven2). The site appears to be up and has version 1.4. Did anyone else have this problem? If so, is there a pom.xml change which solves this issue? Thanks in advance. Dan mvn -U clean install Picked up JAVA_TOOL_OPTIONS: -Xms128m -Xmx768m [INFO] Scanning for projects... [INFO] [INFO] Building InnovationGames [INFO]task-segment: [clean, install] [INFO] [INFO] artifact org.mortbay.jetty:maven-jetty-plugin: checking for updates from scala-tools.org [INFO] artifact org.mortbay.jetty:maven-jetty-plugin: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin: checking for updates from scala-tools.org [INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin: checking for updates from central [INFO] [clean:clean] [INFO] Deleting directory /home/doleary/ptpt2/trunk/baf/target [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] snapshot net.liftweb:lift-util:1.1-SNAPSHOT: checking for updates from scala-tools.org [INFO] snapshot net.liftweb:lift-util:1.1-SNAPSHOT: checking for updates from scala-tools.org.snapshots [INFO] snapshot net.liftweb:lift-base:1.1-SNAPSHOT: checking for updates from scala-tools.org [INFO] snapshot net.liftweb:lift-base:1.1-SNAPSHOT: checking for updates from scala-tools.org.snapshots [INFO] snapshot net.liftweb:lift:1.1-SNAPSHOT: checking for updates from scala-tools.org [INFO] snapshot net.liftweb:lift:1.1-SNAPSHOT: checking for updates from scala-tools.org.snapshots [INFO] snapshot net.liftweb:lift-actor:1.1-SNAPSHOT: checking for updates from scala-tools.org [INFO] snapshot net.liftweb:lift-actor:1.1-SNAPSHOT: checking for updates from scala-tools.org.snapshots [INFO] snapshot net.liftweb:lift-common:1.1-SNAPSHOT: checking for updates from scala-tools.org [INFO] snapshot net.liftweb:lift-common:1.1-SNAPSHOT: checking for updates from scala-tools.org.snapshots [INFO] artifact javax.mail:mail: checking for updates from scala- tools.org [INFO] artifact javax.mail:mail: checking for updates from scala- tools.org.snapshots [INFO] artifact javax.mail:mail: checking for updates from central [INFO] artifact javax.activation:activation: checking for updates from scala-tools.org [INFO] artifact javax.activation:activation: checking for updates from scala-tools.org.snapshots [INFO] artifact javax.activation:activation: checking for updates from central [INFO] snapshot net.liftweb:lift-paypal:1.1-SNAPSHOT: checking for updates from scala-tools.org [INFO] snapshot net.liftweb:lift-paypal:1.1-SNAPSHOT: checking for updates from scala-tools.org.snapshots [INFO] snapshot net.liftweb:lift-modules:1.1-SNAPSHOT: checking for updates from scala-tools.org [INFO] snapshot net.liftweb:lift-modules:1.1-SNAPSHOT: checking for updates from scala-tools.org.snapshots [INFO] snapshot net.liftweb:lift-webkit:1.1-SNAPSHOT: checking for updates from scala-tools.org [INFO] snapshot net.liftweb:lift-webkit:1.1-SNAPSHOT: checking for updates from scala-tools.org.snapshots [INFO] snapshot net.liftweb:lift-mapper:1.1-SNAPSHOT: checking for updates from scala-tools.org [INFO] snapshot net.liftweb:lift-mapper:1.1-SNAPSHOT: checking for updates from scala-tools.org.snapshots [INFO] snapshot net.liftweb:lift-persistence:1.1-SNAPSHOT: checking for updates from scala-tools.org [INFO] snapshot net.liftweb:lift-persistence:1.1-SNAPSHOT: checking for updates from scala-tools.org.snapshots [INFO] snapshot net.liftweb:lift-widgets:1.1-SNAPSHOT: checking for updates from scala-tools.org [INFO] snapshot net.liftweb:lift-widgets:1.1-SNAPSHOT: checking for updates from scala-tools.org.snapshots [INFO] snapshot net.liftweb:lift-textile:1.1-SNAPSHOT: checking for updates from scala-tools.org [INFO] snapshot net.liftweb:lift-textile:1.1-SNAPSHOT: checking for updates from scala-tools.org.snapshots [INFO] artifact org.mortbay.jetty:jetty: checking for updates from scala-tools.org [INFO] artifact org.mortbay.jetty:jetty: checking for updates from scala-tools.org.snapshots [INFO] artifact org.mortbay.jetty:jetty: checking for updates from central [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [scala:compile {execution: default}] [INFO] suggestion: remove the scalaVersion from pom.xml [INFO] Checking for multiple versions of scala [INFO] [ERROR] FATAL ERROR [INFO] [INFO] version was null for javax.mail:mail [INFO]
[Lift] Cannot build our lift app. Is net.liftweb.util OK?
Hello Lifters, After doing my morning build (mvn -U clean install), I am getting a huge number of errors mostly related to net.liftweb.util (see below). We are building against 1.1-SNAPSHOT. Is anyone else having this problem? Thanks in advance. Dan [INFO] Compiling 113 source files to C:\sandboxes\igo\trunk\baf\target \classes [WARNING] C:\sandboxes\igo\trunk\baf\src\main\scala\bootstrap\liftweb \Boot.scala:43: error: not found: value Full [WARNING] case _ = Full(DocType.xhtmlStrict) [WARNING] ^ [WARNING] C:\sandboxes\igo\trunk\baf\src\main\scala\com\enthiosys \buyafeature\lib\PlexusMagic.scala:23: error: Failure is not a member of net.liftweb.util [WARNING] import net.liftweb.util.{Failure = BoxFailure} [WARNING]^ [WARNING] C:\sandboxes\igo\trunk\baf\src\main\scala\bootstrap\liftweb \Boot.scala:73: error: not found: value Empty [WARNING] LiftRules.xhtmlValidator = Empty [WARNING] ^ [WARNING] C:\sandboxes\igo\trunk\baf\src\main\scala\bootstrap\liftweb \Boot.scala:77: error: type mismatch; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Cannot build our lift app. Is net.liftweb.util OK?
I see that there is a similar issue posted against the thread New update changed something?. I will monitor the progress of that thread as well. Dan On Oct 22, 9:16 am, Dano olearydani...@gmail.com wrote: Hello Lifters, After doing my morning build (mvn -U clean install), I am getting a huge number of errors mostly related to net.liftweb.util (see below). We are building against 1.1-SNAPSHOT. Is anyone else having this problem? Thanks in advance. Dan [INFO] Compiling 113 source files to C:\sandboxes\igo\trunk\baf\target \classes [WARNING] C:\sandboxes\igo\trunk\baf\src\main\scala\bootstrap\liftweb \Boot.scala:43: error: not found: value Full [WARNING] case _ = Full(DocType.xhtmlStrict) [WARNING] ^ [WARNING] C:\sandboxes\igo\trunk\baf\src\main\scala\com\enthiosys \buyafeature\lib\PlexusMagic.scala:23: error: Failure is not a member of net.liftweb.util [WARNING] import net.liftweb.util.{Failure = BoxFailure} [WARNING] ^ [WARNING] C:\sandboxes\igo\trunk\baf\src\main\scala\bootstrap\liftweb \Boot.scala:73: error: not found: value Empty [WARNING] LiftRules.xhtmlValidator = Empty [WARNING] ^ [WARNING] C:\sandboxes\igo\trunk\baf\src\main\scala\bootstrap\liftweb \Boot.scala:77: error: type mismatch; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: **Breaking Changes** **README** **Important**
It would be good to have an example like George's verified as it is not clear how to convert our Actor code. Dan On Oct 22, 4:48 am, george geo...@mattandgeorge.com wrote: ok so.. object LocalSmtp extends Actor should become object LocalSmtp extends GenericActor[LocalSmtp] ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: **Breaking Changes** **README** **Important**
I did a quick check in the lift sources and could not find example or test code for the new LiftActors. Perhaps additions to these areas would help those that are trying to convert their Actor code. Thanks in advance for any help for those still struggling to make the conversion. Dan On Oct 22, 10:00 am, Dano olearydani...@gmail.com wrote: It would be good to have an example like George's verified as it is not clear how to convert our Actor code. Dan On Oct 22, 4:48 am, george geo...@mattandgeorge.com wrote: ok so.. object LocalSmtp extends Actor should become object LocalSmtp extends GenericActor[LocalSmtp] ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: **Breaking Changes** **README** **Important**
Code for our app now compiles. Needed to replace Actor with LiftActor. Also, needed to define the messageHandler partial function. So, George, I think the answer to your question is: object LocalSmtp extends Actor becomes object LocalSmtp extends LiftActor Dan On Oct 22, 11:19 am, Dano olearydani...@gmail.com wrote: I did a quick check in the lift sources and could not find example or test code for the new LiftActors. Perhaps additions to these areas would help those that are trying to convert their Actor code. Thanks in advance for any help for those still struggling to make the conversion. Dan On Oct 22, 10:00 am, Dano olearydani...@gmail.com wrote: It would be good to have an example like George's verified as it is not clear how to convert our Actor code. Dan On Oct 22, 4:48 am, george geo...@mattandgeorge.com wrote: ok so.. object LocalSmtp extends Actor should become object LocalSmtp extends GenericActor[LocalSmtp] ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: **Important** Migration guide Scala Actors - Lift Actors
Thanks to David for the migration guide. It is very useful. Victor Klang had raised the issue of rescheduling the actor in the message handling function (see below). I did not see a reference to this in the migration guide. Is it still necessary? Thanks in advance. Dan Text from Victor Klang on breaking change thread: DPP (and I) recommend just doing schedule and then re-schedule after message recieved. schedule(actor,MyMsg(),3 seconds) in the actor { case MyMsg() = { doMyStuff schedule(this,MyMsg(),3 seconds) } } On Oct 22, 12:14 pm, TylerWeir tyler.w...@gmail.com wrote: Stickied for now, until we think it's no longer an issue. On Oct 22, 2:57 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Folks, I wrote a quick blog piece about migrating from Scala Actors to Lift Actors athttp://blog.lostlake.org/index.php?/archives/96-Migrating-from-Scala-... I hope this addresses questions that folks on the list have about the affirmative steps they need to take to make the migration. Thanks, David -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: SessionVar.remove() not clearing out the variable
I have done some experimenting to set the session variable to Empty in various places the following result: Code called by the framework (i.e. Actor.shutdown()) will properly have the right context for a Session variable. Code called by the application does not have the right context for the session variable (i.e. it is Empty when I expect it to have a value). Although I am still interested in a way to reset all values for a SessionVar (especially from application code), I have something that works for me in the short term. Dan On Sep 22, 8:50 pm, Dano olearydani...@gmail.com wrote: Marius, Thanks for your reply. If I look in my pom.xml, I see that I am using 1.1-SNAPSHOT. However, I see your point about the remove() function not being in Vars.scala. Not sure why I am able to compile a call to remove() on a SessionVar - but it does! My goal is to clear out the SessionVar for all sessions tied to the variable so that I can return the Session to the state it was at the beginning of time (at least with respect to the SessionVars). I have an object contained within a LiftView class called PartyLobbyUser: class GameView extends LiftView { object PartyLobbyUser extends SessionVar[Box[UserInfo]](Empty) ... } This object is set in code called by the GameView.dispatch() function and then referenced later by some comet actors. I think the problem I am having is that since a SessionVar is essentially a thread local variable, I need to clear it (i.e. do something like PartyLobbyUser (Empty) ) in the right place. Perhaps the right context is to do this in the shutdown function of the comet actors since they are able to reference the variable and get the correct data (ie. via PartyLobbyUser.is). I will try that and report back. Thanks again for your help. Dan On Sep 22, 7:03 pm, marius d. marius.dan...@gmail.com wrote: On Sep 22, 8:13 pm, Dano olearydani...@gmail.com wrote: Hello Lifters, I am struggling with trying to clear out a SessionVar which holds user information which I need to clear out after the user has left a 'lobby' page. When I call the remove() function, I verify that the SessionVar is Empty. However, when I click on the URL for the lobby page with new parameters, the SessionVar retains the old values for each session. It is as if they were repopulated. Perhaps I am not understanding out the function works. When I look at the source code (Vars.scala), it seems like it is clearing out the state for each session. The remove() function calls clearFunc(). override protected def clearFunc(name: String): Unit = S.session.foreach(_.unset(name)) No not for each session. S.session returns a Box which has a foreach function, it does not iterate through all sessions. Which Lift version are you using? .. there is no remove function in Vars in 1.1-SNAPSHOT version. Can you post some code to show where you are setting values on your SessionVar and where are you deleting them? Is there something I am missing? Thanks in advance. Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] SessionVar.remove() not clearing out the variable
Hello Lifters, I am struggling with trying to clear out a SessionVar which holds user information which I need to clear out after the user has left a 'lobby' page. When I call the remove() function, I verify that the SessionVar is Empty. However, when I click on the URL for the lobby page with new parameters, the SessionVar retains the old values for each session. It is as if they were repopulated. Perhaps I am not understanding out the function works. When I look at the source code (Vars.scala), it seems like it is clearing out the state for each session. The remove() function calls clearFunc(). override protected def clearFunc(name: String): Unit = S.session.foreach(_.unset(name)) Is there something I am missing? Thanks in advance. Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: SessionVar.remove() not clearing out the variable
Marius, Thanks for your reply. If I look in my pom.xml, I see that I am using 1.1-SNAPSHOT. However, I see your point about the remove() function not being in Vars.scala. Not sure why I am able to compile a call to remove() on a SessionVar - but it does! My goal is to clear out the SessionVar for all sessions tied to the variable so that I can return the Session to the state it was at the beginning of time (at least with respect to the SessionVars). I have an object contained within a LiftView class called PartyLobbyUser: class GameView extends LiftView { object PartyLobbyUser extends SessionVar[Box[UserInfo]](Empty) ... } This object is set in code called by the GameView.dispatch() function and then referenced later by some comet actors. I think the problem I am having is that since a SessionVar is essentially a thread local variable, I need to clear it (i.e. do something like PartyLobbyUser (Empty) ) in the right place. Perhaps the right context is to do this in the shutdown function of the comet actors since they are able to reference the variable and get the correct data (ie. via PartyLobbyUser.is). I will try that and report back. Thanks again for your help. Dan On Sep 22, 7:03 pm, marius d. marius.dan...@gmail.com wrote: On Sep 22, 8:13 pm, Dano olearydani...@gmail.com wrote: Hello Lifters, I am struggling with trying to clear out a SessionVar which holds user information which I need to clear out after the user has left a 'lobby' page. When I call the remove() function, I verify that the SessionVar is Empty. However, when I click on the URL for the lobby page with new parameters, the SessionVar retains the old values for each session. It is as if they were repopulated. Perhaps I am not understanding out the function works. When I look at the source code (Vars.scala), it seems like it is clearing out the state for each session. The remove() function calls clearFunc(). override protected def clearFunc(name: String): Unit = S.session.foreach(_.unset(name)) No not for each session. S.session returns a Box which has a foreach function, it does not iterate through all sessions. Which Lift version are you using? .. there is no remove function in Vars in 1.1-SNAPSHOT version. Can you post some code to show where you are setting values on your SessionVar and where are you deleting them? Is there something I am missing? Thanks in advance. Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Comet Actors - single browser, multiple tabs, same URL - out of control GET problem
David, I am not sure this is a matter of optimization. As you indicate in your response, when this situation occurs Lift will immediately end the long polling operation in order not to starve the connections.. This tells me the request is not being serviced properly and it therefore is a functional issue. You may call it 'not a bug', but it is a limitation for innovationgames.com as we cannot support facilitators working multiple games at the same time (in the same browser). Dan On Sep 17, 8:52 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Sep 16, 2009 at 10:35 PM, DFectuoso santiago1...@gmail.com wrote: That seems like a logical reason why this is like this, but if i open 2 tabs ofhttp://demo.liftweb.net/, both tabs start to send ajax request every 100ms, that is 20 ajax request per second, 72k per hour, so if an app had 100 crazy users who happen to open 2 tabs of the app (this happens to me a lot, im messy with my tabs) that means 7.2 million request per hour to the server? isnt that something we might want to avoid somehow? Why? What's the actual cost? Have you actually measured it? Have you evaluated how many requests per second an HTTP connection with keep-alive can handle with Lift's comet code path? Please don't do premature optimization. Please worry about real problems. I'm guessing we can't really fight the connection limit, but we should be able to specify a frequency to the js if we are going to enter to a polling policy (instead of long poll)? On Sep 16, 4:49 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Sep 16, 2009 at 4:18 PM, Dano olearydani...@gmail.com wrote: We have a lift app (innovationgames.com) which has a page (actually several) with comet actors. When we go to the same URL in two tabs in the same browser, we see that the long polls (GET requests) return immediately in rapid fire succession and this behavior continues until we exit one of the tabs. We thought maybe we did something wrong in our code, so we tried the same thing using demo.liftweb.net. We saw the same behavior in the demo site that we see in our site. If you try this with something else like Gmail, it does not show this behavior. It's not a bug. There is a 2 connection per server per browser limit (in most browsers although Chrome and FF 3.5 apparently have relaxed this limit). If there is a long polling operation in progress and a second request comes into the same session, Lift will immediately end the long polling operation in order not to starve the connections. I thought I would post to this group and get some feedback before submitting a bug. Thanks in advance. Dano -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Comet Actors - single browser, multiple tabs, same URL - out of control GET problem
It is still unclear to me if the scenario I outlined above is supported by Lift or not. Can users of a site built with Lift (and comet actors) point their browser to the site in more than one tab? If so, is it reasonable for the web browser in this case to be sending multiple GET requests per second? Even with small numbers of users working this way, the number of requests sent to the server seems excessive. Dan On Sep 17, 9:26 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Sep 16, 2009 at 10:53 PM, Xavi Ramirez xavi@gmail.com wrote: I vaguely remember reading a thread that claimed Lift would auto-increase the 2 connection limit for sessions using more modern browsers. Is this feature in M5? No. It's on my to-do list. Random Idea: Would it be possible to get around the 2 connection limit by sending each comet request to a unique sub-domain? That code is already in Lift. Lift supports sending comet long poll requests to DNS wildcarded subdomains and the relaxation of the 2 connection limit in such cases. However, such a setup requires non-trivial operation discipline in terms of setting up the dns correctly, changing dns when machines are moved, setting up properties files for given machine and run modes, etc. You're welcome to add a wiki task for me to document the feature. For example, current lift webapps send comet requests to: http://www.[your-domain].com/comet_request/96624280773/vhbz24xby3vm Could lift instead send comet requests to comet[uniqueId].[your-domain].com/[params]? Thanks, Xavi On Wed, Sep 16, 2009 at 7:49 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Sep 16, 2009 at 4:18 PM, Dano olearydani...@gmail.com wrote: We have a lift app (innovationgames.com) which has a page (actually several) with comet actors. When we go to the same URL in two tabs in the same browser, we see that the long polls (GET requests) return immediately in rapid fire succession and this behavior continues until we exit one of the tabs. We thought maybe we did something wrong in our code, so we tried the same thing using demo.liftweb.net. We saw the same behavior in the demo site that we see in our site. If you try this with something else like Gmail, it does not show this behavior. It's not a bug. There is a 2 connection per server per browser limit (in most browsers although Chrome and FF 3.5 apparently have relaxed this limit). If there is a long polling operation in progress and a second request comes into the same session, Lift will immediately end the long polling operation in order not to starve the connections. I thought I would post to this group and get some feedback before submitting a bug. Thanks in advance. Dano -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Comet Actors - single browser, multiple tabs, same URL - out of control GET problem
We have a lift app (innovationgames.com) which has a page (actually several) with comet actors. When we go to the same URL in two tabs in the same browser, we see that the long polls (GET requests) return immediately in rapid fire succession and this behavior continues until we exit one of the tabs. We thought maybe we did something wrong in our code, so we tried the same thing using demo.liftweb.net. We saw the same behavior in the demo site that we see in our site. If you try this with something else like Gmail, it does not show this behavior. I thought I would post to this group and get some feedback before submitting a bug. Thanks in advance. Dano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] FireFox plug-ins: beware!
I recently ran into a problem where the login/logout process of my lift app was not working - basically redirection was not working. I tried different versions of FireFox (3.0, 3.5) and still the problem persisted. I thought it was a Lift bug, but others could not reproduce it. Finally, I removed the Skype FireFox plugin and magically my Lift app was cured! Don't know if others have already run into this, but thought I would send a note out just in case. Thanks. Dano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] parameterizing a mapper query clause
Hello Lifters! I recently acquired the Lift book and saw a neat example of how to use a QueryParam() to setup a query which does date range checking. The code I am referencing is the dateClause expression in the Expense.scala file (pocketchange project). It looks like: val dateClause : QueryParam[Expense] = (startDate,endDate) match { case (Full(start), Full(end)) = BySql(Expense.dateOf between ? and ?, IHaveValidatedThisSQL(dchenbecker, 2009-02-22), start, end) case (Full(start), Empty) = BySql(Expense.dateOf = ?, IHaveValidatedThisSQL(dchenbecker, 2009-02-22), start) case (Empty, Full(end)) = BySql(Expense.dateOf = ?, IHaveValidatedThisSQL(dchenbecker, 2009-02-22), end) case _ = new Ignore[Expense] } I want to use this clause across a set of Mapper classes and so I thought I would take the code and try to parameterize it with a type so that I could pass in a Mapper class at the type. I have tried to model the type as both KeyedMapper and Mapper to no avail (see broken code below) I am stumbling on the User class which is probably the most involved of the Mapper classes I need to get to work. Does anyone have a quick pointer for a type challenged lifter? Thanks in advance. Dano /* Site analytics code */ val startDate: Box[Date] = parseDate(2009/06/01 00:00) val endDate: Box[Date] = parseDate(2009/07/01 00:00) val users = User.findAll(dateClause(startDate, endDate, User)) println(users = + users) private def dateClause[T : Mapper[Long]](startDate: Box[Date], endDate: Box[Date], tbl: T) : QueryParam[T] = (startDate,endDate) match { case (Full(start), Full(end)) = BySql(User.createdAt between ? and ?, IHaveValidatedThisSQL(djo, 2009-06-22), start, end) case (Full(start), Empty) = BySql(User.createdAt = ?, IHaveValidatedThisSQL(djo, 2009-06-22), start) case (Empty, Full(end)) = BySql(User.createdAt = ?, IHaveValidatedThisSQL(djo, 2009-06-22), end) case _ = new Ignore[T] } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Is there any eclipse setup that actually works for lift?
Rudi, Thanks for posting your Intellij specifics. Wondering if you are using the debugger and find that it works for your scala/lift debugging? Dano On Jun 22, 2:57 pm, Rudi Engelbrecht rudis...@gmail.com wrote: I know you are looking for a working Eclipse configuration, but I have had great success and stability with IntelliJ IDEA 8.1.2 Scala 2.7.4 The Scala plugin for IDEA Lift 1.0 I can do mvn jetty:run from the IDE and what is really cool is that I can set breakpoints and debug the mvn jetty:run target from IDEA and then explore the scala code. Just thought I will post version numbers of a working environment. Regards Rudi On 22 Jun 2009, at 8:35 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Jun 22, 2009 at 11:25 AM, Ellis ellis.whiteh...@gmail.com wrote: Hello David, Thanks for your reply. Do you know whether lift *should* work with scala 2.8 when we pull it from the maven repositories? Lift currently only works with Scala 2.7.4. You can use Eclipse and 2.7.5 to edit Lift files, but Lift must be deployed against 2.7.4. We will have a branch of Lift (Jorge... you got this running yet) building against 2.8, but it will be experimental. I have experienced a fair number of suboptimalities with Lift and Eclipse in the last 3 weeks with the 2.7.5 stable plugin. I have had success recently with NetBeans, IntelliJ, and emacs. If so, then I'll try deleting my ~/.m2 as Tim suggested. Thanks, Ellis On Jun 22, 8:14 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Ellis, Miles will be back online in a few days, but I suspect that the answer is that the 2.8 plugin is the new generation and the 2.7.5 stuff is going to have bugs. :-( Sorry. David On Mon, Jun 22, 2009 at 11:08 AM, Ellis ellis.whiteh...@gmail.com wrote: Hello everyone, Does anyone have a setup for eclipse that works like it should? By like it should, I mostly mean that the scala plugin doesn't crash regularly AND it works with lift/maven. If so, which versions of which plugins are you using? The nightly build of the scala plugin seems to work better than 2.7.4/2.7.5 in some ways, but I couldn't get it working with lift/ maven due to signature differences between the scala libraries. Best regards, Ellis -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Is there any eclipse setup that actually works for lift?
I just downloaded Intellij 8.1.3, installed it, installed the scala, maven and jetty plugins, created a project on top of my scala/lift sandbox and was able to debug pretty easily. Editor also has pretty good intelli-sense. Pretty impressive given that the last time I tried NetBeans/Eclipse (5 months ago), debugging was a no-go (although I am sure those IDEs/ plugins have made progress since then). All to the good!! Dan On Jun 22, 3:20 pm, Dano olearydani...@gmail.com wrote: Rudi, Thanks for posting your Intellij specifics. Wondering if you are using the debugger and find that it works for your scala/lift debugging? Dano On Jun 22, 2:57 pm, Rudi Engelbrecht rudis...@gmail.com wrote: I know you are looking for a working Eclipse configuration, but I have had great success and stability with IntelliJ IDEA 8.1.2 Scala 2.7.4 The Scala plugin for IDEA Lift 1.0 I can do mvn jetty:run from the IDE and what is really cool is that I can set breakpoints and debug the mvn jetty:run target from IDEA and then explore the scala code. Just thought I will post version numbers of a working environment. Regards Rudi On 22 Jun 2009, at 8:35 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Mon, Jun 22, 2009 at 11:25 AM, Ellis ellis.whiteh...@gmail.com wrote: Hello David, Thanks for your reply. Do you know whether lift *should* work with scala 2.8 when we pull it from the maven repositories? Lift currently only works with Scala 2.7.4. You can use Eclipse and 2.7.5 to edit Lift files, but Lift must be deployed against 2.7.4. We will have a branch of Lift (Jorge... you got this running yet) building against 2.8, but it will be experimental. I have experienced a fair number of suboptimalities with Lift and Eclipse in the last 3 weeks with the 2.7.5 stable plugin. I have had success recently with NetBeans, IntelliJ, and emacs. If so, then I'll try deleting my ~/.m2 as Tim suggested. Thanks, Ellis On Jun 22, 8:14 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Ellis, Miles will be back online in a few days, but I suspect that the answer is that the 2.8 plugin is the new generation and the 2.7.5 stuff is going to have bugs. :-( Sorry. David On Mon, Jun 22, 2009 at 11:08 AM, Ellis ellis.whiteh...@gmail.com wrote: Hello everyone, Does anyone have a setup for eclipse that works like it should? By like it should, I mostly mean that the scala plugin doesn't crash regularly AND it works with lift/maven. If so, which versions of which plugins are you using? The nightly build of the scala plugin seems to work better than 2.7.4/2.7.5 in some ways, but I couldn't get it working with lift/ maven due to signature differences between the scala libraries. Best regards, Ellis -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] lift-paypal: Paypal Production PDT not working - help!
I trying to get our site (buyafeature.com) live today and ran into a problem with the paypal feature. I am using the lift-paypal module and things have been working just fine in development. The problem I am seeing is that when I press the Return to Website button in paypal, it tries to redirect to the following URL: http://buyafeature.com/paypal/complete?tx=36627495TV601683Lst=Completedamt=5.00cc=USDcm=rRJJNK1ZJOCLMF1Ritem_number=ENTH-32196merchant_return_link=Return+to+Enthiosys%2C+Inc.form_charset=UTF-8 And then the browser shows the following error: The Requested URL /paypal/complete was not found on this server I tried to reproduced this on the development sandbox but it works fine (i.e. returns to the starting page in my app and my server gets the PDT event). Has anyone seen this or have any ideas on what to try? Thanks in advance. Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift-paypal: Paypal Production PDT not working - help!
More information: In my object which extends PaypalPDT, I had a line which overridded the variable pdtPath: override def pdtPath = complete On Jun 18, 11:58 am, Dano olearydani...@gmail.com wrote: I trying to get our site (buyafeature.com) live today and ran into a problem with the paypal feature. I am using the lift-paypal module and things have been working just fine in development. The problem I am seeing is that when I press the Return to Website button in paypal, it tries to redirect to the following URL: http://buyafeature.com/paypal/complete?tx=36627495TV601683Lst=Comple... And then the browser shows the following error: The Requested URL /paypal/complete was not found on this server I tried to reproduced this on the development sandbox but it works fine (i.e. returns to the starting page in my app and my server gets the PDT event). Has anyone seen this or have any ideas on what to try? Thanks in advance. Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift-paypal: Paypal Production PDT not working - help!
Sorry, my post got submitted too early. When I commented out the line: override def pdtPath = complete I get the same failure mode as in production. Do I need to set pdtPath or what do I change to work with the default? Thanks. Dan On Jun 18, 12:04 pm, Dano olearydani...@gmail.com wrote: More information: In my object which extends PaypalPDT, I had a line which overridded the variable pdtPath: override def pdtPath = complete On Jun 18, 11:58 am, Dano olearydani...@gmail.com wrote: I trying to get our site (buyafeature.com) live today and ran into a problem with the paypal feature. I am using the lift-paypal module and things have been working just fine in development. The problem I am seeing is that when I press the Return to Website button in paypal, it tries to redirect to the following URL: http://buyafeature.com/paypal/complete?tx=36627495TV601683Lst=Comple... And then the browser shows the following error: The Requested URL /paypal/complete was not found on this server I tried to reproduced this on the development sandbox but it works fine (i.e. returns to the starting page in my app and my server gets the PDT event). Has anyone seen this or have any ideas on what to try? Thanks in advance. Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift-paypal: Paypal Production PDT not working - help!
Resolved. I backed out my override on pdtPath and adjusted my paypal configuration to point to /paypal/pdt and things worked. Moral of the story: Do NOT override pdtPath!! On Jun 18, 12:07 pm, Dano olearydani...@gmail.com wrote: Sorry, my post got submitted too early. When I commented out the line: override def pdtPath = complete I get the same failure mode as in production. Do I need to set pdtPath or what do I change to work with the default? Thanks. Dan On Jun 18, 12:04 pm, Dano olearydani...@gmail.com wrote: More information: In my object which extends PaypalPDT, I had a line which overridded the variable pdtPath: override def pdtPath = complete On Jun 18, 11:58 am, Dano olearydani...@gmail.com wrote: I trying to get our site (buyafeature.com) live today and ran into a problem with the paypal feature. I am using the lift-paypal module and things have been working just fine in development. The problem I am seeing is that when I press the Return to Website button in paypal, it tries to redirect to the following URL: http://buyafeature.com/paypal/complete?tx=36627495TV601683Lst=Comple... And then the browser shows the following error: The Requested URL /paypal/complete was not found on this server I tried to reproduced this on the development sandbox but it works fine (i.e. returns to the starting page in my app and my server gets the PDT event). Has anyone seen this or have any ideas on what to try? Thanks in advance. Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Compile error in TD.scala whith example in Starting with Lift HTML guide
I thought I replied to this, apologies if it comes up twice. I found the problem, the HTML shows tildes (~) rather than quotes (). The PDF is fine (though copy and paste doesn't work as well). I assumed it was a Lift or Scala weirdness. Next question, where to file a bug about this? Dano! On Apr 3, 3:19 pm, Dano! daniel.mcka...@gmail.com wrote: Good morning, Scala has been getting some interest in the project I work with, and I've been asked to investigate the Lift framework as a possibility to migrate our custom coded website to it. I'm a Scala newbie, so I'm working on absorbing a lot in a short period of time. I'm having problems with the Stating with Lift found at:http://liftweb.net/docs/getting_started/mod_master.html I was able to get everything working up through section 2.8. I'm getting stuck in Section 2.12 where it suggests starting the server and trying the changes from Section 2.9. Specifically I'm getting hung up with a compile time error with TD.scala. First I get these two errors: $ mvn jetty:run ... [INFO] Checking for multiple versions of scala [INFO] Compiling 3 source files to /Users/danielmckagan/Workspaces/ lift-test/todo/target/classes [WARNING] /Users/danielmckagan/Workspaces/lift-test/todo/src/main/ scala/com/liftworkshop/model/ToDo.scala:29: error: ')' expected but integer literal found. [WARNING] valMinLen(3, ~Description must be 3 characters~) _ :: [WARNING] ^ [WARNING] /Users/danielmckagan/Workspaces/lift-test/todo/src/main/ scala/com/liftworkshop/snippet/TD.scala:33: error: ')' expected but '.' found. [WARNING] ~priority~ - todo.priority.toForm, [WARNING] ^ [WARNING] two errors found ... If I change the '3' to 'three' in the first example, that error falls away and the second one remains: ... [INFO] Checking for multiple versions of scala [INFO] Compiling 3 source files to /Users/danielmckagan/Workspaces/ lift-test/todo/target/classes [WARNING] /Users/danielmckagan/Workspaces/lift-test/todo/src/main/ scala/com/liftworkshop/snippet/TD.scala:33: error: ')' expected but '.' found. [WARNING] ~priority~ - todo.priority.toForm, [WARNING] ^ [WARNING] one error found ... And I can't figure out how to get over it. I deleted the entire todo project and started from the beginning, cutting and pasting the examples, and have gotten the same behavior both times. This may help... $ mvn --version Apache Maven 2.1.0 (r755702; 2009-03-18 12:10:27-0700) Java version: 1.5.0_16 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/ Home Default locale: en_US, platform encoding: MacRoman OS name: mac os x version: 10.5.6 arch: i386 Family: unix Any help would be appreciated, Dano! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: You guys rock!
Late to the party here, but I would second the request for Alex's writeup of his dev environment formula. A link reference would be most appreciated. Thanks very much. Dan On Mar 11, 9:38 am, Alex Boisvert boisv...@intalio.com wrote: On Wed, Mar 11, 2009 at 8:56 AM, Raoul Duke rao...@gmail.com wrote: Between Scala and Lift, ScalaCheck and Specs, Eclipse and Buildr, Jetty and JavaRebel, it's amazing to see how far the tools have evolved in the 2 years I've been following Scala. so... any good concise instructions on getting properly set up with all those tools? as wonderful as it all sounds, i think for most newbies to any given system it can be a frustrating experience to try to just get the tooling in place and really working. some kind of Linux VM image with all that pre-installed could be pretty cool? Good idea. I'll put something together and post it on the wiki. alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Implementing RESTful web services using Lift
Chris/David, Thanks very much for the example! Have you two discussed how to mix authorization into this example? When I talked with David about this topic, it seemed that restful services couple credentials with the request. For example, could you use BasicAuth with a username/password as part of the URL via https? If so, how would your example above be changed to reflect that? Thanks in advance. Dan On Feb 9, 4:51 pm, David Pollak feeder.of.the.be...@gmail.com wrote: Chris, Looks like you've been having way too much fun! Thanks, David On Mon, Feb 9, 2009 at 2:01 PM, Chris Richardson chris.e.richard...@gmail.com wrote: Hi, I just started playing around with Scala and Lift and with @dpp's help wrote a simple RESTful web service. I wanted to share the code with this group and get feedback and suggestions about improvements. See below. Thanks. Chris In Boot.scala you register one or more WsEndpoints (a trait that is defined later). I was wondering whether Lift has a way to search and register them automatically? class Boot { def boot { val x :List[WsEndpoint] = List(ExampleApi) x.foreach ( endpoint = LiftRules.dispatch.append (endpoint.dispatchRules) ) } } Here is the class that defines methods that take parameters from the HTTP request and returns XML nodes. class ExampleApi { def doGet(id: String) : Node = { info3 id={id} / } } The companion object sets up the mapping rules, e.g. /api/item/1 - exampleApi.doGet(1) object ExampleApi extends WsEndpoint { val exampleApi = new ExampleApi() override def wsDispatchRules = { case Req(api :: item :: id :: _, _, GetRequest) = () = exampleApi.doGet(id) } } WsEndpoint is a trait that handles the conversion from what Lift expects, i.e. () = Full[XmlResponse] to what is written above, i.e .() = Node trait WsEndpoint { def wsDispatchRules : PartialFunction[Req,() = Node] def dispatchRules : PartialFunction[Req,() = Full[XmlResponse]] = { new MyAdapter(wsDispatchRules) } abstract class PartialFunctionAdapter [F, T1, T2] (adaptee: PartialFunction[F, T1]) extends PartialFunction[F, T2] { override def isDefinedAt(r : F) = adaptee.isDefinedAt(r) override def apply(r : F) = { converter(adaptee.apply(r)) } def converter (x : T1) : T2 } class MyAdapter(adaptee: PartialFunction[Req, () = Node]) extends PartialFunctionAdapter[Req, () = Node, () = Full[XmlResponse] ](adaptee) { override def converter (x : () = Node) = { () = Full(XmlResponse(x())) } } } -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Menus with Submenus - can I have a top level menu as container only?
Did a little more digging into how Loc and MenuItem work together. It looks like the 'kids' of a menu item are not exposed until you click on it. I am looking to see if we can have behavior which exposes the 'kids' of a MenuItem before clicking on it. Dan On Feb 1, 8:28 pm, Dano olearydani...@gmail.com wrote: More information on the issue. My goal is to actually turn the 'vertical' menu stack into a more horizontal menu which I can put at the top of the page. An example which illustrates what I am trying to emulate can be seen athttp://www.javascriptkit.com/script/script2/csstopmenu.shtml. It has the behavior I want with respect to the top level menu which has submenus (i.e. the top level menu does not redirect, it only shows the sub menu items). Has anyone else tried to do this before? Thanks in advance. Dan On Jan 30, 2:46 pm, Dano olearydani...@gmail.com wrote: I have an application with a menu which has too many items. I would like to move some of the menu items into submenus. For example, let's say I have menu items called Client Admin and Custom Content at the top level and I want to put them under a new top level menu item called Site Admin. Using the example code from the lift sites sandbox as a guide, the code for this might look something like: Menu(Loc(SiteAdmin, List(site_admin, index), Site Admin, ifIsLoggedIn, ifIsSuperUser), Menu(Loc(ClientAdmin, List(client_admin, index), Client Mgt, ifIsLoggedIn, ifIsSuperUser)), Menu(Loc(CustomContent, List(custom_content, index), Custom Content, ifIsLoggedIn, ifIsSuperUser)) )) In the above example, the Site Admin menu takes you to a new page (/ site_admin/index). However, I really just want to stay on the current page and show the two sub-menu items. When I use the current page in the Loc() expression for SiteAdmin, I don't get the sub menu items when I click on Site Admin. Does anyone have a suggestion on how to have the sub-menu items in the above example show when I click on Site Admin without requiring that the browser navigate to a new page? Many thanks in advance. Dano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Menus with Submenus - can I have a top level menu as container only?
More information on the issue. My goal is to actually turn the 'vertical' menu stack into a more horizontal menu which I can put at the top of the page. An example which illustrates what I am trying to emulate can be seen at http://www.javascriptkit.com/script/script2/csstopmenu.shtml. It has the behavior I want with respect to the top level menu which has submenus (i.e. the top level menu does not redirect, it only shows the sub menu items). Has anyone else tried to do this before? Thanks in advance. Dan On Jan 30, 2:46 pm, Dano olearydani...@gmail.com wrote: I have an application with a menu which has too many items. I would like to move some of the menu items into submenus. For example, let's say I have menu items called Client Admin and Custom Content at the top level and I want to put them under a new top level menu item called Site Admin. Using the example code from the lift sites sandbox as a guide, the code for this might look something like: Menu(Loc(SiteAdmin, List(site_admin, index), Site Admin, ifIsLoggedIn, ifIsSuperUser), Menu(Loc(ClientAdmin, List(client_admin, index), Client Mgt, ifIsLoggedIn, ifIsSuperUser)), Menu(Loc(CustomContent, List(custom_content, index), Custom Content, ifIsLoggedIn, ifIsSuperUser)) )) In the above example, the Site Admin menu takes you to a new page (/ site_admin/index). However, I really just want to stay on the current page and show the two sub-menu items. When I use the current page in the Loc() expression for SiteAdmin, I don't get the sub menu items when I click on Site Admin. Does anyone have a suggestion on how to have the sub-menu items in the above example show when I click on Site Admin without requiring that the browser navigate to a new page? Many thanks in advance. Dano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Does memcache fit in here somewhere?
Thanks for posting the presentation. Very informative, plus I love the chalkboard look and feel! Dan On Jan 7, 9:10 am, David Pollak feeder.of.the.be...@gmail.com wrote: Ramzi, Remote Actors are fragile. AMQP (RabbitMQ) or ActorD (http://code.google.com/p/actord/) are better options. ActorD has the advantage of having a memcached ABI (wire protocol interface) and can make it easy to migrate logic out of PHP or Rails code into Scala Actors. Thanks, David On Wed, Jan 7, 2009 at 7:23 AM, Ramzi BEN YAHIA ramzi.benya...@gmail.comwrote: David, What is the actual status of scala.actors.remote. I mean if you want to distribute your application, do you still need to use JMS or AMQP or something like that? Thx, Ramzi On Wed, Jan 7, 2009 at 5:15 AM, David Pollak feeder.of.the.be...@gmail.com wrote: Bob, memcached is failure. Using memcached means that the application stack has somehow failed to deliver the appropriate caching and concurrency tools. Scala and Scala Actors provide a powerful mechanism for building domain appropriate caching. Please look at this presentation. Thanks, David On Tue, Jan 6, 2009 at 7:27 PM, Bob Eastbrook baconeater...@gmail.com wrote: I'm keeping my eye on Lift, but I'm primarily a PHP guy as far as paying the bills goes. I've got a slightly better high-level understanding of things now versus a month or so ago, but I'm not sure where caching fits into the picture. In the LAMP world, it's standard practice to put memcache in front of your database server. It's pretty much a cache everything philosophy. Is this not encouraged with Lift? I assume there are more caching choices in the Java world such as ehcache, but I don't see them mentioned on the list. Bob -- Lift, the simply functional web frameworkhttp://liftweb.net Collaborative Task Managementhttp://much4.us Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net Collaborative Task Managementhttp://much4.us Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions
Marius, David was able to help me out. In the future, I will have to dig myself out of the situation. For those Lift developers that are not 'committers' it is harder to know how to proceed. Perhaps in the future, the breaking changes should include a little more detail on which signatures have been changed and how they can be transformed. In any case, I am happy there is this group to ask for help! Thanks. Dan On Dec 15, 12:08 am, Marius marius.dan...@gmail.com wrote: Sorry Dan ... There were too many changes in LiftRules. You should be able to determine real quick what changed in LiftRules since the variables naming is more or less the same. If you can not fix your code can you please copy-paste it here ? ... in this way I may be able to help. Br's, Marius On Dec 15, 1:55 am, Dano dan_ole...@yahoo.com wrote: Marius, Is there someway you can communicate what the 'from' and 'to' changes are so that I can have a chance at being able to fix my now broken code? Dan On Dec 13, 12:31 pm, Marius marius.dan...@gmail.com wrote: All, I committed a bunch of changes inLiftRules. In a previous thread Jorge suggested the abstraction ofLiftRulesvariables. Lists of functions are now abstracted by RulesSeq trait, which contains prepend and append functions. Note that if you're calling prepend/append functions after boot they will throw an exception. If there are compelling reasons not to do this please let us know. This is just a mechanism to enforce the use of these functions on startup. Br's, Marius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: *** MAJOR BREAKING CHANGES *** LiftRules abstractions
Marius, Is there someway you can communicate what the 'from' and 'to' changes are so that I can have a chance at being able to fix my now broken code? Dan On Dec 13, 12:31 pm, Marius marius.dan...@gmail.com wrote: All, I committed a bunch of changes inLiftRules. In a previous thread Jorge suggested the abstraction ofLiftRulesvariables. Lists of functions are now abstracted by RulesSeq trait, which contains prepend and append functions. Note that if you're calling prepend/append functions after boot they will throw an exception. If there are compelling reasons not to do this please let us know. This is just a mechanism to enforce the use of these functions on startup. Br's, Marius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: maven plugin - scala:console - how to for lift apps - debugging aid
Hi Tyler! I am trying to run my lift app which I usually do by issuing 'mvn jetty:run'. I believe this runs the class org.codehause.classworlds.Launcher with the arguments - Dclassworlds.conf=/usr/local/apache-maven/apache-maven-2.0.9/bin/ m2.conf -Dmaven.home=/usr/local/apache-maven/apache-maven-2.0.9. Currently, I am trying to run MainGenericRunner.main(args) where I am stuffing the above into the args. It complains that error: value codehause is not a member of package org. So maybe I just have to figure out how to import that class. Thanks. Dan On Dec 10, 11:12 am, TylerWeir [EMAIL PROTECTED] wrote: What are you attempting? if you run: import com.your.classpath.model._ You should be able to create and play with model objects. What are you looking to do? On Dec 10, 1:39 pm, Dano [EMAIL PROTECTED] wrote: Hello Lifters, I am looking into using the maven scala:console plugin as an aid to debugging with the hope that I can start my lift app thru the console, and then after it comes up, be able to issue calls to 'static' methods which will return data which can help me see what is going on. My attempts to use NetBeans as a debugger for my lift app have failed miserably. I need a robust simple way to debug and the console plug- in seems like a good way to go. Per the instructions located athttp://scala-tools.org/mvnsites/maven-scala-plugin/usage_console.html, I have done the following: % mvn scala:console jetty:run scala new bootstrap.liftweb.Boot().boot However, jetty is not running yet and I am not sure how to prod into life. Has anyone tried this or have any suggestions? Thanks in advance. Dano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: maven plugin - scala:console - how to for lift apps - debugging aid
Ok. I got the app to run by adding 'jetty:run' as an argument after the Launcher class. However, the interpreter does not return to the command prompt I stop it using ctrl-C. Maybe I need to spawn a thread with the expression 'MainGenericRunner.main(args)'. Dan On Dec 10, 3:28 pm, Dano [EMAIL PROTECTED] wrote: Nice catch. Thanks Josh. Very close now. For those that want to know, the sequence is below. Somehow mvn is not seeing the 'jetty:run' goal. % mvn scala:console jetty:run scala import scala.tools.nsc.MainGenericRunner scala import org.codehaus.classworlds.Launcher scala new bootstrap.liftweb.Boot().boot scala val args = List(-howtorun:object, -Dclassworlds.conf=/usr/ local/apache-maven/apache-maven-2.0.9/bin/m2.conf, -Dmaven.home=/ usr/local/apache-maven/apache-maven-2.0.9, org.codehaus.classworlds.Launcher).toArray scala MainGenericRunner.main(args) [INFO] Scanning for projects... [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] You must specify at least one goal. Try 'mvn install' to build or 'mvn -?' for options Seehttp://maven.apache.orgfor more information. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Dec 10 15:18:31 PST 2008 [INFO] Final Memory: 17M/162M [INFO] [INFO] [ERROR] BUILD FAILURE On Dec 10, 12:25 pm, Josh Suereth [EMAIL PROTECTED] wrote: Typo in codehause, it should be org.codehaus.classworlds.Launcher. On Wed, Dec 10, 2008 at 2:36 PM, Dano [EMAIL PROTECTED] wrote: Hi Tyler! I am trying to run my lift app which I usually do by issuing 'mvn jetty:run'. I believe this runs the class org.codehause.classworlds.Launcher with the arguments - Dclassworlds.conf=/usr/local/apache-maven/apache-maven-2.0.9/bin/ m2.conf -Dmaven.home=/usr/local/apache-maven/apache-maven-2.0.9. Currently, I am trying to run MainGenericRunner.main(args) where I am stuffing the above into the args. It complains that error: value codehause is not a member of package org. So maybe I just have to figure out how to import that class. Thanks. Dan On Dec 10, 11:12 am, TylerWeir [EMAIL PROTECTED] wrote: What are you attempting? if you run: import com.your.classpath.model._ You should be able to create and play with model objects. What are you looking to do? On Dec 10, 1:39 pm, Dano [EMAIL PROTECTED] wrote: Hello Lifters, I am looking into using the maven scala:console plugin as an aid to debugging with the hope that I can start my lift app thru the console, and then after it comes up, be able to issue calls to 'static' methods which will return data which can help me see what is going on. My attempts to use NetBeans as a debugger for my lift app have failed miserably. I need a robust simple way to debug and the console plug- in seems like a good way to go. Per the instructions located athttp:// scala-tools.org/mvnsites/maven-scala-plugin/usage_console.html, I have done the following: % mvn scala:console jetty:run scala new bootstrap.liftweb.Boot().boot However, jetty is not running yet and I am not sure how to prod into life. Has anyone tried this or have any suggestions? Thanks in advance. Dano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: a simple screencast for making a sample app
Matt, This is great. I am looking forward to your Netbeans screencast. Thanks. Dan On Dec 8, 1:00 am, Matt Harrington [EMAIL PROTECTED] wrote: I made a little screencast about creating a sample lift-archetype-basic application. I hadn't made a screencast before, and it was actually trickier than I thought it'd be. It's challenging to read from a script and work at the terminal at the same time. It's mostly about installing Maven, and if you've ever built a sample Lift app you won't get anything out of it, but perhaps absolute beginners will find it helpful: http://www.vimeo.com/2461367 I envision 3 parts, and started with part II. Part I will be a brief overview of Lift Scala, and Part III will be about NetBeans. ---Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: The first Lift tutorial: a ToDo application
David, Since I am really interested in view/logic separation, I focused on sections 1.5 and 1.6. My overall feedback is that I really like starting with the example and following up with the philosophy. Also, you accomplished the goal of telling the reader how the separation is accomplished as well as where the 'guard rails' are to enforcing a proper separation. Finally, having attended the lift workshop and trying to puzzle thru the ToDo example afterwards, I am thankful for this document so that I can gain a proper understanding of what is going on. In section 1.5, you describe the snippet lookup mechanism. There is a sentence which I don't understand: Lift will convert underscore separated names to CamelCase names when it looks up classes. I am having trouble understanding which underscores you are referring to. In section 1.6 there is a code snippet which looks like: tdf:year selectoption2007/option/select /f:year/td The year snippet replaces the select / above with a select generated from the snippet code. If I want the HTML designer to be able to style the above select with css code, what is the guideline? Should the select above have a class attribute? Also, if I want my view to be testable, should I include an id attribute as well? I really enjoyed the example and will dive in further as time permits. Thanks. Dano On Dec 5, 5:09 pm, David Pollak [EMAIL PROTECTED] wrote: Folks, I've got a first draft of the first Lift tutorial: a ToDo application. The application demonstrates creating a new Lift project, creating a model, linking the view to logic, adding validation and form input to the model, creating forms, and doing Ajax calls. I'm enclosing the PDF of the tutorial along with the resulting application. Please let me know if you've got feedback on it. Thanks, David -- Lift, the simply functional web frameworkhttp://liftweb.net Collaborative Task Managementhttp://much4.us Follow me:http://twitter.com/dpp Git some:http://github.com/dpp todo_steps.pdf 206KViewDownload todo.tgz 9KViewDownload --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: lift-testkit/REST API test example code
Hi Tyler, Thanks for your response. The closest code to what I am looking for is under the sites/example/ src/test area. Under this area, the WikiUsages.scala code is a nice example of how to test a web page. It uses a jwebunit WebTester class to browse the page and perform tests on it. Since I have a REST API, I am looking for a way to do http operations where I can specify URL params and test what is returned. WebTester does not fit this use. However, I just need to find a class to replace WebTester in the WikiUsages.scala code and I should be good to go. You have given me a good start and I'll keep searching. Thanks. Dano On Dec 4, 12:34 pm, TylerWeir [EMAIL PROTECTED] wrote: Hey Dano, For getting examples of how to write tests, the main tree has a bunch of tests in it:http://github.com/dpp/liftweb/tree/master/lift/src/test andhttp://github.com/dpp/liftweb/tree/master/sites/example/src/test/ Poke around and you'll see that most of the tests are Specs +Scalacheck. Answer your question? On Dec 4, 1:26 pm, Dano [EMAIL PROTECTED] wrote: Hello Fellow Lifters! I am working on a set of REST APIs for a new Innovation Game and was browsing around the lift group for advice on how this is done. From one of dpp's posts, I gathered that lift-testkit is what I should use. Has anyone used lift-testkit to test REST api's or know of any sample test code which could be used as a starting point? Thanks very much in advance for any help. Dan O. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Date and Time Pickers in Lift
Hello Fellow Lifters, I am coding up a form which has separate date and time fields and was wondering if there are any picker widgets which can be yoked to the fields to allow the user to pick the date/time rather than type it in. I looked in the lift-widgets directory, but did not find one. Is there one available? Thanks in advance. Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Date and Time Pickers in Lift
Tyler, This one is really good if you want a single chooser for both date and time. Thanks for the tip. Dan On Nov 26, 1:52 pm, TylerWeir [EMAIL PROTECTED] wrote: Something like this:http://razum.si/jQuery-calendar/TimeCalendar.html ? On Nov 26, 4:38 pm, Marius [EMAIL PROTECTED] wrote: I think JQuery has one. Should be quite easy to use. On Nov 26, 9:59 pm, Dano [EMAIL PROTECTED] wrote: Hello Fellow Lifters, I am coding up a form which has separate date and time fields and was wondering if there are any picker widgets which can be yoked to the fields to allow the user to pick the date/time rather than type it in. I looked in the lift-widgets directory, but did not find one. Is there one available? Thanks in advance. Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: TextileTestSpec failure with latest lift/scala 2.7.2
This is a really curious error. Using identical sources, it passes on my Linux box but fails on my Windows laptop. I cleaned out my maven repository on my laptop just in case, but got the same result. On Nov 17, 1:58 pm, David Pollak [EMAIL PROTECTED] wrote: Weird. I spent a while this morning adding these tests and they do indeed pass on my machine. I'm trying a clean build (I just blew away my Maven repository) to see if I can reproduce the issue. On Mon, Nov 17, 2008 at 1:43 PM, Sebastien Bocq [EMAIL PROTECTED]wrote: Hello, I could not wait and just pulled the latest version of lift for scala 2.7.2 but some tests fail in TextileTestSpec. It has issues with bullet lists, I placed the test report in attachment. I pulled lift from git like this: cd liftweb git pull (scala.version pom.xml is 2.7.2) mvn clean install Thanks, Sebastien --- Test set: net.liftweb.textile.TextileSpecTest --- Tests run: 11, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.578 sec FAILURE! A Textile Parse can 3 bullets Time elapsed: 0 sec FAILURE! org.specs.specification.FailureException: p br/br* Hello br/br* Dude br/br* Dog /p is not equal to ulli Hello/li li Dude/li li Dog/li /ul at net.liftweb.textile.TextileSpec$$anonfun$1$$anonfun$apply$22.apply(TextileSpec.scala:65) at net.liftweb.textile.TextileSpec$$anonfun$1$$anonfun$apply$22.apply(TextileSpec.scala:57) at org.specs.specification.ExampleLifeCycle$class.executeTest(ExampleLifeCycle.scala:20) at org.specs.Specification.executeTest(Specification.scala:25) at org.specs.specification.Sus.executeTest(Sus.scala:143) at org.specs.specification.Example$$anonfun$2.apply(Example.scala:118) at org.specs.specification.Example$$anonfun$2.apply(Example.scala:105) at org.specs.specification.Example$$anonfun$in$1.apply(Example.scala:137) at org.specs.specification.Example.execute(Example.scala:154) at org.specs.specification.Example.subExamples(Example.scala:92) at org.specs.runner.ExamplesTestSuite$$anonfun$initialize$2.apply(JUnit.scala:121) at org.specs.runner.ExamplesTestSuite$$anonfun$initialize$2.apply(JUnit.scala:116) at scala.Iterator$class.foreach(Iterator.scala:410) at scala.collection.mutable.SingleLinkedList$$anon$1.foreach(SingleLinkedList.scala:50) at scala.Iterable$class.foreach(Iterable.scala:256) at scala.collection.mutable.Queue.foreach(Queue.scala:24) at org.specs.runner.ExamplesTestSuite.initialize(JUnit.scala:116) at org.specs.runner.JUnitSuite$class.init(JUnit.scala:31) at org.specs.runner.ExamplesTestSuite.init(JUnit.scala:107) at org.specs.runner.JUnitSuite$class.run(JUnit.scala:37) at org.specs.runner.ExamplesTestSuite.run(JUnit.scala:136) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.specs.runner.JUnitSuite$class.run(JUnit.scala:37) at net.liftweb.textile.TextileSpecTest.run(TextileSpec.scala:24) at org.specs.runner.JUnitSuiteRunner.run(JUnitSuiteRunner.scala:28) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) A Textile Parse can 3 bullets strong Time elapsed: 0 sec FAILURE! org.specs.specification.FailureException: p br/brstrong /strongHello* moo br/br* Dude br/br* Dog /p is not equal to ulli strongHello/strong moo/li li Dude/li li Dog/li /ul at net.liftweb.textile.TextileSpec$$anonfun$1$$anonfun$apply$25.apply(TextileSpec.scala:81) at net.liftweb.textile.TextileSpec$$anonfun$1$$anonfun$apply$25.apply(TextileSpec.scala:73) at org.specs.specification.ExampleLifeCycle$class.executeTest(ExampleLifeCycle.scala:20) at org.specs.Specification.executeTest(Specification.scala:25) at