Tomasz Sowa
06be33ba5f
make depend
2021-05-21 23:06:57 +02:00
Tomasz Sowa
b2cffa39e1
added models Thread and ThreadFiles in thread plugin
2021-05-21 23:06:48 +02:00
Tomasz Sowa
86ef2529b1
fixed in some places: system->AddFile() returns bool now instead of Error
2021-05-21 17:41:16 +02:00
Tomasz Sowa
f1b9d1b870
updated to the new pikotools api: changed the way how child_spaces are created in Space class
2021-05-21 17:17:17 +02:00
Tomasz Sowa
fe67b5d72a
updated to the new pikotools api: snake_case names of methods from SpaceParser
2021-05-21 04:51:58 +02:00
Tomasz Sowa
27720afaf2
updated to the new pikotools api: SpaceParser::SetSpace(...) methods have been removed
2021-05-21 01:37:42 +02:00
Tomasz Sowa
8bb585d97d
updated to the new pikotools api: changed utf8 functions PascalCase to snake_case
2021-05-21 00:41:27 +02:00
Tomasz Sowa
8c523ce8b9
make depend
2021-05-21 00:32:58 +02:00
Tomasz Sowa
e48a28a5c8
namespace PT renamed to pt
2021-05-20 20:59:12 +02:00
Tomasz Sowa
d66a36cf21
make depend
2021-05-14 03:32:03 +02:00
Tomasz Sowa
a94e09f0aa
added support for Model migrations
...
now we have a table core.migration and each model (User, Group, Item, ItemContent and a new Migration) have its own
row in the table with a version number
added to config:
db_make_migration_if_needed and db_stop_if_migration_fails (need description yet)
2021-05-14 03:31:29 +02:00
Tomasz Sowa
4df10de6b7
methods eq() from finder can have now a table name
2021-05-13 19:33:19 +02:00
Tomasz Sowa
6d07535dad
updated uikit to 3.6.21 version
2021-05-13 06:24:44 +02:00
Tomasz Sowa
ee354d2ded
renamed in Models: map_fields() to fields(), prepare_table() to table()
2021-05-13 03:29:41 +02:00
Tomasz Sowa
e64bd1fba8
added more html tags to extraAllowedContent (ckeditor)
2021-05-13 03:24:37 +02:00
Tomasz Sowa
031e673c51
fixed: passwd winix function: pass_encrypted was not cleared if we are not using rsa for encrypting passwords anymore
2021-05-13 02:02:15 +02:00
Tomasz Sowa
801c9a2cda
make depend
2021-05-11 22:22:10 +02:00
Tomasz Sowa
685b3ca5ee
Makefile: source files from pikotools are now in pikotools/src
2021-05-11 22:22:03 +02:00
Tomasz Sowa
f1af7e2eeb
updated to the current pikotools api from branch api2021
2021-05-11 22:20:46 +02:00
Tomasz Sowa
85f9fda984
fixed: in passwd winix function: clear password hash when using rsa encoding
2021-05-11 22:15:52 +02:00
Tomasz Sowa
bb513b0187
make depend
2021-04-30 01:35:40 +02:00
Tomasz Sowa
4277f90bad
start working on User and Group classes
...
- User and Group has been moved to 'models' directory
- removed UserPass struct (passwords fields were put to User struct)
not working yet, we need support for binary blobs in morm
2021-04-30 01:34:48 +02:00
Tomasz Sowa
ccda2bc2fd
added option do_migration_to_winix_fullmorm do the config (only temporarily)
...
if true then we make Item::do_migration() and exit
2021-04-14 14:13:47 +02:00
Tomasz Sowa
4b71530f4c
added to Config:
...
bool Config::HasValue(const wchar_t * name, const wchar_t * value)
2021-04-12 18:55:04 +02:00
Tomasz Sowa
a8a9db53be
remove some Lock() and Unlock() from Plugin
2021-04-11 12:09:42 +02:00
Tomasz Sowa
634cf07d44
using Winix::Lock object instead of Lock() method in ThreadManager
2021-04-10 21:12:28 +02:00
Tomasz Sowa
0e0c006d5a
fixed: thread locking problem in Image: method Lock() was used instead of Winix::Lock object
2021-04-10 19:46:50 +02:00
Tomasz Sowa
486067a4b2
clang thread sanitizer reported a data race in App::Start()
...
synchro.was_stop_signal was read without locking
==================
WARNING: ThreadSanitizer: data race (pid=13831)
Write of size 1 at 0x000000dc4d18 by thread T1 (mutexes: write M44):
#0 Winix::App::SpecialThreadForSignals(void*) /disk2Tc/home/tomek/roboczy/prog/winix/winixd/core/app.cpp:2226:31 (winix.so+0x1f7465)
Previous read of size 1 at 0x000000dc4d18 by main thread:
#0 Winix::App::Start() /disk2Tc/home/tomek/roboczy/prog/winix/winixd/core/app.cpp:651:18 (winix.so+0x1ee9af)
#1 main /disk2Tc/home/tomek/roboczy/prog/winix/winixd/main/main.cpp:222:6 (winix+0x2d74c1)
Location is global 'Winix::app' of size 65840 at 0x000000db5908 (winix+0x000000dc4d18)
Mutex M44 (0x000000dc4d10) created at:
#0 pthread_mutex_lock /disk2Tb/usr/src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc:4153:3 (winix+0x2ac204)
#1 Winix::Synchro::Lock() /disk2Tc/home/tomek/roboczy/prog/winix/winixd/core/synchro.cpp:68:12 (winix.so+0x2e5822)
#2 Winix::Lock::Lock(Winix::Synchro*) /disk2Tc/home/tomek/roboczy/prog/winix/winixd/core/lock.cpp:53:11 (winix.so+0x295522)
#3 Winix::FileLog::get_local_date(PT::Date const&) /disk2Tc/home/tomek/roboczy/prog/winix/winixd/core/filelog.cpp:98:8 (winix.so+0x261183)
#4 Winix::Log::PrintDate(PT::Date const&) /disk2Tc/home/tomek/roboczy/prog/winix/winixd/core/log.cpp:80:30 (winix.so+0x295a21)
#5 Winix::LogInfo(Winix::Log&, Winix::LogManipulators, char const*, bool, char const*) /disk2Tc/home/tomek/roboczy/prog/winix/winixd/main/main.cpp:104:6 (winix+0x2d69ec)
#6 main /disk2Tc/home/tomek/roboczy/prog/winix/winixd/main/main.cpp:190:2 (winix+0x2d7363)
Thread T1 (tid=100187, running) created by main thread at:
#0 pthread_create /disk2Tb/usr/src/contrib/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:962:3 (winix+0x295bb3)
#1 Winix::App::StartThreads() /disk2Tc/home/tomek/roboczy/prog/winix/winixd/core/app.cpp:2246:2 (winix.so+0x1f7549)
#2 main /disk2Tc/home/tomek/roboczy/prog/winix/winixd/main/main.cpp:212:6 (winix+0x2d743e)
SUMMARY: ThreadSanitizer: data race /disk2Tc/home/tomek/roboczy/prog/winix/winixd/core/app.cpp:2226:31 in Winix::App::SpecialThreadForSignals(void*)
==================
2021-04-10 17:14:51 +02:00
Tomasz Sowa
35e10ed469
updated to the new Pikotools api (new Space struct)
2021-04-09 17:50:58 +02:00
Tomasz Sowa
00b980e74b
make depend
2021-04-09 16:02:54 +02:00
Tomasz Sowa
efdc0e7c97
etc/time_zones.conf changed values: "true" -> true, "false" -> false
2021-04-09 10:25:10 +02:00
Tomasz Sowa
8b64d2066f
changed: new space characters in etc/time_zones.conf:
...
( -> {
) -> }
2021-03-31 20:26:30 +02:00
Tomasz Sowa
8d87d9a875
changed in Makefile: we have now one lib pikotools/pikotools.a
...
make depend
2021-03-31 20:25:09 +02:00
Tomasz Sowa
8fc1848ecc
uikit updated to 3.6.18
2021-03-31 20:21:24 +02:00
Tomasz Sowa
bbc0a67153
added support for new morm api
...
- field(...) methods from Model take now FT structure instead of insertable/updatable/primary_key boolean flags
- table name is set in a prepare_table() method now
- added meta and admin_meta from ItemContent (morm has a field() method with PT::Space argument now)
2021-03-11 18:48:18 +01:00
Tomasz Sowa
e8ba2a7bd1
fixed: incorrect status was set when editing a file
...
now System::EditFile() returns boolean
2021-03-11 18:42:26 +01:00
Tomasz Sowa
23f1c112a4
make depend
2021-03-10 16:40:22 +01:00
Tomasz Sowa
4d76e53554
in after_insert() methods: changed get_last_sequence -> get_last_sequence_for_primary_key
2021-03-09 18:16:29 +01:00
Tomasz Sowa
73352e680e
Make depend
2021-03-08 21:10:33 +01:00
Tomasz Sowa
57aad8b454
removed from Item: update() and save() methods which take the 'url_was_changed' argument
...
and added ItemModelData (based on morm::ModelData) class which has 'prepare_unique_url' field,
an object of this class is passed to update(), insert() and save() methods
fixed: Dirs::CheckRootDir(): update should update childs too (privileges)
WIP: #4
2021-03-08 21:06:50 +01:00
Tomasz Sowa
ab5c44a2cb
removed some old methods for adding/editing Item from Db
2021-02-25 00:17:07 +01:00
Tomasz Sowa
3e84eb9dbf
Makefile deps
2021-02-25 00:15:03 +01:00
Tomasz Sowa
afbe82e9f4
changed the way how prefixes are added to urls
...
instead at the end we adding a prefix before an extension, e.g: filename_(2).jpg
2021-02-25 00:12:45 +01:00
Tomasz Sowa
51b1aed483
removed DbItemQuery and DbItemColumns which were used for database accessing for Item class
2021-02-24 22:54:36 +01:00
Tomasz Sowa
32e93a04c5
Item class has been moved to a new directory 'models', a new class has been added: ItemContent
...
and same fields from Item were moved to ItemContent
Item
- id
- parent_id
- type (file, dir, symlink)
- url
- subject
- template (html template)
- sort_index
- content_id
ItemContent
- id
- ref -> references (renamed)
- user_id
- modification_user_id
- group_id
- privileges
- date_creation
- date_modification
- guest_name
- link_to
- link_redirect
- file_path
- file_fs
- file_type
- file_size
- has_thumb -> file_has_thumb (renamed)
- hash -> file_hash (renamed)
- hash_type -> file_hash_type (renamed)
- content -> content_raw (renamed)
- content_type -> content_raw_type (renamed)
- content_parsed
- content_parsed_type
- meta
- ameta -> meta_admin (renamed)
- modify_index (removed)
WIP: #4
2021-02-24 01:19:47 +01:00
Tomasz Sowa
3d7ece15f8
changed version to 0.7.2
2021-02-18 21:07:05 +01:00
Tomasz Sowa
541597f355
fixed: in TimeZone::SetTzDst() was used operator && instead of ||
2021-02-17 18:36:50 +01:00
Tomasz Sowa
5fe843d76b
set -std=c++20 in Makefile
2021-02-17 18:07:05 +01:00
Tomasz Sowa
3191369ece
added 'using PT::FileLog::init' to FileLog to suppress clang warning:
...
warning: 'Winix::FileLog::init' hides overloaded virtual function [-Woverloaded-virtual]
2021-02-17 18:06:00 +01:00
Tomasz Sowa
a4de11d69c
fixed: Image did not use 'savelog' when creating logs
...
before commit 4832c7db4b
the logs were lost, but after 4832c7db4b
the logs were printed when winix shuts down
in 4832c7db4b
at the end of BaseThread::StartRoutine()
has been added a call to save_log()
2021-02-17 16:17:36 +01:00