Commit Graph

124 Commits

Author SHA1 Message Date
Alexander B
3852a6b6c2
Solaris.build fix #3843 and #3643 (#3939)
* try fix compilation for solaris

* this commit for issue #3843 and #3643
changes in Types.h allow ignore problem with declaration of std::int8_t. int8_t can be defined as char or signed char. IMHO we need strong types for Poco::Int's

Envelop.cpp contains initializer for EVP_CIPHER_CTX_init, because this function prototype depends on openssl version.

Application.cpp contains includes especial for SOLARIS, for ioctl support

ClassLoaderTest.cpp and SharedLibraryTest.cpp contains changes because loadlibrary(dlopen) doesn't load library from current directory by default

LocalDateTimeTest.cpp contains changes because SOLARIS use std::tm without tm_gmtoff

* fix : define of SOLARIOS OS in LocalDateTimeTest

* remove unnecessary wrapper

* fix output dir for windows build with multi-config build

* try to fix bug with unixodbc version in linux-builds
[read here](https://github.com/microsoft/linux-package-repositories/issues/36)

* try to fix bug with unixodbc version in linux-builds
[read here](https://github.com/microsoft/linux-package-repositories/issues/36)

* fix : warning in main cmake for if-condition for multi-config build
fix : error for linux-gcc-make-cxx20, use --allow-downgrades for unixodbc

* fix : warning for cmake windows builds
revert changes for linux-gcc-make-cxx20

* revert ci.yml, remove unixodbc version

* try re-run build

---------

Co-authored-by: Aleksandar Fabijanic <aleks-f@users.noreply.github.com>
2023-03-18 01:28:47 -05:00
Alexander Gololobov
0fd1749b81
Use map from key to count instead of multiset (#3885)
* Test that enumerates lots of elements with the same name

* Use map from key to count instead of multiset

Co-authored-by: Alexander Gololobov <{ID}+{username}@users.noreply.github.com>
2023-01-24 00:52:23 -06:00
Vojin Ilic
46a55303ae Fix deadlock in Timer when one sync and one async cancel requests are issued
Timer is implemented with internal queue. If a user wants to cancel all pending tasks it can call .cancel to schedule CancelNotification.
As a part of processing of CancelNotification it will just flush the whole queue. It does have special processing for StopNotification so that Timer destruction doesn't get blocked.
Now if we first schedule async cancel and before this first cancel is processed we schedule another cancel but this time a sync second one will block because it is never notified that all tasks are canceled, _finished event is never set on that flushed CancelNotification.

Fix: add diffrent processing in case of CancelNotification to set all of it's _finished events.
Also add a test for this situation.
2023-01-16 11:53:11 +01:00
John Vandenberg
0e6e16645c
Remove trailing whitespace (#3668) 2022-07-07 04:18:20 -05:00
Aleksandar Fabijanic
168f1eb6e2
As of C++11, std::swap is noexcept. #2386 (#3645)
* As of C++11, std::swap is noexcept. #2386

* fix(Any): remove throw on swap

* fix(Any): As of C++11, std::swap is noexcept. #2386

* fix(Any): make size const #2386

* fix(SimpleRowFormatter): clang won't compile noexcept #2386

* a couple of arm fixes

* fix(Any): As of C++11, std::swap is noexcept. #2386

* fix(AnyTest): local() for POCO_NO_SOO# 2386

* test(RSACipher): RSA encryption without private key #2367

* chore(RSACipherTest): delete ciphers #2367
2022-06-28 12:14:36 -05:00
Alex Fabijanic
37cb890e58 fix(ConfigurationView): ConfigurationView and JSON is broken for array access #3635 2022-06-20 20:59:10 +02:00
Alex Fabijanic
41f11b02bc chore(LocalConfigurationView): fix style #3529 2022-06-20 17:48:53 +02:00
Aleksandar Fabijanic
ff879f5905
Fix/tsan (#3617)
* fix(Foundation): tsan warnings fixes

* fix(Thread_POSIX): tsan warnings fixes; add tsan.suppress

* fix(Util): tsan fixes

* fix(netSSL_OpenSSL): tsan fixes

* fix(Data): tsan warnings fixes

* feat(ci): add tsan job

* feat(ci): add tsan job, another attempt

* feat(ci): add tsan job, 3rd attempt

* fix(Foundation): tsan warnings fixes

* fix(Thread_POSIX): tsan warnings fixes; add tsan.suppress

* fix(Util): tsan fixes

* fix(netSSL_OpenSSL): tsan fixes

* fix(Data): tsan warnings fixes

* feat(ci): add tsan job

* feat(ci): add tsan job, another attempt

* feat(ci): add tsan job, 3rd attempt

* fix(ResultMetadata): memory leak #3474

* feat(ci): disable ActiveDispatcher tests for tsan runs

* feat(ci): try to fix tsan options file detection (again)

* chore(TestLibrary: correct spelling

* fix(ci): fix tsan run; add -y to apt; disable samples build for some jobs

* fix(ci): add mysql ports

* feat(ci): add VS asan

* feat(double-conversion): Upgrade double-conversion to v3.2.0 #3624

* chore(asan): disable msvc asan build (dll not found)

* chore(double-conversion): move NumericString.h before double-conversion includes to prevent min/max collision; reinstate lost loongarch64

* chore(JSON): sync pdjson with upstream

* fix(Statement): Poco::Data::Statement becomes unusable after exception #2287
2022-06-01 23:47:26 -05:00
Kevin Dick
9a4853582f
Added LocalConfigurationView to only search inside the viewed scope (#3529) 2022-05-26 09:40:13 -05:00
Günter Obiltschnig
010cf8b7d0 #3507: Reference counting for bound configuration in Util::Option is broken 2022-02-19 10:35:30 +01:00
Günter Obiltschnig
d28d2b7a80 remove blank line 2021-06-23 08:35:01 +02:00
Günter Obiltschnig
22eb76d3ae #3302: MSVC: Poco hides warnings (C4996) for the C++14 attribute [[deprecated]] 2021-06-17 18:20:29 +02:00
Günter Obiltschnig
ea455ad891 fix warnings 2021-06-15 10:36:53 +02:00
Günter Obiltschnig
6fda5b590b #3266: Order of Util::Application::uninitialize() is not in reverse as documented 2021-06-15 07:45:47 +02:00
Günter Obiltschnig
43aa85df70 #3193: ServerApplication::registerService() unquoted path security vulnerability 2021-06-15 07:32:47 +02:00
Günter Obiltschnig
4066c4d794 add Application::windowSize() 2021-04-11 16:00:53 +02:00
Günter Obiltschnig
e3a05a4c58 fixed a warning 2020-02-14 11:22:18 +01:00
Günter Obiltschnig
bb63b28121
Merge pull request #2920 from KevDi/closeServiceHandleAfterUnregister
Close Service Handle after DeleteService Function call
2020-02-12 20:36:23 +01:00
Jan Kevin Dick
753cfcecd7 Close Service Handle after DeleteService Function call 2020-02-12 13:10:09 +01:00
Jan Kevin Dick
e51adf72cf Fixed setFailureActions. Function could crash if the given Vector has
less then 3 Elements. Also the Function crashes if no SVC_REBOOT or
SVC_RUN_COMMAND are specified. If this is the case ac.lpCommand and
ac.lpRebootMessage are not set.
2020-02-12 13:01:45 +01:00
Günter Obiltschnig
71585b7daa #2152: XDG support 2020-01-21 21:20:35 +01:00
Günter Obiltschnig
03d1dd9822 fixes for macos/clang 2020-01-09 11:53:03 +01:00
Günter Obiltschnig
1bf40a0cd2 merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8 2020-01-09 10:08:09 +01:00
Günter Obiltschnig
3fdf8624a9
Merge pull request #2840 from KevDi/bugfix/deleteRegKeyOnWOW6432Node
Deleting Registry Keys on the WOW6432Node is not possible on 64Bit Applications
2019-11-25 11:58:32 +01:00
Jan Kevin Dick
51fe7836ca Rename Method and fix error in vcxproj File 2019-11-18 11:57:58 +01:00
Jan Kevin Dick
991387a113 Passing _readOnly and _extraSam inside delete Key to the RegistryKey Constructor 2019-11-18 11:48:45 +01:00
Jan Kevin Dick
5be6be5228 Added to the x64 Project 2019-11-18 11:32:57 +01:00
Jan Kevin Dick
3917135a7f Added Method to configure the Failure Actions 2019-11-18 11:24:04 +01:00
Jan Kevin Dick
9762ed37e9 Added Method to Query the Failure Actions for the Service 2019-11-18 10:29:17 +01:00
Jan Kevin Dick
34ad48d16c Added Method to check if a service is stopped 2019-11-18 10:14:39 +01:00
Jan Kevin Dick
5a484c1896 Added Constructor to create WinService with an existing Connection to a Service Manager 2019-11-18 10:08:11 +01:00
Günter Obiltschnig
d73bb2ea86 fixed GH #2058: Synchronization issue in Poco::Util::Timer at destruction 2018-03-06 17:33:02 +01:00
Joerg-Christian Boehme
73897b4357 Add POCO_OS_ANDROID as platfrom definitons (#2186)
* Add POCO_OS_ANDROID as platform definition

* Ignore test big ping when its failing
2018-02-26 19:18:45 -06:00
Björn Schramke
b9259452a9 add new path values (configHome,cacheHome, etc) application config 2018-02-13 08:09:48 -06:00
Björn Schramke
b59329034f add some methods to Poco::Path for make it easy to follow XDG Base Directory Specification 2018-02-13 08:07:45 -06:00
Rudolf-Walter Kiss-Szakács
275275baa9 Issues #1609 and #561 have not made it into a stable release #2152 2018-02-13 07:53:41 -06:00
Guenter Obiltschnig
7d4d01e343 GH #1988: Remove OpenVMS support 2017-11-09 12:42:13 +01:00
Guenter Obiltschnig
d172273a75 remove remaining $Id$ tags from file headers 2017-10-31 16:01:51 +01:00
Günter Obiltschnig
04e7e04d4d Remove \$Id`$ headers 2017-09-09 11:14:06 +02:00
Günter Obiltschnig
968dfe77dc fixed typos and style 2017-09-01 20:54:11 +02:00
Günter Obiltschnig
8d65ebf02a Poco::Util::LayeredConfiguration: added support for labelling configurations and finding them by their label 2017-09-01 20:23:35 +02:00
Guenter Obiltschnig
df855c88b7 fixed GH #1462: AbstractConfiguration::getUInt does not parse hex numbers 2016-10-24 09:41:49 +02:00
Guenter Obiltschnig
5df2508986 XMLConfiguration default (and single-argument delimiter) constructor now loads an empty XML document with "config" root element to make the configuration usable without an additional call to load() or loadEmpty(). 2016-10-16 13:39:17 +02:00
Guenter Obiltschnig
80f95d7c16 add a load() overload to specify name pool size 2016-10-07 10:59:24 +02:00
Guenter Obiltschnig
ff1834eb76 added Poco::Util::MapConfiguration::copyTo() 2016-03-01 07:31:18 +01:00
Guenter Obiltschnig
8b4709155d fixed GH #1114: World-write permissions on files created by daemon. Default umask is now 027; other mask can be set with --umask command-line parameter 2016-02-27 21:17:39 +01:00
Guenter Obiltschnig
d4cdb91c01 respect POCO_NO_FORK_EXEC in ServerApplication 2015-09-29 14:32:30 +02:00
Alex Fabijanic
74c24a3789 related to GH#705: Error building with ENABLE_UTIL=ON and ENABLE_XML=OFF 2015-02-02 00:00:26 -06:00
Scott Davis
7b347ea592 Make WinRegistryKey easier to extend 2015-01-08 16:44:59 -05:00
Günter Obiltschnig
c455631e45 WinRegistryConfiguration fix 2014-11-26 10:52:49 +01:00