1506 Commits

Author SHA1 Message Date
Günter Obiltschnig
2870dd898c #2172: Add Poco::AutoPtr::reset() and Poco::SharedPtr::reset() 2018-02-21 17:58:05 +01:00
Günter Obiltschnig
39480503ee change pcre ovec size to multiple of 3 2018-02-17 20:54:18 +01:00
Günter Obiltschnig
fab94585bf reduce maximum character sequence length to 4, in accordance with UTF-8 2018-02-13 21:46:51 +01:00
Conor Burgess
af09a02a34 Stricter JSON standard conformance (#2153) 2018-02-13 07:15:53 -06:00
zosrothko
5fa3d6094e Backport of pocoproject/feature-gradle to pocoproject/develop (#2127)
* Backport of feature-gradle

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Replace '/' by '\' to comply with DOS path

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Cleanup

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Put environment setting at the Exec task.

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Use standard release

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Updated mkdoc configuration

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Remove lines guarded by POCO_ENABLE_CPP11

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Merge remote-tracking branch 'origin/develop' into develop

* Fix NuGet & Wix input dependencies file set.

Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>

* Remaining fixes for Data2SQL switch.

* Use $global:LastExitCode instead of a local LastExitCode
2018-02-09 08:05:15 -06:00
Alex Fabijanic
68fedf3136 fix toJSON function and some VS warnings 2018-02-08 19:23:15 -06:00
Aleksandar Fabijanic
2be0661a0b
Json unicode escape (#2147)
Json unicode escape (#2142)
2018-02-08 18:42:30 -06:00
Aleksandar Fabijanic
df5968ce16
Json unicode escape && preserveOrder keys sync (#2145)
* Only escape compulsory characters for JSON by default

* add enable/disable unicode escaping flags to stringify #2137

* JSON::Object preserveOrder keys not synced on assignment #2142

* fix assignment preserveOrder and add object copy tests

* add object move tests

* fix comment

* enum for JSON::Object options
2018-02-08 09:08:42 -06:00
Alex Fabijanic
88caab822c fix machine warning 2018-01-31 09:08:54 -06:00
Alexey Elymanov
190495c6fe Build fix for FreeBSD/TrueOS 12 CURRENT (without Crypto and SSL) (#2118) 2018-01-29 10:07:30 -06:00
Jochen Sprickerhof
6b48b5160e Fix dl linking for FreeBSD, as discussed in #1989 (#2117)
* Revert "CMake patches for FreeBSD (#1989)"

This reverts commit 5d2dae5304c890dcf135dac8ef435626c6000ef9.

* Link against CMAKE_DL_LIBS instead of dl

This should be set to the right value for the target platform, see:

https://cmake.org/cmake/help/latest/variable/CMAKE_DL_LIBS.html
2018-01-28 11:07:25 -06:00
Hakan
d33e16b959 Update Thread_STD_POSIX.cpp (#2104)
* Update Thread_STD_POSIX.cpp

If the  policy is SCHED_OTHER only priority zero is possible.

* Update Thread_STD_POSIX.cpp
2018-01-22 19:03:56 -06:00
Aleksandar Fabijanic
b49ac67225
Data2sql (#2070)
* remove leftover progen files

* remove Data sources and turn headers into forwards

* add SQL files #2059

* Data2sql: adjust Travis, AppVeyor & Makefiles (#2069)

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* fix header forwarding

* Data2sql: Fixes for complete Travis CI success (#2071)

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Restore DataFormatException

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* Replace Data by SQL

* construct RowFilter from RecordSet reference instead of pointer

* pass Container ref instead of ptr to Column

* elimitate g++ warnings

* SQL: remove raw pointers from interfaces #2094; add constness and move ops where appropriate

* tidy up Postgres

* ODBC fixes
2018-01-18 11:29:28 -06:00
Jacob Sologub
7726d024ab Fixing NumericString#check function name conflict with check macro on macosx10.12. (#2096)
https://github.com/pocoproject/poco/issues/1451
https://github.com/pocoproject/poco/issues/1693
2018-01-17 09:42:13 -06:00
Günter Obiltschnig
0fac99a3c6 remove volatile 2017-12-16 18:54:49 +01:00
Günter Obiltschnig
472f57821d merge File::linkTo() from 1.8.1 2017-12-14 11:53:32 +01:00
Shahzad
15a2cf37ef Merge remote-tracking branch 'upstream/develop' into develop to sync 2017-12-06 16:21:48 -05:00
Günter Obiltschnig
7e4ee52226
Merge pull request #2036 from ClickHouse-Extras/clickhouse_timespan
Fixed performance issue: destructor of Poco::Timespan was not inlined…
2017-12-06 10:40:29 +01:00
Alexey Milovidov
da8164e4f2 Fixed performance issue: destructor of Poco::Timespan was not inlined [#CLICKHOUSE-3458]. 2017-12-05 15:19:41 +03:00
Shahzad
e091894209 Updated to PCRE version 8.41
Testing Done: Built on Windows OS for all configurations.
2017-12-01 10:19:10 -05:00
Marian Krivoš
5c1e3b5ab8 SharePtr fix for gcc 7.2 (#2004) 2017-11-15 10:49:58 -06:00
Aleksandar Fabijanic
e1018881ba
Harden RecursiveDirectoryIterator when walking the filesystem. (#2001)
* In the implementation for the *Traverse strategies the next method performs an unguarded list directory.  If the directory is not accessible an unrecoverable error is raised thus ruining the walk.  This changeset adopts and adapts the error handling protocol as defined in Python's os.walk function where errors from listdir are ignored or are reported to an optional on error callback function.

* Expand DirectoryIteratorsTest testsuite to confirm the hardened iterator behaviour over unreadable directories.

* Expand DirectoryIteratorsTest testsuite to confirm the hardened iterator behaviour over
  unreadable directories.  Correct bad formatting

* fix clang compile
2017-11-15 10:47:44 -06:00
Günter Obiltschnig
af218a8ac0 added additional move constructor and assignment operators 2017-11-13 19:37:05 +01:00
Günter Obiltschnig
e12458a63a implement Poco::SharedPtr using std::shared_ptr (#1993) 2017-11-13 11:43:55 -06:00
Philippe RG
3ada2d9084 Add mechanism to start a task from within a task (#1287)
* Add mechanism to start a task from within a task

Staying in the same thread.

* Provide seeds for a task queue creation

TaskManager::taskFinished removes the finished task from the task list
before dispatching the taskFinished notification

* fixup! Add mechanism to start a task from within a task

* fixup! Add mechanism to start a task from within a task

* Add Task::yield

on the same model as Task::sleep
2017-11-13 10:02:49 -06:00
Günter Obiltschnig
088b18f151
Merge pull request #1931 from villytiger/streambuf
Fix writing into closed socket from streambuf
2017-11-12 20:54:36 +01:00
Günter Obiltschnig
c5ba9b1e18
Merge pull request #1982 from pocoproject/feature/mail-msg-decode
Feature/mail msg decode
2017-11-12 20:54:07 +01:00
Guenter Obiltschnig
c91b83744b revert #1828 2017-11-11 19:27:43 +01:00
Jochen Sprickerhof
5d2dae5304 CMake patches for FreeBSD (#1989)
* Switch FreeBSD to poll

* Link against dl and rt on FreeBSD
2017-11-09 16:56:43 -06:00
Ilya Lyubimov
1a6f82c06a Fix writing into closed socket from streambuf
In case of error occured in writeToDevice pptr may become one byte
farther than epptr. This can lead to crash in streambuf::xsputn from
libstdc++.
2017-11-09 23:52:01 +03:00
Guenter Obiltschnig
ee69115150 replace strerror() with Poco::Error::getMessage() 2017-11-09 12:44:19 +01:00
Guenter Obiltschnig
0f28c27e98 GH #1988: Remove OpenVMS support 2017-11-09 11:25:39 +01:00
Günter Obiltschnig
f4530b0ebc fixed GH #1425: Workaround bug in SolarisStudio 12.4 on RVO-ed objects. 2017-11-08 15:05:40 +01:00
Günter Obiltschnig
18a70a4b3a
Merge pull request #1425 from CosminCremarenco-Murex/fix-rvo-sunstudio124
Workaround bug in SolarisStudio 12.4 on RVO-ed objects.
2017-11-08 14:46:19 +01:00
Alex Fabijanic
7250de8a65 TextEncodingRegistry documentation 2017-11-07 15:55:50 -06:00
Alex Fabijanic
a294e1fd88 Merge branch 'develop' into feature/mail-msg-decode 2017-11-07 15:42:46 -06:00
Günter Obiltschnig
70217aa083 fixed GH #1828: DeflatingStreamBuf::sync() should also flush underlying stream. 2017-11-07 18:09:53 +01:00
Alex Fabijanic
6fbbb0648c Merge branch 'develop' into feature/mail-msg-decode 2017-11-03 21:51:44 -05:00
Alex Fabijanic
6e80bcc7cf Implement MailMessage::decode #1543 (wip 2) 2017-11-03 21:51:35 -05:00
Guenter Obiltschnig
bdbc94d825 GH #1412: added Poco::DigestEngine::constantTimeEquals() 2017-11-01 17:37:35 +01:00
Guenter Obiltschnig
0c4cbb55ff fixed GH #1934: File::setExecutable() on POSIX should set executable bit for group and other if corresponding readable bit is set 2017-10-31 22:17:33 +01:00
Guenter Obiltschnig
1f546c4502 fix test with gcc 2017-10-31 20:02:35 +01:00
Guenter Obiltschnig
c792d52474 fix test 2017-10-31 19:46:08 +01:00
Guenter Obiltschnig
9288e89bfe remove remaining $Id$ tags from file headers 2017-10-31 15:58:10 +01:00
Guenter Obiltschnig
feac1ae451 Base64Encoder/Decoder: added support for 'base64url' encoding 2017-10-31 12:25:33 +01:00
Alex Fabijanic
4bd692ca38 Buffer<> swap miss ownMem #1964 2017-10-30 15:23:54 -05:00
Alex Fabijanic
f3d10e2764 restore deleted documentation 2017-10-26 18:02:35 -05:00
Alex Fabijanic
3fb4c34161 Poco::Data ODBC impl doesn't bind to unsigned numeric types properly #1683 2017-10-20 22:05:10 -05:00
Alex Fabijanic
51c28b5c5a add Poco::makeUnique() 2017-10-20 18:31:13 -05:00
Aleksandar Fabijanic
151304135e purge trailing whitespace (#1947) 2017-10-20 15:37:19 -05:00