util/datamanager.lua
Mon, 07 Mar 2022 00:35:29 +0100 Kim Alvefur spelling: non-existing mistakes (thanks timeless) 0.12.0
Mon, 07 Mar 2022 00:13:56 +0100 Kim Alvefur Spelling: Fix various spelling mistakes (thanks timeless)
Sun, 07 Feb 2021 19:23:33 +0100 Kim Alvefur util.datamanager: Support iterating over any file extension
Sat, 16 Jan 2021 15:49:46 +0100 Kim Alvefur util.datamanager: Fix not passing variables as format string to logger (thanks semgrep)
Mon, 24 Feb 2020 23:33:53 +0100 Kim Alvefur Merge 0.11->trunk
Mon, 24 Feb 2020 23:16:08 +0100 Kim Alvefur util.datamanager: Fix iterating over "users" (thanks marc0s) 0.11
Mon, 23 Dec 2019 21:01:55 +0100 Kim Alvefur util.datamanager: Ignore unused 'errno' variable [luacheck]
Fri, 03 May 2019 20:54:24 +0200 Kim Alvefur Fix various spelling mistakes [codespell]
Wed, 28 Feb 2018 20:06:26 +0100 Kim Alvefur vairious: Add annotation when an empty environment is set [luacheck]
Sun, 08 Oct 2017 18:34:57 +0200 Kim Alvefur util.datamanager: Encode the 'store' path component, preserving underscores
Mon, 17 Apr 2017 03:26:21 +0200 Kim Alvefur util.datamanager: Use already known index instead of measuring length each iteration
Tue, 28 Mar 2017 17:31:55 +0200 Kim Alvefur util.datamanager: Log where the error came from
Tue, 28 Mar 2017 17:31:24 +0200 Kim Alvefur util.datamanager: Rearrange locals
Tue, 28 Feb 2017 11:33:43 +0100 Kim Alvefur util.datamanager: Use pposix.atomic_append
Wed, 22 Mar 2017 12:02:52 +0100 Kim Alvefur util.datamanager: Remove check for file non-existence since ENOENT tells us that already
Wed, 22 Mar 2017 12:00:21 +0100 Kim Alvefur util.datamanager: Split long line [luacheck]
Wed, 01 Mar 2017 17:37:29 +0100 Kim Alvefur util.datamanager: Expose atomic_store as store_raw
Wed, 01 Mar 2017 17:15:56 +0100 Kim Alvefur util.datamanager: Use atomic store function when writing the first entry of a list
Wed, 01 Mar 2017 17:04:48 +0100 Kim Alvefur util.datamanager: Import value of ENOENT from util.pposix (if available)
Wed, 01 Mar 2017 16:44:59 +0100 Kim Alvefur util.datamanager: Ignore ENOENT (no such file) when loading data
Sun, 20 Nov 2016 12:06:36 +0100 Kim Alvefur util.datamanager: Shorter pattern
Sun, 20 Nov 2016 12:05:43 +0100 Kim Alvefur util.datamanager: Remove extraneous decoding of + to space, which we never never encode to
Sun, 20 Nov 2016 12:03:24 +0100 Kim Alvefur util.datamanager: Use the 'base' argument to tonumber() to indicate hexadecimal
Sat, 24 Sep 2016 18:31:16 +0200 Kim Alvefur util.datamanager: Add annotations to ignore name clashes [luacheck]
Sat, 24 Sep 2016 18:31:00 +0200 Kim Alvefur util.datamanager: Rename variables to avoid name clashes [luacheck]
Sun, 22 May 2016 14:38:07 +0200 Kim Alvefur util.datamanager: Import tostring and type (fix global access)
Sat, 27 Feb 2016 15:29:56 +0100 Kim Alvefur util.datamanager: Explicit handling of each error condition (see #632)
Thu, 25 Feb 2016 22:37:41 +0100 Kim Alvefur Merge 0.9->0.10
Thu, 25 Feb 2016 22:36:42 +0100 Kim Alvefur util.datamanager: Unreference file handle after closing it to prevent trying to close it again (fixes #632)
Fri, 11 Dec 2015 20:31:55 +0100 Kim Alvefur util.datamanager: Add append to public api
Fri, 11 Dec 2015 20:31:19 +0100 Kim Alvefur util.datamanager: Return extra location info
Fri, 11 Dec 2015 20:30:39 +0100 Kim Alvefur util.datamanager: Make sure only strings are passed as data to append()
Fri, 11 Dec 2015 20:29:55 +0100 Kim Alvefur util.datamanager: Add some comments about the append function
Fri, 11 Dec 2015 20:26:04 +0100 Kim Alvefur util.datamanager: Handle potential error from :write() call
Fri, 11 Dec 2015 20:24:36 +0100 Kim Alvefur util.datamanager: Handle potential issues from fallocate
Fri, 11 Dec 2015 20:22:54 +0100 Kim Alvefur util.datamanager: No shadowing of variable [luacheck]
Fri, 11 Dec 2015 20:18:24 +0100 Kim Alvefur util.datamanager: Skip past second check if first attemtp to open file succeeds
Fri, 11 Dec 2015 20:13:37 +0100 Kim Alvefur util.datamanager: In append() collect status when closing file handle as it may fail (eg the implied flush)
Fri, 11 Dec 2015 20:11:48 +0100 Kim Alvefur util.datamanager: Overwrite 'data' variable instead of shadownig it [luacheck]
Fri, 11 Dec 2015 20:07:22 +0100 Kim Alvefur util.datamanager: Factor out code for appending bytes to a file
Sat, 21 Feb 2015 10:36:37 +0100 Kim Alvefur util.*: Remove use of module() function, make all module functions local and return them in a table at the end
Wed, 13 May 2015 21:44:13 +0200 Kim Alvefur util.datamanager: Fix traceback from trying to purge when storage is empty or otherwise unaccessible (fixes #496)
Fri, 03 Apr 2015 12:10:30 +0200 Kim Alvefur util.datamanager: Fix traceback due to %s in log message
Fri, 20 Feb 2015 19:00:01 +0100 Kim Alvefur util.datamanager: Check that the global 'prosody' exists before using it (fixes nil indexing in use outside of prosody)
Sun, 07 Apr 2013 20:28:12 +0100 Matthew Wild util.datamanager: Clear the cache of created directories on storage failure, and retry
Sun, 07 Apr 2013 16:56:49 +0000 Marco Cirillo util.datamanager: expose path decode and encode functions.
Sun, 16 Dec 2012 14:36:24 +0100 Kim Alvefur util.datamanager: Don't escape the name of a store
Fri, 14 Dec 2012 14:25:58 +0100 Kim Alvefur util.datamanager: Remove unused variable
Fri, 14 Dec 2012 14:21:32 +0100 Kim Alvefur util.datamanager: Remove dead code path
Fri, 21 Sep 2012 17:23:08 +0200 Kim Alvefur mod_storage_internal, datamanager: Add support for iterating over users with data in a store
Mon, 17 Sep 2012 05:42:10 +0200 Kim Alvefur storagemanager, datamanager, mod_storage_{internal,sql}: Replace list_stores() with an iterator version
Wed, 12 Sep 2012 22:03:06 +0500 Waqas Hussain util.datamanager: Make the util.pposix dependency optional.
Sun, 26 Aug 2012 20:53:40 +0200 Kim Alvefur util.datamanager: Ignore errors if the file is gone after removing it
Sat, 25 Aug 2012 01:21:41 +0200 Kim Alvefur util.datamanager: Collect errors when deleting all stores of a user, but ignore "no such file"
Tue, 31 Jul 2012 23:07:02 +0100 Matthew Wild Merge Waqas<>Zash
Tue, 31 Jul 2012 23:34:11 +0200 Kim Alvefur util.datamanager: Try to open in read+write mode, then retry with write mode if that fails (usually because it doesn't exist)
Wed, 01 Aug 2012 01:36:34 +0500 Waqas Hussain util.datamanager: Don't use os.rename on non-POSIX. It doesn't overwrite exisitng files on Windows.
Tue, 31 Jul 2012 08:23:55 +0200 Kim Alvefur util.datamanager: Add missing mode flag to seek call
Sun, 29 Jul 2012 03:30:59 +0200 Kim Alvefur util.datamanager: Remove a few unused imports
Sun, 29 Jul 2012 03:26:03 +0200 Kim Alvefur util.datamanager: Write to a temporary file and atomically move it into place
Sat, 28 Jul 2012 22:37:24 +0200 Kim Alvefur util.datamanager: Use pposix.fallocate() to make sure appends succeed. Also add a fallback fallocate()
Sat, 28 Jul 2012 21:31:54 +0200 Kim Alvefur util.datamanager: Add function for removing all data belonging to a user
Sat, 28 Jul 2012 21:22:42 +0200 Kim Alvefur util.datamanager: Add function for listing stores
Sat, 28 Jul 2012 01:14:31 +0100 Matthew Wild Merge with Florob
Fri, 08 Jun 2012 05:04:38 +0200 Florian Zeitz Eliminate direct setfenv usage
Mon, 23 Jul 2012 17:32:33 +0100 Matthew Wild Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages
Mon, 12 Dec 2011 17:08:48 +1100 James Callahan util/datamanager: Use package.config to figure out directory seperator
Tue, 11 Jan 2011 05:28:07 +0000 Matthew Wild util.datamanager: Change from 'Failed to load' to 'Assuming empty' for data store files that do not seem to exist
Tue, 11 Jan 2011 04:19:03 +0000 Matthew Wild util.datamanager: Handle gracefully the lack of prosody.paths.data
Fri, 07 Jan 2011 11:55:19 +0000 Matthew Wild util.datamanager: Use prosody.paths.data as the initial value for data_path
Fri, 10 Dec 2010 00:23:47 +0500 Waqas Hussain util.datamanager: Return an error string when pcall fails on a loaded list file.
Fri, 10 Dec 2010 00:21:09 +0500 Waqas Hussain util.datamanager: When failing to load a list file, and the file exists, log an error, and return nil, error.
Sun, 23 May 2010 23:55:01 +0500 Waqas Hussain util.datamanager: Return an error string when failing to save.
Sat, 22 May 2010 05:49:21 +0500 Waqas Hussain util.datamanager: When failing to load a file, and the file exists, return nil, error.
Mon, 22 Mar 2010 17:24:55 +0000 Matthew Wild Merge 0.6->0.7
Mon, 22 Mar 2010 17:06:15 +0000 Matthew Wild Update copyright headers for 2010
Sat, 13 Feb 2010 15:34:22 +0000 Matthew Wild Backed out changeset cb1f9266130b: better way to achieve this to be committed Real Soon Now.
Thu, 11 Feb 2010 05:21:03 +0500 Waqas Hussain util.datamanager: Added support for hooks to override behavior.
Sun, 10 Jan 2010 23:13:30 +0000 Matthew Wild util.datamanager: Use pposix.mkdir if available
Sun, 06 Dec 2009 00:35:06 +0000 Matthew Wild util.datamanager: Store data stores with no host in '_global' folder
Mon, 23 Nov 2009 20:18:04 +0000 Matthew Wild util.datamanager: Replace popen(mkdir) with lfs.mkdir, keeping the just-in-time creation until we have the new datamanager API
Sun, 06 Sep 2009 01:33:41 +0500 Waqas Hussain datamanager: Fixed logging errors on deletion of datastores not owned by a user@host
Fri, 10 Jul 2009 03:11:45 +0100 Matthew Wild Remove version number from copyright headers
Thu, 02 Jul 2009 21:34:45 +0500 Waqas Hussain datamanager: Fixed incorrect callback result checking
Mon, 22 Jun 2009 14:15:33 +0100 Matthew Wild util.datamanager: Allow multiple data storage callbacks, and allow them to modify parameters
Sat, 02 May 2009 22:04:21 +0100 Matthew Wild util.datamanager: Lower log level of 'Setting data path' to 'debug'
Mon, 30 Mar 2009 03:22:34 +0500 Waqas Hussain Added: datamanager: Allow a callback to be installed which selectively prevents disk writes
Sun, 22 Mar 2009 20:50:37 +0000 Matthew Wild util.datamanager: Don't delete data when first entry in table is 'false'. My favourite bug so far.
Fri, 20 Mar 2009 20:16:25 +0000 Matthew Wild 0.3->0.4
Fri, 30 Jan 2009 17:59:26 +0000 Matthew Wild Update copyright notices for 2009
Fri, 30 Jan 2009 17:40:25 +0000 Matthew Wild 0.2->0.3
Fri, 30 Jan 2009 17:22:56 +0000 Matthew Wild GPL->MIT!
Fri, 16 Jan 2009 05:37:17 +0000 Matthew Wild util.datamanager: Small fix for clearer logging of data path
Tue, 13 Jan 2009 19:41:52 +0500 Waqas Hussain datamanager: Change log message from type "warn" to "debug" when loading a file fails
Thu, 25 Dec 2008 06:35:05 +0500 Waqas Hussain Moved directory auto-creation to datamanager
Tue, 16 Dec 2008 03:46:17 +0500 Waqas Hussain Fixed URL encoding to generate %0x instead of %x
Wed, 10 Dec 2008 15:44:03 +0000 Matthew Wild 0.1 -> 0.2
Sat, 06 Dec 2008 19:46:58 +0000 Matthew Wild Datamanager logs data_path
Fri, 05 Dec 2008 00:16:38 +0500 Waqas Hussain Changed util.datamanager to use util.serialization
Wed, 03 Dec 2008 14:39:07 +0000 Matthew Wild Insert copyright/license headers
Sat, 29 Nov 2008 05:53:11 +0500 Waqas Hussain Fixed logging in datamanager
Fri, 28 Nov 2008 20:17:20 +0500 Waqas Hussain Added option core.data_path
Sat, 15 Nov 2008 05:33:14 +0500 Waqas Hussain Some bugs fixed
Thu, 13 Nov 2008 12:10:42 +0500 Waqas Hussain Added support for storing (and removing), loading and appending to lists of data to datamanager (for supporting offline messages)
Mon, 03 Nov 2008 07:50:09 +0500 Waqas Hussain Datamanager now deletes files with no data
Sun, 26 Oct 2008 21:19:04 +0500 Waqas Hussain Datamanager Fixes and improvements
Sun, 26 Oct 2008 00:22:18 +0500 Waqas Hussain Bug fixes and checks for presence subscriptions, etc
Thu, 23 Oct 2008 18:42:29 +0500 Waqas Hussain Fixed: Some modules did not return anything
Thu, 23 Oct 2008 02:49:43 +0500 Waqas Hussain Fixed: datamanager.store and datamanager.load could crash when username or host arguments were nil. (useful for server specific and global data).
Thu, 09 Oct 2008 03:21:16 +0500 Waqas Hussain Minor fix
Thu, 09 Oct 2008 03:01:47 +0500 Waqas Hussain Merge from Matthew. datamanager.simplesave fix
Thu, 09 Oct 2008 01:20:43 +0500 Waqas Hussain Added: Datastore support for hosts and global data in addition to users
Wed, 08 Oct 2008 22:42:51 +0100 Matthew Wild Fix for saving tables with non-string keys
Fri, 22 Aug 2008 21:09:04 +0000 matthew First commit, where do you want to go tomorrow?
less more (0) tip