22 Apr 2017, Konstantin Olchanski, Bug Report, MAX_STRING_LENGTH, stop form odbedit broken 
 | 
> > Fixed a small buglet, now saving and reloading odb in the old ".odb" format will silently truncate all overlong strings to 256 bytes. (I think it always 
did that).
 
> 
 | 
   
   22 Apr 2017, Konstantin Olchanski, Bug Report, MAX_STRING_LENGTH, stop form odbedit broken 
 | 
> ODB name lengths (the name of a key) are limited to 256 characters, the length of strings in the ODB should NOT be limited.
 
 
Right, I was not ever aware of such limitation until I just now looked at the .odb and .xml writing code. Definitely string length
 | 
   26 Apr 2017, Konstantin Olchanski, Info, added db_get_value_string() 
 | 
Since we have been regularly running into problems with db_get_xxx(TID_STRING) and string buffers of mismatched size,
 
I now implemented db_get_value_string(hdb, hkey, key_name, index, &string, create).
 
 | 
   
   02 May 2017, Konstantin Olchanski, Info, added db_resize_string() 
 | 
> Since we have been regularly running into problems with db_get_xxx(TID_STRING) and string buffers of mismatched size,
 
> I now implemented db_get_value_string(hdb, hkey, key_name, index, &string, create).
 
 | 
   
   02 May 2017, Konstantin Olchanski, Bug Report, mhttpd inline-editor and web MAX_STRING_LENGTH, stop form odbedit broken 
 | 
> > I shall check on the use of MAX_STRING_LENGTH at least in odb itself...
 
 
Also tested the web interface:
 | 
   02 May 2017, Konstantin Olchanski, Info, mhttpd inline-editor change 
 | 
I changed the mhttpd odb inline editor to use the json-rpc interface. Good things:
 
 
- browser no longer complains about obsolete synchronous ajax calls
 | 
   
   02 May 2017, Konstantin Olchanski, Forum, Problem with logger at run start 
 | 
> Wed Apr 26 23:03:12 2017 [mhttpd,ERROR] [midas.c:9106:rpc_client_connect,ERROR] cannot connect to host "scar
 
> lett", port 44858: connect() returned -1, errno 113 (No route to host)
 
 | 
   
   02 May 2017, Konstantin Olchanski, Bug Report, run start/stop oddity  
 | 
 
I should really get around to fix this junk error message:
 
 | 
   
   02 May 2017, Konstantin Olchanski, Info, added db_get_value_string() 
 | 
> Just some thought for discussion:
 
 
Even more thoughts:
 | 
   
   16 May 2017, Konstantin Olchanski, Bug Report, mhttpd / history / export data 
 | 
> A handy feature of the history of the mhttpd is to export the data. However, this 
 
> seems to be broken. It currently only works if the run marker flag is activated by 
 
> fails otherwise.
 | 
   16 May 2017, Konstantin Olchanski, Bug Report, problem with odb strings and db_get_record() 
 | 
Suddenly the mhttpd odb inline editor is truncating the odb string entries to the actual length of the 
 
stored string value, this causes db_get_record() explode with "structure mismatch" errors. (Not my 
 
fault, You Honor! Honest!). For example, I see these errors from al_check() after changing 
 | 
   31 May 2017, Konstantin Olchanski, Info, modified db_watch() arguments 
 | 
for reasons unknown, db_watch() did not have an "info" parameter passed through to the callback 
 
handler function, like it is done with db_open_record().
 
 | 
   
   31 May 2017, Konstantin Olchanski, Bug Report, problem with odb strings and db_get_record() 
 | 
> What a mess.
 
 
The mess with db_get_record() and db_open_record() is even deeper than I thought. There are several anomalies.
 | 
   
   31 May 2017, Konstantin Olchanski, Bug Report, problem with odb strings and db_get_record() 
 | 
> 2) replace all uses of db_open_record(MODE_READ) with db_watch() in conjunction with db_get_record1().
 
 
Done to all in-tree programs, except for mana.c (not using it), sequencer.cxx (cannot test it) and a few places where watching a TID_INT.
 | 
   
   06 Jun 2017, Konstantin Olchanski, Bug Report, problem with odb strings and db_get_record() 
 | 
> Done to all in-tree programs, except for mana.c (not using it), sequencer.cxx (cannot test it) and a few places where watching a TID_INT.
 
> Nothing more needs to be done, other than turn off the check for hotlink in db_create_record() & co (removed #define CHECK_OPEN_RECORD in odb.c).
 
 | 
   
   06 Jun 2017, Konstantin Olchanski, Bug Report, MAX_STRING_LENGTH, stop form odbedit broken 
 | 
> ... the xml reader, probably has same problem
 
> ... xml writer truncates long strings via truncation in db_sprintf()
 
 | 
   13 Jul 2017, Konstantin Olchanski, Info, implemented: json-rpc batch requests 
 | 
The mhttpd json-rpc interface now implements batch requests per
 
http://www.jsonrpc.org/specification#batch
 
 | 
   04 Aug 2017, Konstantin Olchanski, Info, Notes on installing midas from scratch 
 | 
Notes on installing midas from scratch. The instruction on midaswiki will be synced with this later.
 
 
cd ~/packages
 | 
   
   12 Aug 2017, Konstantin Olchanski, Suggestion, Increasing Max Number of Frontends 
 | 
The checks for byte sizes of critical data structures have been added to ensure (enforce) binary compatibility
 
of midas with itself on different platforms (32-bit and 64-bit intel, on PPC, on ARM, etc).
 
 | 
   
   13 Aug 2017, Konstantin Olchanski, Suggestion, Increasing Max Number of Frontends 
 | 
> if (sizeof(INT) != 4) then severe_error_and_stop_all_programs()
 
 
Quick reply.
 |