cppcms-users Mailing List for CppCMS C++ Web Framework (Page 35)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
| 2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
| 2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
| 2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
| 2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
| 2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
| 2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
| 2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
| 2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
| 2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
| 2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
|
From: Artyom B. <art...@ya...> - 2014-10-19 11:38:03
|
> Can you wait a few days? Of course > I'd like to get everything tested > and hopefully > write a regression test for the escape option... > Note - I do not put any new features to 1.0.x branch - it is a maintenance branch with minimal changes. Anything new goes to trunk for future 1.2 >Joerg > Artyom |
|
From: Sergei <ser...@gm...> - 2014-10-19 11:24:35
|
Artyom please check make and test. Ubuntu 14.04, cppcms 1.0.5 http://sourceforge.net/p/cppcms/bugs/136/ |
|
From: Artyom B. <art...@ya...> - 2014-10-19 08:32:20
|
Dear CppCMS Users, Hello, I'm getting ready to release 1.0.5 it includes many fixes to support different compilers. Especially clang and libc++ and some bug fixes. I need help for the following platforms: - Mac OS X with clang + libc++ as per this bug it has many issues: https://sourceforge.net/p/cppcms/bugs/112/ I think they should be fixed by now but testing needed. - Net BSD with clang and libc++ - Windows VS 2013... I think it should work as the issue was fixed (in json.cpp) but still if somebody can confirm I'd love to see. I also must admit that libc++ isn't very mature so some tests may fail and I'd like to know which ones (there are bugs in libc++ itself). Also you are welcome to run tests on your own. I'm talking about v1.0_fixes branch, NOT trunk, i.e. svn://svn.code.sf.net/p/cppcms/code/framework/branches/v1.0_fixes Make sure to untar cppcms_boost.tar.bz2. Thanks Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
|
From: Lee E. <le...@el...> - 2014-10-15 22:49:16
|
Template hirarchi translates to class hirarchi, with methods You can call the news method from two templates, one as part of a full page and another as partial בתאריך 15 באוק 2014 17:45, "bibermann" <fab...@gm...> כתב: > Hello, > > I'm going to use CppCMS for an Ajax-driven site and am wondering whether > it's > possible to only return the HTML for a sub-template. > > Considering the example given in > http://cppcms.com/wikipp/en/page/cppcms_1x_tut_templates_inheritance > where we have the following template hierarchie: > master > / | \ > news page intro > I want to be able to both render the news normally and as part of an ajax > request to update the news item without reloading the full page, i.e. > returning page_content() of this template. > > Can I achieve this functionality with CppCMS or do I need to create two > version of "news"? > > Thanks in advance, > bibermann > > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
|
From: bibermann <fab...@gm...> - 2014-10-15 14:45:16
|
Hello, I'm going to use CppCMS for an Ajax-driven site and am wondering whether it's possible to only return the HTML for a sub-template. Considering the example given in http://cppcms.com/wikipp/en/page/cppcms_1x_tut_templates_inheritance where we have the following template hierarchie: master / | \ news page intro I want to be able to both render the news normally and as part of an ajax request to update the news item without reloading the full page, i.e. returning page_content() of this template. Can I achieve this functionality with CppCMS or do I need to create two version of "news"? Thanks in advance, bibermann |
|
From: augustin <aug...@ov...> - 2014-10-13 12:01:21
|
On Sunday, October 12, 2014 02:30:09 PM Artyom Beilis wrote: > Yes I'm aware of it. > > http://sourceforge.net/p/cppcms/bugs/108/ ... > The test would be fixed in the next release as well. Thank you Artyom! augustin. |
|
From: Artyom B. <art...@ya...> - 2014-10-12 07:22:07
|
Hello, This is good question and I have a good answer for that. The C++11 and boost::thread::id provide order, output and hash operators i.e. <, ==, cout << and so on. Under windows it is actually straight forward to implement thread id as the ID is actually a windows HANDLE (basically pointer) Under POSIX operating systems like Linux, Solaris, BSD pthread_t exact type is undefined it may be integer or structure. The only promise is that you can compare them with pthread_equal. So you can't properly create thread_id that has same meaning as OS thread_id. So you can query it for various system properties (i.e. check if it is joinable etc) Boost solves this using various tricks like generation of counters on the fly, TLS and so on. So even if I add boost::thread::id it would have operators == and != as per posix semantics. As it really have very low added value and very hard to implement properly if you want just to print the id you can use std::this_thread::get_id() and std::thread::id under C++11 or their boost variants. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Nhân Lê Đức <nh...@gm...> >To: cpp...@li... >Sent: Saturday, October 11, 2014 6:23 PM >Subject: Re: [Cppcms-users] Booster thread id > > > >Marcel, I got your point. >I hope I can explain more detail later by using CppCMS in real use case. >This question is just my wonder when in an cppcms::application main, >I add code print current thread id. Then make few request by opening many tabs, >console logs out a bunch of thread ids. I think oh, application_pool automatically >creates instances of application. Number of threads in my process rise, >even close tabs this number does not decrease. I know that principle applications will be >returned to the pool. But how to know a thread is busy, or idle or hang, etc. >I think Does CppCMS has built-in to monitor this or I have to create such facility by my own? >I still in very first experience with CppCMS but I believe CppCMS is great in it's design. >Please keep moving forward and keep in touch. > > >Cheers, >Nhan > >------------------------------------------------------------------------------ >Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >http://p.sf.net/sfu/Zoho > >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Artyom B. <art...@ya...> - 2014-10-12 06:30:19
|
Yes I'm aware of it. http://sourceforge.net/p/cppcms/bugs/108/ Both aren't bugs in the cppcms rather bugs in the tests... It happens since ICU >= 50 The test_locale_formatting is just slight difference in the formatting output that was done in US locale it the test should be updated for the next release. The test_locale_boundary... Starting from ICU 50 the word boundary analysis for Japanese and Chinese switched to dictionary based method. And the expected output had changed. However there is also a regression in ICU itself as it does not categorize Kana words properly but rather marks them as ideographic words. The test would be fixed in the next release as well. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Thu, 10/9/14, augustin <aug...@ov...> wrote: Subject: [Cppcms-users] make test: test_locale_boundary and test_locale_formatting fail To: cpp...@li... Date: Thursday, October 9, 2014, 8:20 PM Hello Artyom and all, I cannot submit the following as a bug report in sourceforge because each time I try to log in there, I get the following error message: XSRF Attempt Detected! Made from latest release cppcms-1.0.4. At the make test stage, I get: 98% tests passed, 2 tests failed out of 93 Total Test time (real) = 284.96 sec The following tests FAILED: 85 - test_locale_boundary (SEGFAULT) 86 - test_locale_formatting (Failed) Errors while running CTest make: *** [test] Error 8 Note that Themistokles Kyrgos reported the exact two same errors back in Aug 12 2013. (Re: [Cppcms-users] make error during installation). However, he apparently didn't reply when Artyom asked for further details. It appears that I've stumbled onto the same build conditions and the same errors. As per: http://cppcms.com/wikipp/en/page/cppcms_1x_build_troubleshooting#Provide.a.complete.bug.report here are some details: >From the error logs: 85/93 Testing: test_locale_boundary 85/93 Testing: test_locale_boundary 85/93 Test: test_locale_boundary Command: "/cppcms-1.0.4/build/booster/test_locale_boundary" Directory: /cppcms-1.0.4/build/booster "test_locale_boundary" start time: Oct 09 09:56 UTC Output: ---------------------------------------------------------- Testing segment operators Testing word boundary char UTF-8 Error in line:103 p->str()==chunks[i] Error in line:104 p->rule() == unsigned(masks[i]) Error in line:103 p->str()==chunks[i] Error in line:104 p->rule() == unsigned(masks[i]) <end of output> Test time = 0.07 sec ---------------------------------------------------------- Test Failed. "test_locale_boundary" end time: Oct 09 09:56 UTC "test_locale_boundary" time elapsed: 00:00:00 ---------------------------------------------------------- 86/93 Test: test_locale_formatting Command: "/cppcms-1.0.4/build/booster/test_locale_formatting" Directory: /cppcms-1.0.4/build/booster "test_locale_formatting" start time: Oct 09 09:56 UTC Output: ---------------------------------------------------------- Testing char, UTF-8 Error in line:291 (ss.str())==(to_correct_string<CharType>("4:33:13 PM GMT+01:00",loc)) Error in line:298 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Error in line:299 (ss.str())==(to_correct_string<CharType>("2/5/70 3:33 PM",loc)) Error in line:300 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Error in line:302 (ss.str())==(to_correct_string<CharType>("February 5, 1970 3:33:13 PM GMT",loc)) Error in line:305 (ss.str())==(to_correct_string<CharType>("Thursday, February 5, 1970 3:33:13 PM GMT",loc)) Error in line:353 (ss.str())==(to_correct_string<CharType>(result[i],loc)) Error in line:436 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Error in line:436 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Error in line:436 ((booster::locale::basic_format<CharType>(fmt) % a_datetime).str(loc))==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Testing char, ISO8859-1 Error in line:291 (ss.str())==(to_correct_string<CharType>("4:33:13 PM GMT+01:00",loc)) Error in line:298 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Error in line:299 (ss.str())==(to_correct_string<CharType>("2/5/70 3:33 PM",loc)) Error in line:300 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Error in line:302 (ss.str())==(to_correct_string<CharType>("February 5, 1970 3:33:13 PM GMT",loc)) Error in line:305 (ss.str())==(to_correct_string<CharType>("Thursday, February 5, 1970 3:33:13 PM GMT",loc)) Error in line:353 (ss.str())==(to_correct_string<CharType>(result[i],loc)) Error in line:436 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Error in line:436 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Error in line:436 ((booster::locale::basic_format<CharType>(fmt) % a_datetime).str(loc))==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Testing wchar_t Error in line:291 (ss.str())==(to_correct_string<CharType>("4:33:13 PM GMT+01:00",loc)) Error in line:298 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Failed Error limits reached, stopping unit test <end of output> Test time = 0.21 sec ---------------------------------------------------------- Test Failed. "test_locale_formatting" end time: Oct 09 09:56 UTC "test_locale_formatting" time elapsed: 00:00:00 ---------------------------------------------------------- $ pcretest pcretest: command not found $ uname -a Linux 2.6.38.2-grsec-xxxx-grs-ipv6-64 #2 SMP Thu Aug 25 16:40:22 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux // I am not sure it's related to the problem: I'm running an old kernel. I am currently planning to install the newest kernel. $ icuinfo <param name="version">52.1</param> <param name="version.unicode">6.3</param> $ gcc --version gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS" A few 'not found' or 'Failed' entries in cmake: $ cmake .. -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Warning at /usr/share/cmake-2.8/Modules/CPack.cmake:289 (message): CPack.cmake has already been included!! Call Stack (most recent call first): booster/CMakeLists.txt:14 (include) -- Looking for ICU libraries -- ICU Found, building booster locale -- Performing Test LIBC_ICONV -- Performing Test LIBC_ICONV - Success -- Performing Test GCC_IS_GCC4 -- Performing Test GCC_IS_GCC4 - Success -- Looking for dlopen -- Looking for dlopen - not found -- Looking for socket -- Looking for socket - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Performing Test BOOSTER_HAS_GCC_SYNC -- Performing Test BOOSTER_HAS_GCC_SYNC - Success -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_EXECINFO -- Performing Test BOOSTER_HAVE_EXECINFO - Success -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_STDINT_H -- Performing Test BOOSTER_HAVE_STDINT_H - Success -- Performing Test BOOSTER_HAVE_INTTYPES_H -- Performing Test BOOSTER_HAVE_INTTYPES_H - Success -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success -- Performing Test CPPCMS_HAVE_STDINT_H -- Performing Test CPPCMS_HAVE_STDINT_H - Success -- Performing Test CPPCMS_HAVE_INTTYPES_H -- Performing Test CPPCMS_HAVE_INTTYPES_H - Success -- Looking for atoll -- Looking for atoll - found -- Looking for _atoi64 -- Looking for _atoi64 - not found -- Looking for snprintf -- Looking for snprintf - found -- Looking for stat -- Looking for stat - found -- Looking for _stat -- Looking for _stat - not found -- Performing Test CPPCMS_HAVE_STD_WSTRING -- Performing Test CPPCMS_HAVE_STD_WSTRING - Success -- Performing Test CPPCMS_HAVE_BSD_TM -- Performing Test CPPCMS_HAVE_BSD_TM - Success -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Failed -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Failed -- Performing Test CPPCMS_HAVE_GCC_TYPEOF -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success -- Looking for dlopen -- Looking for dlopen - not found -- Looking for dlopen in dl -- Looking for dlopen in dl - found -- Looking for socket -- Looking for socket - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for canonicalize_file_name -- Looking for canonicalize_file_name - found -- Configuring done -- Generating done -- Build files have been written to: /cppcms/cppcms-1.0.4/build2 $ python -V Python 2.7.6 $ cmake --help cmake version 2.8.12.2 Thanks, augustin. ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Nhân Lê Đ. <nh...@gm...> - 2014-10-11 16:23:12
|
Marcel, I got your point. I hope I can explain more detail later by using CppCMS in real use case. This question is just my wonder when in an cppcms::application main, I add code print current thread id. Then make few request by opening many tabs, console logs out a bunch of thread ids. I think oh, application_pool automatically creates instances of application. Number of threads in my process rise, even close tabs this number does not decrease. I know that principle applications will be returned to the pool. But how to know a thread is busy, or idle or hang, etc. I think Does CppCMS has built-in to monitor this or I have to create such facility by my own? I still in very first experience with CppCMS but I believe CppCMS is great in it's design. Please keep moving forward and keep in touch. Cheers, Nhan |
|
From: Marcel H. <ke...@co...> - 2014-10-10 06:51:01
|
> I aim to monitor activities inside CppCMS, such as monitor > application_pool threads or aio service threads. > As your suggestion to do such things I need to mix booster with C++11 > thread / 3rd, right? I don't know exactly what you want to achieve, but I think the answer is yes. But I don't would call it mixing with C++11, because C++ is the language you are using and C++11 is just the newest (yeah C++14 is on the way) standard, with some really cool, modern, hipster features. When you explain in which way you want to monitor things, we might able to help you further. Greetings, Marcel |
|
From: Nhân Lê Đ. <nh...@gm...> - 2014-10-10 02:28:57
|
Hi Marcel, I aim to monitor activities inside CppCMS, such as monitor application_pool threads or aio service threads. As your suggestion to do such things I need to mix booster with C++11 thread / 3rd, right? Regards, Nhan |
|
From: augustin <aug...@ov...> - 2014-10-09 17:40:25
|
Hello Artyom and all, I cannot submit the following as a bug report in sourceforge because each time I try to log in there, I get the following error message: XSRF Attempt Detected! Made from latest release cppcms-1.0.4. At the make test stage, I get: 98% tests passed, 2 tests failed out of 93 Total Test time (real) = 284.96 sec The following tests FAILED: 85 - test_locale_boundary (SEGFAULT) 86 - test_locale_formatting (Failed) Errors while running CTest make: *** [test] Error 8 Note that Themistokles Kyrgos reported the exact two same errors back in Aug 12 2013. (Re: [Cppcms-users] make error during installation). However, he apparently didn't reply when Artyom asked for further details. It appears that I've stumbled onto the same build conditions and the same errors. As per: http://cppcms.com/wikipp/en/page/cppcms_1x_build_troubleshooting#Provide.a.complete.bug.report here are some details: From the error logs: 85/93 Testing: test_locale_boundary 85/93 Testing: test_locale_boundary 85/93 Test: test_locale_boundary Command: "/cppcms-1.0.4/build/booster/test_locale_boundary" Directory: /cppcms-1.0.4/build/booster "test_locale_boundary" start time: Oct 09 09:56 UTC Output: ---------------------------------------------------------- Testing segment operators Testing word boundary char UTF-8 Error in line:103 p->str()==chunks[i] Error in line:104 p->rule() == unsigned(masks[i]) Error in line:103 p->str()==chunks[i] Error in line:104 p->rule() == unsigned(masks[i]) <end of output> Test time = 0.07 sec ---------------------------------------------------------- Test Failed. "test_locale_boundary" end time: Oct 09 09:56 UTC "test_locale_boundary" time elapsed: 00:00:00 ---------------------------------------------------------- 86/93 Test: test_locale_formatting Command: "/cppcms-1.0.4/build/booster/test_locale_formatting" Directory: /cppcms-1.0.4/build/booster "test_locale_formatting" start time: Oct 09 09:56 UTC Output: ---------------------------------------------------------- Testing char, UTF-8 Error in line:291 (ss.str())==(to_correct_string<CharType>("4:33:13 PM GMT+01:00",loc)) Error in line:298 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Error in line:299 (ss.str())==(to_correct_string<CharType>("2/5/70 3:33 PM",loc)) Error in line:300 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Error in line:302 (ss.str())==(to_correct_string<CharType>("February 5, 1970 3:33:13 PM GMT",loc)) Error in line:305 (ss.str())==(to_correct_string<CharType>("Thursday, February 5, 1970 3:33:13 PM GMT",loc)) Error in line:353 (ss.str())==(to_correct_string<CharType>(result[i],loc)) Error in line:436 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Error in line:436 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Error in line:436 ((booster::locale::basic_format<CharType>(fmt) % a_datetime).str(loc))==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Testing char, ISO8859-1 Error in line:291 (ss.str())==(to_correct_string<CharType>("4:33:13 PM GMT+01:00",loc)) Error in line:298 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Error in line:299 (ss.str())==(to_correct_string<CharType>("2/5/70 3:33 PM",loc)) Error in line:300 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Error in line:302 (ss.str())==(to_correct_string<CharType>("February 5, 1970 3:33:13 PM GMT",loc)) Error in line:305 (ss.str())==(to_correct_string<CharType>("Thursday, February 5, 1970 3:33:13 PM GMT",loc)) Error in line:353 (ss.str())==(to_correct_string<CharType>(result[i],loc)) Error in line:436 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Error in line:436 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Error in line:436 ((booster::locale::basic_format<CharType>(fmt) % a_datetime).str(loc))==(to_correct_string<CharType>("Feb 5, 1970;3:33:13 PM;Feb 5, 1970 3:33:13 PM;Feb 5, 1970 3:33:13 PM",loc)) Testing wchar_t Error in line:291 (ss.str())==(to_correct_string<CharType>("4:33:13 PM GMT+01:00",loc)) Error in line:298 (ss.str())==(to_correct_string<CharType>("Feb 5, 1970 3:33:13 PM",loc)) Failed Error limits reached, stopping unit test <end of output> Test time = 0.21 sec ---------------------------------------------------------- Test Failed. "test_locale_formatting" end time: Oct 09 09:56 UTC "test_locale_formatting" time elapsed: 00:00:00 ---------------------------------------------------------- $ pcretest pcretest: command not found $ uname -a Linux 2.6.38.2-grsec-xxxx-grs-ipv6-64 #2 SMP Thu Aug 25 16:40:22 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux // I am not sure it's related to the problem: I'm running an old kernel. I am currently planning to install the newest kernel. $ icuinfo <param name="version">52.1</param> <param name="version.unicode">6.3</param> $ gcc --version gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS" A few 'not found' or 'Failed' entries in cmake: $ cmake .. -- The C compiler identification is GNU 4.8.2 -- The CXX compiler identification is GNU 4.8.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Warning at /usr/share/cmake-2.8/Modules/CPack.cmake:289 (message): CPack.cmake has already been included!! Call Stack (most recent call first): booster/CMakeLists.txt:14 (include) -- Looking for ICU libraries -- ICU Found, building booster locale -- Performing Test LIBC_ICONV -- Performing Test LIBC_ICONV - Success -- Performing Test GCC_IS_GCC4 -- Performing Test GCC_IS_GCC4 - Success -- Looking for dlopen -- Looking for dlopen - not found -- Looking for socket -- Looking for socket - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Performing Test BOOSTER_HAS_GCC_SYNC -- Performing Test BOOSTER_HAS_GCC_SYNC - Success -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_EXECINFO -- Performing Test BOOSTER_HAVE_EXECINFO - Success -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_STDINT_H -- Performing Test BOOSTER_HAVE_STDINT_H - Success -- Performing Test BOOSTER_HAVE_INTTYPES_H -- Performing Test BOOSTER_HAVE_INTTYPES_H - Success -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success -- Performing Test CPPCMS_HAVE_STDINT_H -- Performing Test CPPCMS_HAVE_STDINT_H - Success -- Performing Test CPPCMS_HAVE_INTTYPES_H -- Performing Test CPPCMS_HAVE_INTTYPES_H - Success -- Looking for atoll -- Looking for atoll - found -- Looking for _atoi64 -- Looking for _atoi64 - not found -- Looking for snprintf -- Looking for snprintf - found -- Looking for stat -- Looking for stat - found -- Looking for _stat -- Looking for _stat - not found -- Performing Test CPPCMS_HAVE_STD_WSTRING -- Performing Test CPPCMS_HAVE_STD_WSTRING - Success -- Performing Test CPPCMS_HAVE_BSD_TM -- Performing Test CPPCMS_HAVE_BSD_TM - Success -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Failed -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Failed -- Performing Test CPPCMS_HAVE_GCC_TYPEOF -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success -- Looking for dlopen -- Looking for dlopen - not found -- Looking for dlopen in dl -- Looking for dlopen in dl - found -- Looking for socket -- Looking for socket - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for canonicalize_file_name -- Looking for canonicalize_file_name - found -- Configuring done -- Generating done -- Build files have been written to: /cppcms/cppcms-1.0.4/build2 $ python -V Python 2.7.6 $ cmake --help cmake version 2.8.12.2 Thanks, augustin. |
|
From: Marcel H. <ke...@co...> - 2014-10-07 11:20:13
|
Hi Nhan, a better way for using threads is using the std::thread from c++11 http://en.cppreference.com/w/cpp/thread/thread Regards, Marcel |
|
From: Nhân Lê Đ. <nh...@gm...> - 2014-10-07 09:56:50
|
Hello everyone, I want to get thread id but I found no way with booster::thread http://cppcms.com/cppcms_ref/latest/classbooster_1_1thread.html I see that Boost Thread supports the feature although. http://www.boost.org/doc/libs/1_56_0/doc/html/thread/thread_management.html Should you consider to add this feature? It will help control thread cross platform easier. Best Regard, Nhan |
|
From: Alexey O. <aom...@gm...> - 2014-09-16 21:50:10
|
Hello everyone, do someone have got any experience of creating SAML compatible services using CPP-CMS? I am curious mostly about Identity Provider but will appreciate any experience shared. Thanks, Alexey. |
|
From: Joerg S. <jo...@br...> - 2014-09-03 21:25:20
|
Hi Artyom, first of all, can you add the HTTP header option for the CSRF token to the secure programming page? Especially when dealing with AJAX frameworks, that's often easier than adding the field. Second, I think validate_request_origin should be changed to not match POST, but do a positive match for GET or HEAD. Those two are supposed to be side-effect free, but e.g. PUT or DELETE request should get the CSRF protection too. Joerg |
|
From: Marius C. <mf...@gm...> - 2014-09-03 20:22:26
|
Yes, it looks nice but I wonder if it's not kind of expensive. Also it has lot of features we don't really need for cppcms or so it seems. On Wed, Sep 3, 2014 at 9:26 PM, Hery Maminirina <hma...@gm...> wrote: > Hi, > > Very intersting question. > > Regards. > > Hery > > > 2014-09-03 8:06 GMT+02:00 Manu <ma...@gm...>: > >> Hi There, >> >> Anybody created a heroku buildpack for cppcms? >> >> It will be great if someone can create one. >> >> Thanks & Regards >> Manu >> >> >> >> ------------------------------------------------------------------------------ >> Slashdot TV. >> Video for Nerds. Stuff that matters. >> http://tv.slashdot.org/ >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
|
From: Hery M. <hma...@gm...> - 2014-09-03 18:26:25
|
Hi, Very intersting question. Regards. Hery 2014-09-03 8:06 GMT+02:00 Manu <ma...@gm...>: > Hi There, > > Anybody created a heroku buildpack for cppcms? > > It will be great if someone can create one. > > Thanks & Regards > Manu > > > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
|
From: Manu <ma...@gm...> - 2014-09-03 06:10:17
|
Hi There, Anybody created a heroku buildpack for cppcms? It will be great if someone can create one. Thanks & Regards Manu |
|
From: Artyom B. <art...@ya...> - 2014-08-25 10:53:53
|
See, you don't check the token on your own directly. - If you use cppcms::widgets - they already run csrf checks. - if you write your own widgets implementing your own load and you call pre_load() it would run the csrf checks (and it is a part of a standard widget) And finally if you want to check on your own (for some custom form code) you should call the cppcms::session_interface::validate_request_origin() function in any case... So unless you write your own bad code it shouldn't happen. Normal flow does not include cases shown there. Of course you should turn CSRF validation on in configuration file and read the secure programming article. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Marius Cirsta <mf...@gm...> >To: cpp...@li... >Sent: Monday, August 25, 2014 1:13 AM >Subject: [Cppcms-users] empty action in POST a potential vulnerability ? > > >I was just reading on a blog post that an empty action in post could >in theory trigger a bypassing of CSRF. Details here: > >http://blog.andlabs.org/2010/03/bypassing-csrf-protections-with.html > >Is this true for cppcms ? I've noticed that the wiki code does indeed >use empty actions in post forms. It would also seem that html5 doesn't >allow this anymore and that a non empty action must be specified. > >Thanks. > >------------------------------------------------------------------------------ >Slashdot TV. >Video for Nerds. Stuff that matters. >http://tv.slashdot.org/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Joerg S. <jo...@br...> - 2014-08-24 22:32:03
|
On Mon, Aug 25, 2014 at 01:13:21AM +0300, Marius Cirsta wrote: > I was just reading on a blog post that an empty action in post could > in theory trigger a bypassing of CSRF. Details here: > > http://blog.andlabs.org/2010/03/bypassing-csrf-protections-with.html > > Is this true for cppcms ? I've noticed that the wiki code does indeed > use empty actions in post forms. It would also seem that html5 doesn't > allow this anymore and that a non empty action must be specified. I can't make that much sense of the post, but keep in mind that cppcms's CSRF handler is applied first and an invalid CSRF token gives an exception without hitting the normal view. Joerg |
|
From: Marius C. <mf...@gm...> - 2014-08-24 22:13:27
|
I was just reading on a blog post that an empty action in post could in theory trigger a bypassing of CSRF. Details here: http://blog.andlabs.org/2010/03/bypassing-csrf-protections-with.html Is this true for cppcms ? I've noticed that the wiki code does indeed use empty actions in post forms. It would also seem that html5 doesn't allow this anymore and that a non empty action must be specified. Thanks. |
|
From: Artyom B. <art...@ya...> - 2014-08-20 15:35:15
|
See, When building CppCMS for windows you should have pcre and zlib built first (actually you can even build it with PCRE only). You should pay attention to this: http://cppcms.com/wikipp/en/page/notes_for_windows_users carefully. Create a directory with 3rd part libraries - it would make you life much easier. I'd also recommend using DLLs only as it would make life even simpler. Split the debug and the release builds... Finally it isn't that hard to build CppCMS on windows but you should get used to command line nmake. In any case it would be very hard and tricky to use CppCMS with IIS: http://cppcms.com/wikipp/en/page/cppcms_1x_tut_web_server_config#IIS Of course using any decent Linux distribution is much simpler... not talking about better ;-) Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Tamas Fekete <fek...@ou...> >To: "cpp...@li..." <cpp...@li...> >Sent: Tuesday, August 19, 2014 6:40 PM >Subject: [Cppcms-users] build on Win 8 with MS VC 2013 using cmake > > > > >Hello, > >I did a research in the old letters and I found nothing to my problem. > > > * I have Win 8.1 and MS CV 2013 express. > * I installed the mandatory dependencies (only them). > * I also installed the CMAKE. >I run the CMAKE GUI and press configure and I get lots of red lines. :-) > >Did someone try to install on similar way like mine? > >(and an additional question: I also want very good design/UI to my web service. Does this framework support it? or should I search after other C++ lib like Wt? Which is a better if I want complex UI/desing?) > >Thanks, Tamás > >------------------------------------------------------------------------------ > >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
|
From: Erasmo A. <eag...@ho...> - 2014-08-19 22:00:57
|
Hello Tamás, In order to avoid compilation and linkage problems, you need to build all dependencies with the same compiler you are going to build the intended source code. I tried to build CppCMS with Visual C++, but I could not link to PCRE because apparently it does not build correctly with Visual C++. That is why I decided to use MinGW. In fact, I built CppCMS with MinGW-w64 successfully. As for your UI question, I recommend you to use a Web UI Framework like Bootstrap or Metro UI CSS. You can also use jQuery UI. Hope it helps. Erasmo. De: Tamas Fekete [mailto:fek...@ou...] Enviado el: martes, 19 de agosto de 2014 09:40 a.m. Para: cpp...@li... Asunto: [Cppcms-users] build on Win 8 with MS VC 2013 using cmake Hello, I did a research in the old letters and I found nothing to my problem. * I have Win 8.1 and MS CV 2013 express. * I installed the mandatory dependencies (only them). * I also installed the CMAKE. I run the CMAKE GUI and press configure and I get lots of red lines. :-) Did someone try to install on similar way like mine? (and an additional question: I also want very good design/UI to my web service. Does this framework support it? or should I search after other C++ lib like Wt? Which is a better if I want complex UI/desing?) Thanks, Tamás |
|
From: Ross R. <ros...@gm...> - 2014-08-19 16:00:34
|
As regards your question about UI - I'd recommend taking a look at creating your front-end with AngularJS using yeoman.io scaffolding combined with Bootstrap CSS <http://getbootstrap.com/> . Then you can choose your server back-end orthogonally to your UI/front-end design. Anyways, that's just my opinion. - Ross On Tue, Aug 19, 2014 at 8:55 AM, Ross Rogers <ros...@gm...> wrote: > I have tried to compile with Windows multiple times because my work > machine is Windows and my home PC is a windows gaming machine. All I found > was pain. Once I got it to compile and then I had some weird non-POSIX > compliance issue that cratered the effort at run time. Ultimately, it > really wasn't worth the hassle.... I'd recommend putting Ubuntu on a > machine, dual booting into Ubuntu, or running Ubuntu inside of a virtualbox > instance on your Windows machine. > > However, if you do get Windows running smoothly, let this list know as I > am interested in such a solution. > > Good luck. > > - Ross > > > On Tue, Aug 19, 2014 at 8:40 AM, Tamas Fekete <fek...@ou...> > wrote: > >> Hello, >> >> I did a research in the old letters and I found nothing to my problem. >> >> >> - I have Win 8.1 and MS CV 2013 express. >> - I installed the mandatory dependencies (only them). >> - I also installed the CMAKE. >> >> >> I run the CMAKE GUI and press configure and I get lots of red lines. :-) >> >> *Did someone try to install on similar way like mine?* >> >> (and an additional question: I also want very good design/UI to my web >> service. Does this framework support it? or should I search after other C++ >> lib like Wt? Which is a better if I want complex UI/desing?) >> >> Thanks, Tamás >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > |