<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/cppcms/patches/" rel="alternate"/><link href="https://sourceforge.net/p/cppcms/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/cppcms/patches/</id><updated>2022-05-12T14:07:40.590000Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>MySQL 8 build fixes</title><link href="https://sourceforge.net/p/cppcms/patches/26/" rel="alternate"/><published>2022-05-12T14:07:40.590000Z</published><updated>2022-05-12T14:07:40.590000Z</updated><author><name>Andreas Hasenack</name><uri>https://sourceforge.net/u/ahasenack2/</uri></author><id>https://sourceforge.net7d9602c2aeb65426cfea499044579baa3ac2e87a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;cppdb is failing to build on Ubuntu systems due to MySQL8 changes. Here are two patches that Ubuntu has been carrying:&lt;br/&gt;
&lt;a href="https://git.launchpad.net/ubuntu/+source/cppdb/tree/debian/patches/mysql-8.0" rel="nofollow"&gt;https://git.launchpad.net/ubuntu/+source/cppdb/tree/debian/patches/mysql-8.0&lt;/a&gt;&lt;br/&gt;
&lt;a href="https://git.launchpad.net/ubuntu/+source/cppdb/tree/debian/patches/mysql8_my_bool.patch" rel="nofollow"&gt;https://git.launchpad.net/ubuntu/+source/cppdb/tree/debian/patches/mysql8_my_bool.patch&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We haven't tested if it will still build with mysql older than 8 with these patches applied.&lt;/p&gt;
&lt;p&gt;I'm also attaching them for convenience.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>minor fixes to the cppdb test.</title><link href="https://sourceforge.net/p/cppcms/patches/25/" rel="alternate"/><published>2020-03-06T19:52:41.719000Z</published><updated>2020-03-06T19:52:41.719000Z</updated><author><name>alex bodnaru</name><uri>https://sourceforge.net/u/alexbodn/</uri></author><id>https://sourceforge.net7385087e03256e99ca99f26f10c2df21e62659c5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;minor bug fixes.&lt;br/&gt;
minor test connections addition.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Compile error in std::pair serialization.</title><link href="https://sourceforge.net/p/cppcms/patches/24/" rel="alternate"/><published>2019-09-16T12:18:55.054000Z</published><updated>2019-09-16T12:18:55.054000Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net8a29aeccbe1799f8590a3d3bb3b39ad29b939f46</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The attached program json_pair.cpp fails to compile with lots of errors, including&lt;br/&gt;
/usr/local/include/cppcms/json.h:613:76: error: no matching function for call to 'cppcms::json::value::ge&lt;br/&gt;
t_value(const char &lt;span&gt;[6]&lt;/span&gt;) const'&lt;br/&gt;
    std::pair&amp;lt;t1,t2&amp;gt; pair(v.get_value&amp;lt;t1&amp;gt;("first"),v.get_value&amp;lt;t2&amp;gt;("second"));&lt;br/&gt;
    and&lt;br/&gt;
/usr/local/include/cppcms/json.h:619:4: error: no matching function for call to 'cppcms::json::value::set&lt;br/&gt;
_value(const char &lt;span&gt;[6]&lt;/span&gt;, const int&amp;amp;)'&lt;br/&gt;
    v.set_value("first",in.first);&amp;lt;/t2&amp;gt;&amp;lt;/t1&amp;gt;&amp;lt;/t1,t2&amp;gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;It&lt;/span&gt; &lt;span class="n"&gt;can&lt;/span&gt; &lt;span class="n"&gt;be&lt;/span&gt; &lt;span class="n"&gt;fixed&lt;/span&gt; &lt;span class="n"&gt;changing&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="k"&gt;g&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="n"&gt;et_value&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="k"&gt;g&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cppcms&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="n"&gt;traits&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;std&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="n"&gt;pair&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;T1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;T2&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;like&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;diff&lt;/span&gt; &lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Why does my CppCMS application not run with FastCGI configuration?</title><link href="https://sourceforge.net/p/cppcms/patches/23/" rel="alternate"/><published>2018-09-17T15:47:00.620000Z</published><updated>2018-09-17T15:47:00.620000Z</updated><author><name>fi la</name><uri>https://sourceforge.net/u/fila/</uri></author><id>https://sourceforge.net063013a6e18fe1c9c31fe73816f1f34114f7ee64</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I follow &lt;a class="" href="http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hello" rel="nofollow"&gt;this tutorial&lt;/a&gt; to create my sample application &lt;code&gt;CMS00&lt;/code&gt; on my Ubuntu machine.  This is added to the NginX server block of &lt;code&gt;/etc/nginx/sites-available/default&lt;/code&gt;:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;location&lt;/span&gt; &lt;span class="o"&gt;~&lt;/span&gt; &lt;span class="o"&gt;^/&lt;/span&gt;&lt;span class="nt"&gt;CMS00&lt;/span&gt;&lt;span class="o"&gt;.*$&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="err"&gt;fastcgi_pass&lt;/span&gt;    &lt;span class="err"&gt;127.0.0.1:8080&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="err"&gt;fastcgi_split_path_info&lt;/span&gt; &lt;span class="err"&gt;^(/CMS00)((?:/.*))?$&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  
    &lt;span class="err"&gt;fastcgi_param&lt;/span&gt;   &lt;span class="err"&gt;PATH_INFO&lt;/span&gt;       &lt;span class="err"&gt;$fastcgi_path_info&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  
    &lt;span class="err"&gt;include&lt;/span&gt;         &lt;span class="err"&gt;fastcgi_params&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Then I use this &lt;code&gt;config.js&lt;/code&gt; file:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;{  
  "service" : {  
    "api" : "fastcgi",
    "ip": "127.0.0.1",
    "port" : 8080
  }  
}
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;And then added the path with:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;export LD_LIBRARY_PATH=/usr/local/lib
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;When I try to run it:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;./CMS00 -c config.js
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Nothing comes on.  However if I change &lt;code&gt;config.js&lt;/code&gt; to:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;{  
    "service" :
    {  
        "api" : "http",  
        "port" : 8080  
    },  
    "http" :
    {  
        "script_names" : [ "/CMS00" ]  
    }  
}
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;It runs properly.  Could someone tell me what I did wrong with the FastCGI configuration?  Thank you so much.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>how to load an .png file to browser using content.h of cppcms</title><link href="https://sourceforge.net/p/cppcms/patches/22/" rel="alternate"/><published>2018-07-10T07:28:24.735000Z</published><updated>2018-07-10T07:28:24.735000Z</updated><author><name>jyothip</name><uri>https://sourceforge.net/u/jyothip/</uri></author><id>https://sourceforge.netd095f64b610b5c4cb0d123b9244c088df4298c9e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am new to cppcms. I am trying to execute template using Linux using cppcms. &lt;br/&gt;
my understanding is like html data will be provided in content.h file and same can be viewed on browser. &lt;br/&gt;
content.h file is edited by using cppcms::widgets::text to display text&lt;br/&gt;
to display image what widgets need to be used &lt;br/&gt;
please help me on this.&lt;/p&gt;
&lt;p&gt;I might be raising in wrong place. if I am wrong please let me know where i can get the answer.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#21 Add bool data type to CppDB</title><link href="https://sourceforge.net/p/cppcms/patches/21/?limit=25#11f5" rel="alternate"/><published>2017-03-04T17:55:11.432000Z</published><updated>2017-03-04T17:55:11.432000Z</updated><author><name>CN Liou</name><uri>https://sourceforge.net/u/cnliou/</uri></author><id>https://sourceforge.netced0153ec09db094da77af71f0bf8978862e430b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sorry! This is is missing attachment of the patch file.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add bool data type to CppDB</title><link href="https://sourceforge.net/p/cppcms/patches/21/" rel="alternate"/><published>2017-03-04T17:52:22.689000Z</published><updated>2017-03-04T17:52:22.689000Z</updated><author><name>CN Liou</name><uri>https://sourceforge.net/u/cnliou/</uri></author><id>https://sourceforge.netd4f0385d95e45244dd9a858862dd7c0847fa98a0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Important! This patch works only for PostgreSQL. Applying this patch will cause all other back end drivers unable to compile.&lt;/p&gt;
&lt;p&gt;Please check comments &lt;code&gt;TODO&lt;/code&gt; in this diff file before applying this patch.  All except PostgreSQL drivers are commented out in &lt;code&gt;CMakefile&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;changes made:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;adding bool data type&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;moving PGconn* from private to public so that applications can do lower level works like this:&lt;/p&gt;
&lt;p&gt;cppdb::postgresql::connection cppdb_pg_conn(cppdb::connection_info("CONN-STRING"));&lt;br/&gt;
  PGconn *pg_conn=cppdb_pg_conn.pg_conn();&lt;br/&gt;
  PQexec(pg_conn,"LISTEN notify_me_of_changes");&lt;br/&gt;
  int sock=PQsocket(pg_conn);&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This diff file comes from &lt;code&gt;svn diff&lt;/code&gt; applied to cppdb/trunk.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#20 minor aes_encryptor.cpp cleanup</title><link href="https://sourceforge.net/p/cppcms/patches/20/?limit=25#dfb3" rel="alternate"/><published>2016-11-03T07:22:09.432000Z</published><updated>2016-11-03T07:22:09.432000Z</updated><author><name>Artyom Beilis</name><uri>https://sourceforge.net/u/artyom-beilis/</uri></author><id>https://sourceforge.net69b3605d7029b86637ae96fd28bab97e685f55f2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Regarding AES Patch...&lt;/p&gt;
&lt;p&gt;It is exactly the reason all cryptography stuff should be reviewed under magnifier&lt;/p&gt;
&lt;p&gt;it is wrong:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;IV isn't stored it is rundom. AES CBC is self syncrhonizing algorithms so even if you don't know IV - and you don't it is rundom. Once the first block is read you have valid data. So first block is not in use.&lt;/li&gt;
&lt;li&gt;The memset exits for very good reason - make sure that the signature does not accidentially leak. Example of an attack. If user has a bug and shows some uninitialized stuff from allocated memory to user I can send invalid cache data to server. When calculated signature is "free" it may accidentially be taken by the another malloc and exposed via "harmless" bug to user and how can can put a valid signature on session...&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Regarding 2nd - good stuff.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>minor aes_encryptor.cpp cleanup</title><link href="https://sourceforge.net/p/cppcms/patches/20/" rel="alternate"/><published>2016-11-03T07:10:09.405000Z</published><updated>2016-11-03T07:10:09.405000Z</updated><author><name>CN Liou</name><uri>https://sourceforge.net/u/cnliou/</uri></author><id>https://sourceforge.netb21999d34b49079cf602d9843d3b86dd93a47ac0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This patch cleans up aes_encryptor.cpp and makes rpc_json.cpp more informative.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Remove unused local typedef</title><link href="https://sourceforge.net/p/cppcms/patches/19/" rel="alternate"/><published>2015-04-14T08:53:57.832000Z</published><updated>2015-04-14T08:53:57.832000Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net226599ba6eb9e46d57782e1930dd7eb2b9458893</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I do this on github, but it doesn't seem followed.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/boostorg/locale/pull/7" rel="nofollow"&gt;https://github.com/boostorg/locale/pull/7&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Nicolas Cornu&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>