• last updated 11 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Allow messages starting with a dash

Avoid logging every message sent to reduce IO

Chats won't throw an error anymore when people keep looking to a room that has been closed.

Instead, user will be informed that the room is unavailable.

Added missing locale key source of errors in the log.

Fixed wrong stored procedure, stating different arguments than in actual usage.

Cleaned up weird idioms in xql files and chat api, moved many db operations into tcl api.

Exploited cache (ns_cache) to retrieve quickly chat room information.

Improved code quality a bit.

Ported upstream some local modification, like prettifying of flags in chat room management

and fix of double quoting in chat's javascript.

  1. … 11 more files in changeset.
Allow the use of naturalnum page parameter type with ::xowiki::Package initialize (thanks to Stefan Sobernig)

Put again naturalnum instead of integer in xowiki's permission admin page

  1. … 1 more file in changeset.
- add nonces to script elements

  1. … 3 more files in changeset.
- add nonces to script tags

- add body handlers

  1. … 7 more files in changeset.
- improve documentation, remove commented-out code

- use "ns_ictl trace delete" instead of "ns_ictl ondelete"

chat-procs overhaul:

- don't double encode everything

- avoid deprecated js functions escape()/unescape()

xowiki/www/ajax/streaming-chat.js, xowiki/www/ajax/scripted-streaming-chat.js

- scripted-mode: fix incorrect markup

- fix parameter passing to xowiki/www/ajax/chat.tcl to avoid rejects

- fix json_encode: one quote to man in xotcl-core/tcl/chat-procs.tcl

- don't dropt "user has_entered_the_room" in "xo::Chat instproc login",

since xowiki chat has otherwise no idea, who is logged in

  1. … 5 more files in changeset.
Introduced new options to set chat rooms so login and/or logout message are not issued everytime a user enters/exits the chat.

  1. … 15 more files in changeset.
Created new proc cr_check_mime_type, centralizing the retrieval of the mime_type from uploaded file's information.

Applied the new proc to the different situations in the system when we require mime_type retrieval: content-repository, file-storage and xotcl CrItem

TODO: get the real mime_type from the file content, but this would require some modification in the data model.

  1. … 7 more files in changeset.
- revert this mornings change, since this leads to many warnings

- use for hex codes 2-digit notation \xHH to make it compatible for tcl8.6

  1. … 5 more files in changeset.
- improve comment

- use same uplevel idiom everywhere (many thanks to antonio)

- use template::add_event_listener

- bump version number to 0.151

  1. … 1 more file in changeset.
- don't overwrite "xotcl::Object instproc serialize", since this is already defined by nsf (at least in versions 2.0 or newer)

- change value of ns_log_redirector_manager only, when it is defined

- renamve template::add_acs_confirm_handler into template::add_confirm_handler

  1. … 9 more files in changeset.
- iunclude information about ns_sets in the debug output

- adding an xo::stats command for occasionaly needed statistics on potential memory leaks

- make class "create" operations explicit

- update version dependencies

  1. … 1 more file in changeset.
Committing some fixes I had in stash since a while for this list interface, essentially fixing bugs.

Thing works properly for my use cases (of then), but probably something that is not a wrapper would be better.

Also removed javascript handler from directly in the markup to the body handler to comply with CSP

- added new function template::add_acs_confirm_handler for standardized confirm interactions ("are you sure") in order to get rid of onclick handlers

- bump version numbers to reflect dependencies

  1. … 1 more file in changeset.
- replace "my log ..." by "ns_log notice ..." as default exit handler (many thanks to Guenter Ernst for reporting)

- do not prevent default behavior

- make sure to load bootstrap after jquery

- fix js function name

- save dirty buffer

- replace on-click handler by event listener

- add CSP directives