Commit Graph

4574 Commits

Author SHA1 Message Date
Alex Fabijanic
726bcc9202 Replace std::auto_ptr with std::unique_ptr #619 2017-10-10 18:17:49 -05:00
Alex Fabijanic
ad1b75b30e POP3 client fails to retrieve message if content-type is absent #806; add multi-part attachment name retrieval 2017-10-10 18:06:02 -05:00
Alex Fabijanic
36e2a11311 Poco::Data::RecordSet row iteration doesn't work when the statment has limit() #793 2017-10-10 14:42:21 -05:00
stefang84
267f67fbd8 check length of UUID when parsing (#1930) 2017-10-10 09:20:04 -05:00
zosrothko
380379229b Ignore testBigPing (#1929) 2017-10-09 09:53:26 -05:00
zosrothko
943c9e750d Ignore testBigPing (#1928) 2017-10-09 09:53:01 -05:00
Alex Fabijanic
8b8c88b4f6 MailMessage::_recipients are not filled by POP3ClientSession::retrieveMessage() #1773 2017-10-07 17:14:22 -05:00
ljx0305
748394ab55 Update Timer.h (#1527)
* Update Timer.h

* Fix MinGW 4.8.2 Compilation process appears  "error: 'SOCKADDR_INET' does not name a type" error info

The error information is as follows
$ g++  -Iinclude -I/d/open_source/src/poco-1.7.7/CppUnit/include -I/d/open_source/src/poco-1.7.7/CppUnit/WinTestRunner/
include -I/d/open_source/src/poco-1.7.7/Foundation/include -I/d/open_source/src/poco-1.7.7/XML/include -I/d/open_source
/src/poco-1.7.7/JSON/include -I/d/open_source/src/poco-1.7.7/Util/include -I/d/open_source/src/poco-1.7.7/Net/include
-DPOCO_BUILD_HOST=DESKTOP-MDEE2NJ -DPOCO_TARGET_OSNAME=MinGW -DPOCO_TARGET_OSARCH=i686  -D_WIN32 -DMINGW32 -DWINVER=0x5
01 -DPOCO_NO_FPENVIRONMENT -DPCRE_STATIC -DPOCO_THREAD_STACK_SIZE -I/usr/local/include -I/usr/include  -g -D_DEBUG  -c
src/Environment.cpp -o /d/open_source/src/poco-1.7.7/Foundation/obj/MinGW/i686/debug_static/Environment.o
In file included from c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/iphlpapi.h:16:0,
                 from src/Environment_WIN32U.cpp:26,
                 from src/Environment.cpp:33:
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:44:3: error: 'SOCKADDR_INET' does not name a type
   SOCKADDR_INET Address;
   ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:56:3: error: 'SOCKADDR_INET' does not name a type
   SOCKADDR_INET Prefix;
   ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:64:3: error: 'SOCKADDR_INET' does not name a type
   SOCKADDR_INET     NextHop;
   ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:79:3: error: 'SOCKADDR_INET' does not name a type
   SOCKADDR_INET     Address;
   ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:152:3: error: 'SOCKADDR_INET' does not name a type
   SOCKADDR_INET    Address;
   ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:250:3: error: 'SOCKADDR_INET' does not name a type
   SOCKADDR_INET Source;
   ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:251:3: error: 'SOCKADDR_INET' does not name a type
   SOCKADDR_INET Destination;
   ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:254:3: error: 'SOCKADDR_INET' does not name a type
   SOCKADDR_INET CurrentNextHop;
   ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:273:3: error: 'SOCKADDR_INET' does not name a type
   SOCKADDR_INET Address;
   ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:382:9: error: 'PSOCKADDR_IN6' does not name a type
   const PSOCKADDR_IN6 SourceAddressList,
         ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:384:9: error: 'PSOCKADDR_IN6' does not name a type
   const PSOCKADDR_IN6 DestinationAddressList,
         ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:387:3: error: 'PSOCKADDR_IN6_PAIR' has not been declared
   PSOCKADDR_IN6_PAIR *SortedAddressPairList,
   ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:454:9: error: 'SOCKADDR_INET' does not name a type
   const SOCKADDR_INET *SourceAddress,
         ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:455:9: error: 'SOCKADDR_INET' does not name a type
   const SOCKADDR_INET *DestinationAddress,
         ^
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:458:3: error: 'SOCKADDR_INET' has not been declared
   SOCKADDR_INET *BestSourceAddress
   ^
In file included from c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/iphlpapi.h:16:0,
                 from src/Environment_WIN32U.cpp:26,
                 from src/Environment.cpp:33:
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/netioapi.h:585:9: error: 'SOCKADDR_INET' does not name a type
   const SOCKADDR_INET *SourceAddress
         ^
In file included from src/Environment_WIN32U.cpp:26:0,
                 from src/Environment.cpp:33:
c:/Qt/4.8.7/mingw482_32/i686-w64-mingw32/include/iphlpapi.h:147:5: error: 'SOCKADDR_IN6' does not name a type
     SOCKADDR_IN6 Ipv6Address;
     ^
2017-10-07 12:55:25 -05:00
Tomoyuki Harada
71a9a57802 Util Timer with OS specific priority (#1348)
* Util Timer with OS specific priority

* default argument for sched policy
2017-10-07 12:49:25 -05:00
Alex Fabijanic
cf0343534a remove comment 2017-10-06 23:56:46 -05:00
Alex Fabijanic
a6148f110c Compiling Foundation library with POCO_NO_FPENVIRONMENT in Config.h fails #1905 2017-10-06 23:53:57 -05:00
Alex Fabijanic
f87081a1b1 fix param copy 2017-10-06 21:42:41 -05:00
csabakeszegh
2113827719 Enable parsing absolute Windows paths even if it starts with a slash (#1680)
In file URI when using absolute path on windows one has to write additional
'/' before the drive letter (empty host part). Eg: `file:///c:/windows/system32/`
`Path::parseWindows` throws an exception when using `URI::getPath()` to feed
it directly. The whole point of the commit to enable `/<DRIVE_LETTER>:` style
path as absolute path.
Test case added.
2017-10-06 20:54:08 -05:00
FalseCAM
ae8ccc4f48 Update FindMySQL.cmake (#1272)
Find MYSQL_LIB by names mysqlclient and mysqlclient_r.
2017-10-06 20:47:02 -05:00
Alex Fabijanic
b00e48f35d Fix for issue #1265. #1266 2017-10-06 20:32:56 -05:00
Alex Fabijanic
a47ceecab2 Fix compilation errors using TDMGCC #1310 2017-10-06 20:01:52 -05:00
Thomas Köppe
c4312f8367 Added some missing inclusions (#1274) 2017-10-06 19:47:53 -05:00
Alex Fabijanic
b3ef37af1f initialize response address 2017-10-06 19:45:51 -05:00
Alex Fabijanic
f9eac16631 Add const modificator to SocketAddress argument in ICMPClient methods #1267 2017-10-06 19:38:29 -05:00
Alex Fabijanic
0a58a30c1b Make *LRUCache constructor data types match LRUStrategy constructor. #1328 2017-10-06 19:27:35 -05:00
Alex Fabijanic
e0a5ebc06e don't inline methods containing private symbols #915 2017-10-06 19:20:56 -05:00
Ostropik
23d7d2c6cb fix ODBC: losing input data in case PD_IN_OUT paramater type (#1280)
* fix: losing input data in case PD_IN_OUT paramater type

* - fix allso applied for wide string
- added test case 'testStoredProcedureAnyString()' for reproducing
2017-10-06 18:32:29 -05:00
Alex Fabijanic
14076f75b4 Internet connection is not available on build servers, making tests fail #1365 2017-10-06 18:22:54 -05:00
Alex Fabijanic
888e193511 Exception when using SortedDirectoryIterator #1926 2017-10-06 17:50:01 -05:00
Alex Fabijanic
31dfdb5b51 tests for parseHex accepts invalid syntax and does not throw an exception #880 2017-10-06 14:23:10 -05:00
Alex Fabijanic
45dbbc66f5 another attempt at #1904 2017-10-06 13:32:42 -05:00
Alex Fabijanic
a1b1f0a38a add test for Error in VarHolder::checkUpperLimit #1122 (invalid) 2017-10-06 12:53:32 -05:00
Alex Fabijanic
1311ea5cb9 remove accidentally added files 2017-10-06 09:54:07 -05:00
Alex Fabijanic
3faf104c75 move pd_json headers to src 2017-10-06 09:46:41 -05:00
Alex Fabijanic
a387e2dec8 pd_json.h is missing when installed via CMake in 1.8.0 #1923 2017-10-06 09:33:31 -05:00
zosrothko
1bb38ed4d5 Add CMake CI with implicit & explicit OpenSSL libs (#1924)
* Add CMake Win32 and CMake x64 with DISABLE_INTERNAL_OPENSSL=ON

* Put CMake jobs ahead for quick testing

* Fix yaml typo

* Use CMake VisualStudio generator instead of NMake

* Fix string concat

* Add double quotes

* CMake: build only RelWithDebInfo

* Add --config RelWithDebInfo

* Fix -DCMAKE_BUILD_TYPE=RelWithDebInfo

* ctest -C instead of --config

* ctest misconfig
2017-10-06 09:04:05 -05:00
Alex Fabijanic
c31af5d369 Move to standard integer types #1147 2017-10-05 18:35:59 -05:00
Alex Fabijanic
2e9aecb160 eliminate VS implicit conversion warnings 2017-10-05 18:25:08 -05:00
Alex Fabijanic
71531d1a75 Move to standard integer types #1147 2017-10-05 17:03:11 -05:00
Alex Fabijanic
de64a1cbd2 Move to standard integer types #1147 2017-10-05 15:58:14 -05:00
Alex Fabijanic
fccdd99135 Move to standard integer types #1147 2017-10-05 14:55:38 -05:00
Alex Fabijanic
426368c016 Move to standard integer types #1147 2017-10-05 14:36:02 -05:00
Alex Fabijanic
a6fa326c26 Move to standard integer types #1147 2017-10-05 14:02:36 -05:00
Alex Fabijanic
f68e0174b6 ICMPSocket does not check reply address #1921 2017-10-05 14:01:41 -05:00
Alex Fabijanic
3732c8e13f Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2017-10-04 14:58:39 -05:00
Alex Fabijanic
8ab8dcc368 Move to standard integer types #1147 2017-10-04 14:58:17 -05:00
Alex Fabijanic
5d781f203e output proper library name 2017-10-04 14:56:38 -05:00
Alex Fabijanic
48c86cf806 supress warning 2017-10-04 14:55:47 -05:00
Alex Fabijanic
08eb1c7a4f make Activity bool flags atomic 2017-10-04 14:55:01 -05:00
Bjoe
178b1d605c Add support for MariaDB client in cmake build system (#1917) 2017-10-04 11:50:09 -05:00
zosrothko
687be52922 Readd CMake build for some time (#1919) 2017-10-04 11:49:03 -05:00
Alex Fabijanic
a82d4e7293 update documentation (CMake: use embedded openssl by default #1093) 2017-10-04 11:46:03 -05:00
Alex Fabijanic
8da67bee26 add internal OpenSSL option to cmake 2017-10-03 22:31:29 -05:00
micheleselea
c4f0727bc7 Fix in close and open (#1911)
* Fix in close and open

close(): fix possible throw on broken socket that could lead in CLOSE_WAIT leak (especially under linux OS)
open(): fix open function to deal with control socket created from outside and login without user

* Fix FTPSClientSession ctor

* fix: check if controlsocket is valid

* removed read server reply with no username

If we read server reply with no username, we can end up with a throw (if server reply is negative) and the testLoginFailed1 fail
2017-09-30 23:24:10 -05:00
Alex Fabijanic
6e69babf2e add some elliptic curve utility functions 2017-09-29 20:51:12 -05:00