Version 6 of NaviServer AOLserver Differences

Updated 2012-10-08 17:58:51 by mrbuny

http://naviserver.sourceforge.net/ns_logobig.gif

MainSource Code Downloads API Documentation Mailing Lists Bugs Developers


Incompatible changes in Tcl commands

ns_register_proc: The unused connid argument passed to callback procs registered with ns_register_proc have been removed. The connid is optional and deprecated in AOLserver and so should be removed in all cases. This applies to all other request-like NaviServer/AOLserver commands which previously took a connid argument.

ns_register_filter: The arguments passed to callback procs registered with ns_register_filter are reversed:

  # NaviServer
  proc myfilter {when argx argy args} {
      ns_log notice "myfilter: $when $argx $argy $args"
  }
  ns_register_filter preauth GET /foo* myfilter arg1 arg2 arg3

  # AOLserver
  proc myfilter {filter_args when} {
      ns_log notice "myfilter: $when $filter_args"
  }
  ns_register_filter preauth GET /foo* myfilter {arg1 arg2 arg3)

...


Incompatible changes to the C API

FIXME


NaviServer features missing in AOLserver

FIXME


AOLserver features missing in NaviServer

ns_share and the -shared argument to ns_set have long been depreciated in AOLserver and have been removed in NaviServer. The ns_var C-coded command was removed and replaced with a Tcl wrapper around the nsv commands, which replace these sharing mechanisms. We should take the removed C code for ns_share and the ns_set -shared commands and put them in a new nsshare module which can be loaded by people who haven't yet moved to the preferred nsv.


Comments:

...