Home  /  RSS  /  RSS Comments  /  Enter

CppCMS 1.0.4 Released

6/24/13, by artyom ; Posted in: Progress; 9 comments

This is a critical bug fix release that relates to session handing in Internet Explorer.

Added "Expires" to cookie expiration time handling that is supported by IE.

Prior to this release, cppcms session cookies used max-age option, that IE does not recognize. Starting from this release the session cookies would have both Expires and Max-Age options. All browsers that use Max-Age would ignore Expires if both given.

New options that control the session cookie properties are added, see expiration_method that would allow to alter the behavior and handle possible clock skew issues

Special thanks to Saikumar Gandapodi who reported me this issue.

Comments

David, at 8/2/13, 1:57 AM

Hi!

I tried to build cppcms in a 128Mb VPS, but encountered out of memory error. I wonder if you can advise me on this?

artyom, at 8/2/13, 2:11 PM

128MB may be not enough for complex C++ build

anatoli, at 8/3/13, 11:13 AM

Всем привет.

Разработка очень понравилась своей строгостью и чистой концепцией. Действительно работает моментально, несопоставимо быстро, в сравнении с любыми другими CMS. Но я столкнулся с непреодолимыми багами, которые ниже попытаюсь показать как выявить:

Берем пример json_rpc, изменяем функцию div как показано ниже:

void div(int x,int y)
{

cppcms::json::array res; // добавим эти две строки res[1] = 1111; //

    std::cout << "Div Called" << std::endl;
    if(y==0)
        return_error("Division by zero");
    else
        return_result(res/*x/y*/);
}

Собираем, выполняем, делим в браузере - в результате вываливается по Segmentation fault.

В моем, приближенном к реалии проекте, мне не удалось получить работающий объект ни из cppcms::json::array, ни из object, ни из value - отладка становится невозможной, gdb ведет себя хаотично, после выражения типа "obj["a"] = 1;", отладчик скачет на предыдущую строку.

Жаль, в общем.

Система: Oracle Linux 6.4 64bit (это редхетовский клон). Среда Eclipse. G++ вот так выдает "gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)".

anatoli, at 8/3/13, 12:03 PM

уточнение:

void div(int x,int y) {

cppcms::json::array res; // добавим эти две строки

res[1] = 1111; //

std::cout << "Div Called" << std::endl;
if(y==0)
    return_error("Division by zero");
else
    return_result(res/*x/y*/);

}

Sergey, at 8/3/13, 1:06 PM

anatoli try to ask in mailing list

p.s cppcms owner does not allow use russian comments.

anatoli, at 8/3/13, 1:21 PM

Sergey, I have no questions. But I thought, they must be interested in their errors.

artyom, at 8/6/13, 1:28 PM

@anatoli

1st it is English speaking blog so please be so kind use English.

2nd If your code fails... look first for a bug in your code and read JSON API documentation.

Now, already there:

cppcms::json::array res;
res[1] = 1111;

is a bug in your code... I would not tell you what exact, I'll let you to figure out.

anatoli, at 8/7/13, 10:40 AM

Of course. My jury found me guilty on all charges.

Daniel, at 1/16/14, 11:21 AM

I am wondering if you could add chaiscript features into Booster. Or make all symbol of Booster exported, so I can script module of cppCMS without been forced to unistall/recompile/valide/install and remain using C++.

Add Comment:

 
 the email would not displayed
 

You can write your messages using Markdown syntax.

You must enable JavaScript in order to post comments.

Pages

Categories