[h2] Persistent console history

2014-05-28 Thread Martin Grajcar
The console history is a nice feature, but sometimes I get kicked out and have to log in again and the history is gone. I don't know exactly when and why I get kicked out. Is there something I could do about it? I didn't mean the persistency literarily, it's just that I'd love if it could survive

Re: [h2] Persistent console history

2014-05-28 Thread Noel Grandin
Sounds reasonable to me. The code you want lives in src\main\org\h2\server\web\WebApp.java src\main\org\h2\server\web\WebSession.java search for "@history" and follow the code. I suspect that the easiest option would be to have the console webapp store the history data using the java.u

Re: [h2] Persistent console history

2014-05-28 Thread Martin Grajcar
Thank you for the fast answer. I guess I can do it, the only problem are the Preferences limitation. There's no way to store WebSession.MAX_HISTORY = 1000 entries as a single value as there's the Preferences.MAX_VALUE_LENGTH = 8*1024 limit. Using multiple values gets complicated because of deletion

Re: [h2] Persistent console history

2014-05-28 Thread Thomas Mueller
Hi, The H2 Console tool stores the settings in a file called ".h2.server.properties" in the current user home directory (Constants.SERVER_PROPERTIES_NAME). If the history is stored, it should probably be stored there. But I'm not sure whether it should be stored; it would be a security problem bec

Re: [h2] Persistent console history

2014-05-28 Thread Martin Grajcar
On Wed, May 28, 2014 at 8:13 PM, Thomas Mueller < thomas.tom.muel...@gmail.com> wrote: > Hi, > > The H2 Console tool stores the settings in a file called > ".h2.server.properties" in the current user home directory > (Constants.SERVER_PROPERTIES_NAME). > I'd also prefer Properties to Preferences,

Re: [h2] Persistent console history

2014-06-05 Thread Thomas Mueller
Hi, I will not have time to implement this feature, but if you want to try, please go ahead. Patches are welcome. > You wrote that it's stored in the *user* home directory and the file is > readable by the owner only and that's IMHO about all what can be done for > security (encryption by a key

Re: [h2] Persistent console history

2014-06-13 Thread Martin Grajcar
Hi! On Thu, Jun 5, 2014 at 6:52 PM, Thomas Mueller wrote: > Hi, > > I will not have time to implement this feature, but if you want to try, > please go ahead. Patches are welcome. > Sure. I wrote something (attached), let me know what do you think. It gets allowed by creating an entry "commandH

Re: [h2] Persistent console history

2014-06-30 Thread Noel Grandin
Thank for the patch, it has been committed to SVN. On 2014-06-13 07:09 PM, Martin Grajcar wrote: Sure. I wrote something (attached), let me know what do you think. It gets allowed by creating an entry "commandHistory" -- You received this message because you are subscribed to the Google Grou

Re: [h2] Persistent console history

2014-07-02 Thread Martin Grajcar
Hi Noel, nice! Let me know if you want an improvement. Regards, Martin. On Mon, Jun 30, 2014 at 9:01 AM, Noel Grandin wrote: > Thank for the patch, it has been committed to SVN. > > > On 2014-06-13 07:09 PM, Martin Grajcar wrote: > >> >> Sure. I wrote something (attached), let me know what do

Re: [h2] Persistent console history

2014-07-02 Thread Noel Grandin
There is always lots of stuff to work on if you're keen :-) For example, see: https://groups.google.com/d/msg/h2-database/SL2hdB7VlnY/6RanPmy_WVsJ which is also a problem I have seen, but haven't had a chance to track down yet. On 2014-07-02 01:47 PM, Martin Grajcar wrote: Hi Noel, nice! Le

Re: [h2] Persistent console history

2014-07-18 Thread Martin Grajcar
On Wed, Jul 2, 2014 at 1:59 PM, Noel Grandin wrote: > > There is always lots of stuff to work on if you're keen :-) > For example, see: > https://groups.google.com/d/msg/h2-database/SL2hdB7VlnY/6RanPmy_WVsJ > which is also a problem I have seen, but haven't had a chance to track > down yet.

Re: [h2] Persistent console history

2014-07-22 Thread Noel Grandin
Nice, thanks, patch applied! Yeah, work on whatever interests you :-) We welcome most any kind of improvement. If you like working on the console, have a look at /src/docsrc/html/roadmap.html there are some console-related items in there. -- You received this message because you are subscr

Re: [h2] Persistent console history

2014-07-22 Thread Christoph Läubrich
> I don't know exactly when and why I get kicked out. Is there something I could do about it? probably the session expires due to session timeout/inactivity? -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and sto