Commit Graph

5729 Commits

Author SHA1 Message Date
Günter Obiltschnig
6d7b7edfcf fix(PocoDoc): postgres headers not found 2024-02-06 12:38:21 +01:00
Günter Obiltschnig
37c7fe2921 fix(PocoDoc): add -DPOCO_DOC 2024-02-06 10:05:47 +01:00
Günter Obiltschnig
7ffdcf97d4 fix: make headers parseable by CppParser/PocoDoc 2024-02-06 10:00:48 +01:00
Günter Obiltschnig
3bb76f51ad fix(CppParser): parsing of function template parameters and namespace imports 2024-02-06 10:00:41 +01:00
Günter Obiltschnig
ba2c6cf839 feat(PocoDoc): C++11 attributes support 2024-02-05 21:06:37 +01:00
Günter Obiltschnig
568b0fca8e feat(CppParser): C++11 attributes support 2024-02-05 21:06:28 +01:00
Alex Fabijanic
ad07839db9 fix(CppParser): Documentation generation (some minor fixes, WiP) #4441 2024-02-05 19:06:22 +01:00
Matej Kenda
695f813eb6 Release 1.13.1: Update release notes, changelog, contributors, version files. (#4440) 2024-02-05 13:43:55 +01:00
Aleksandar Fabijanic
69fd7c39e7
feat(build): add arm cross-compile and CI #4437 (#4438) 2024-02-04 01:00:16 +01:00
Matej Kenda
9aec79719b fix(logs): synchronise log file rotation and compression. 2024-02-01 13:42:38 +01:00
Aleksandar Fabijanic
5bdbab6c5c
enh(SQLite): SQLite FTS5 #4367 (#4433) 2024-02-01 09:53:06 +01:00
Aleksandar Fabijanic
c7d16b2a7e
4368 oracle odbc tests (#4410)
* feat(format): Add string_view format type spec #4409

* chore(Types): add demangle

* fix(Data): Oracle failing ODBC tests #4368

* fix some CQL and fuzz warnings; add Var::typeName()

* fix(build): -std=c++17 and c11

* fix windows build

* fix(Foundation): test apps vs projects c++17

* chore(build): remove uneeded compiler flag

* fix(VarHolder): number of digits range check for int->float conversion (reported by CIFuzz)

* fix(test): CIFuzz

* fix(CIFuzz): another attempt

* fix(progen): add LanguageStandard (stdcpp17, stdc11); regenerate vs170 projects

* fix(CiFuzz): add int->float precision loss barrier; fix erroneous number of digits logic

* enh(Var): silent loss of precision on int->float conversion #4423

* enh(Var): silent loss of precision on int->float conversion #4423

* chore(build): remove old build files

* chore: fix missing parens warning

* enh(Thread_POSIX): prevent double-joining; add error description to exceptions

* fix(Data): unresolved Column<long> linkage in test

* fix(demangle): determine type name from template parameter; add eror diagnostic for demangling failures

* chore(buildwin): remove old vs versions from build and progen scripts; update documentation

* chore(buildwin): remove leftover closing curly
2024-01-31 22:07:07 +01:00
Aleksandar Fabijanic
bf2f96847a Revert "chore(buildwin): remove leftover closing curly"
This reverts commit 988e9380f2.
2024-01-31 16:57:07 +01:00
Aleksandar Fabijanic
988e9380f2 chore(buildwin): remove leftover closing curly 2024-01-31 16:47:15 +01:00
Matej Kenda
eb51c78305 fix(LogFile): Unify flushing behaviour of WIN32 and STD implementation (#2443) 2024-01-31 14:35:47 +01:00
Matej Kenda
db5a8a7112 fix(SSLManager): Fixed regression introduced in PR #4103, fixes #4421 2024-01-31 10:50:21 +01:00
Matej Kenda
41ce8be229 enh(tests): Ability to enable/disable testing of deprecated functionality. (#4425) 2024-01-30 21:53:42 +01:00
Matej Kenda
6456d03df7 enh(File): Linux, macOS: microsecond precision for file times (create and modification time). 2024-01-30 10:27:44 +01:00
Günter Obiltschnig
d5a5ebc2d7 enh: #3890: Get rid of SingletonHolder 2024-01-30 09:56:27 +01:00
Günter Obiltschnig
33638df51e enh: #4216: use std::string literals 2024-01-30 09:35:35 +01:00
Matej Kenda
d3525945bd test(ThreadPool): unit test for thread pool shutdown when no worker is running. (#2450) 2024-01-29 14:03:24 +01:00
Andrew Auclair
ae341843e9
Implement GetAdaptersAddresses API (#4419)
* Upgrade from GetAdaptersInfo to GetAdaptersAddresses API. The code has been swapped back to a buffer of bytes because the data structure built by GetAdaptersAddresses is a linked list and the returned size is not a multiple of the IP_ADAPTERS_ADDRESSES struct.

* Adding back Poco/UnWindows.h

* Undoing indents.
2024-01-29 09:32:07 +01:00
Aron Budea
ee8935e27a fix: NULL pointer strategy when setting rotation never #4411
Regression from 66e93f98cc.
2024-01-24 09:52:02 +01:00
Aleksandar Fabijanic
6d7a4ffd7b
fix(Thread_POSIX): qnx build error: 'prctl' was not declared in this scope #4404 (#4407) 2024-01-20 00:41:58 +01:00
Jesse Hoogervorst
5bc04f4c4a
Implemented automated network library initialization for Windows MinGW targets (#4402)
* Implemented automated network library initialization for Windows MinGW/GCC targets

* Using POCO_COMPILER_MINGW instead of __GNUC__

---------

Co-authored-by: Jesse Hoogervorst <jesse@deltaxlab.com>
2024-01-17 14:51:23 +01:00
Matej Kenda
843ed4345e
gcc/clang (-fvisibility=hidden): corrections to compile and work properly (#4394)
* fix(ActiveRecord): missing ActiveRecordLib_API definitions for clang/gcc.

* fix(FPEnvironment): export FPEnvironmentImpl classes (#4393, #3331)

* fix(Crypto): export *Impl classes used from inlines (#4393, #3331)

* fix(Dynamic): explicitly instantiate and export Dynamic::Struct for string and int (-fvisibility=hidden) (#4393, #3331)

* fix(JSON): explicitly instantiate and export SharedPtr for JSON::Array and JSON::Object (-fvisibility=hidden) (#4393, #3331)

* enh(CMake): Set symbol visibility to hidden (#4393, #3331)

* enh(configure): user c++17 standard for iphone, Darwin and ARM-Linux.

* fix(UTF): explicitly instantiate and export 16 and 32-bit strings (-fvisibility=hidden) (#4393, #3331)

* fix(RecordSet): make Extraction.h internal and instantiate RecordsSet::column template functions only for supported types. (-fvisibility=hidden) (#4393, #3331)

* fix(UTF): fix explicitly instantiation on Windows (-fvisibility=hidden) (#4393, #3331)

* enh(CMake): Add github jobs for macOS with visibility set to hidden (#4393, #3331)

* fix(CppParser): Add missing declarations for CppParser_API (#4393, #3331)

* enh(CMake): Enable more options in github jobs for macOS with visibility set to hidden (#4393, #3331)

* fix(MongoDB): Add missing MongoDB_API (#4393, #3331)
2024-01-17 14:13:24 +01:00
Aleksandar Fabijanic
b0dc9c5a82
fix(SocketReactorTest): deadlock test intermittently hangs #4400 (#4401) 2024-01-17 09:20:20 +01:00
Aleksandar Fabijanic
9f4b1b7df4 chore(cmake): CppUnit Foundation dependency documentation; fix indentation 2024-01-16 10:49:45 +01:00
Matej Kenda
3002777115 fix(MailMessage): Compare lowercase content disposition headers when reading parts (#3650). 2024-01-16 00:49:49 +01:00
Aleksandar Fabijanic
64dbfab0fa
4398 dont install cppunit (#4399)
* chore(SingleSocketPoller): spelling

* fix(CppUnit): do not install #4398

* fix(DataTest): do not install #4398
2024-01-16 00:03:33 +01:00
Matej Kenda
bbd07b6cb7 enh(DateTimeParser): option to cleanup input string before parsing (#569). 2024-01-15 08:06:19 +01:00
Matej Kenda
233c1f771f
mingw compile and link improvements (#4019) (#4391)
* fix(platform): MinGW Compile and link errors: undefined reference to `WinMain'

* fix(platform): MinGW compile UUID tests (conflicting UUID defined as GUID in rpcdce.h via windows.h)
2024-01-14 22:03:37 +01:00
Matej Kenda
0f25b4c114 fix(test): Use 96-bit IV with aes-256-gcm to fix (#4347):
I/O error: error:1C800066:Provider routines::cipher operation failed
2024-01-05 22:57:53 +01:00
Matej Kenda
287befc4a3 fix(test): lock std:cerr to prevent data race in TCP server tests (reported by clang thread sanitizer) #4313 2024-01-05 22:57:53 +01:00
Matej Kenda
9a36adb979 enh(ci): macOS sanitize jobs for undefined and address. 2024-01-05 22:57:53 +01:00
Matej Kenda
7376d14062 enh(ci): macOS thread sanitizer 2024-01-05 22:57:53 +01:00
Matej Kenda
38b2f2f1a3 enh(ci): Add macos sanitizers job (#4313) 2024-01-05 22:57:53 +01:00
Matej Kenda
7c8d5e2881 fix(Crypto): EVP_CIPHER_CTX_init is incorrectly defined in Envelope.cpp if it is not defined already by OpenSSL. Fixed to properly use EVP_CIPHER_CTX_reset. 2024-01-05 16:22:28 +01:00
Aleksandar Fabijanic
071de054c1
fix(UUID): UUID parser silently ignores too long strings #4375 (#4384) 2024-01-05 12:59:01 +01:00
Matej Kenda
02683ea7f1 Incorporated Debian patches (#4380)
* Debian: Use null as device file as console might not be there

* Debian: Add GNU Hurd support

* Debian: Includes not available on Hurd

* Debian: Disable SHA2 test on platforms where it's broken

* Debian: Set POCO_NO_FPENVIRONMENT for armel

---------

Co-authored-by: Jochen Sprickerhof <git@jochen.sprickerhof.de>
2024-01-04 20:35:00 +01:00
Günter Obiltschnig
48d7a3ede1 doc(ReleaseNotes): fix formatting, add PR links 2023-12-23 09:11:37 +01:00
Alex Fabijanic
9c7cba6d6c backport leftover 1.12 changes 2023-12-22 20:22:33 +01:00
Aleksandar Fabijanic
bdf38b5bac
Release 1.13 misc (#4371)
* Add changes from 1.11.x and 1.12.x

* Updated changelogs and contributors.

* Update CONTRIBUTORS

* Update CHANGELOG

add SQLParser note

* Update 99100-ReleaseNotes.page

SQLParser note

---------

Co-authored-by: Matej Kenda <matejken@gmail.com>
2023-12-22 16:55:29 +01:00
Aleksandar Fabijanic
86084cb7b2
feat(Data::AbstractSessionImpl): add autoCommit property and tests #4261 (#4262)
* fix(Data::AbstracSessionImpl): protect autocommit feature handlers #4261

* chore(CI): re-enable mysql

* MySQL SessionImpl: make sure autocommit mode is on when session is openend or reset.

* PostgreSQL SessionImpl: reuse autocommit flag of AbstractSessionImpl.

* Github workflow: re-activated linux-gcc-make-postgres

* Fixed indentation in ci.yml

* Fix for DataTest SQLExecutor: use connector

* Data::Session: when parser is not used and autocommit mode is off, assume any SQL statement begins a transaction.

* PostgreSQL: don't use SQL parser (it currently cannot handle placeholders).

* PostgreSQL: added test sessionTransactionNoAutoCommit

* PostgreSQL test suite: removed reference to generic SQLExecutor

* PostgreSQL: fixes for sessionTransactionNoAutoCommit.

* MySQL: added test sessionPoolAndUnicode (from #2801)

* Fixed #define in sql-parser

* Data generic testsuite: support numbered placeholders

* PostgreSQL test suite: added missing include directory to Makefile.

* Attempt to fix PostgreSQL Makefiles

* PostgreSQL testsuite: added include path to Makefile

* PostgreSQL testsuite: added PocoDataTest library to Makefile

* DataTest SQLExecutor::formatSQL: don't use string_view

* PostgreSQL test suite: delegated most tests to Poco::Data::Test

* Makefile: added dependencies on Data-Tests

* Weaken assumptions about async in generic transaction tests

* Makefile: added dependency for Prometheus samples

* Fix deadlock in DataTest SQLExecutor

* PostgreSQL tests SQLExecutor: cleanup

* feat(Data::AbstractSessionImpl): add autoCommit property and tests #4261

* Brought MySQL backend in line with _autoCommit flag of AbstractSessionImpl.

---------

Co-authored-by: Friedrich Wilckens <frwilckens@gmail.com>
Co-authored-by: Friedrich Wilckens <friedrich.wilckens@ingramcontent.com>
2023-12-22 09:27:34 +01:00
Kari Argillander
80cde9e3e6 Use vs160 & vs170 in rebuild all scripts
I'm not actually sure how much these scripts are even used but let's
just update these as well to support 160 and 170.
2023-12-18 17:26:13 +01:00
Kari Argillander
4e352c8dbd Add old Visual Studio files to gitignore
As it is plan to continue support generating old Visual Studio files a
little wile it makes sense to ignore these files so they are not anymore
popping peoples eyes if they use those.
2023-12-18 17:26:13 +01:00
Kari Argillander
d1d557a4f7 Remove vs140 and vs150 project files
As we now only support C++17 these does not make much sense to keep.
2023-12-18 17:26:13 +01:00
Kari Argillander
bf3c519183
Fix some issues found with clang-tidy (#4353)
* directoryiterator: Fix missing inline

Add missing inline to inline function.

This was found with clang-tidy check:  misc-definitions-in-headers

* Convert deprecated throw() to noexcept

throw() has been deprecated in standar in C++17. It has been removed in
C++20. Code still compiles but let's just define these at those should
be.

These where found with clang-tidy check: modernize-use-noexcept

* Fix unnecessary copy initializations

Clang-tidy did find these with check:

  performance-unnecessary-copy-initialization

* Fix some strings not references

Looks like these are just missing reference marks.

---------

Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
2023-12-17 16:55:30 +01:00
Matej Kenda
111fe90dd9
enh(NumberFormatter): Introduce backward compatible options for formatHex functions (#4333)
* enh(NumberFormatter): Introduce backward compatible options for formatHex functions.

* enh(NumberFormatter): Corrections and improvements suggested in code review.

* fix(ci): disable testEncryptDecryptGCM on macOS which often fails.

* enh(NumberFormatter): Improved naming.
2023-12-15 18:30:55 +01:00
Alexander B
a464a4eabf
fic(ci): Properly include openssl 1.1 on macOS (#4345)
* set opessl@1.1 path for macos build

* fix command-line problem
2023-12-15 16:00:26 +01:00