<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="https://uname.pingveno.net/blog/index.php/feed/rss2/xslt" ?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title># uname -a - Mot-clé - owncloud</title>
    <link>https://uname.pingveno.net/blog/index.php/</link>
    <atom:link href="https://uname.pingveno.net/blog/index.php/feed/tag/owncloud/rss2" rel="self" type="application/rss+xml" />
    <description>Le blog de uname.pingveno.net</description>
    <language>fr</language>
    <pubDate>Tue, 18 Aug 2026 13:46:21 +0200</pubDate>
    <copyright>Mathieu Pellegrin</copyright>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <generator>Dotclear</generator>
          <item>
        <title>Owncloud : batch set calendar events to &quot;CONFIDENTIAL&quot;</title>
        <link>https://uname.pingveno.net/blog/index.php/post/2015/11/09/Owncloud-%3A-batch-set-calendar-events-to-CONFIDENTIAL</link>
        <guid isPermaLink="false">urn:md5:69e99ed872eaaef4496117481ef71ec0</guid>
        <pubDate>Mon, 09 Nov 2015 13:11:00 +0100</pubDate>
        <dc:creator>Mathieu</dc:creator>
                  <category>Hacks</category>
                          <category>calendar</category>
                  <category>confidential</category>
                  <category>owncloud</category>
                  <category>public</category>
                <description>&lt;p&gt;You are sharing your owncloud calendar with others. Good.&lt;/p&gt;&lt;p&gt;You don&amp;#8217;t want others to see the details of your events, you only want to share the fact that your are &amp;#8220;not available&amp;#8221;, so you set the event to &amp;#8220;CONFIDENTIAL&amp;#8221;.&lt;/p&gt;&lt;p&gt;By default, Owncloud sets the events to &amp;#8220;PUBLIC&amp;#8221; (visible by anyone who have read access).&lt;/p&gt;&lt;p&gt;&lt;strong&gt;How to change all the default public events to &amp;#8220;CONFIDENTIAL&amp;#8221;&amp;#160;?&lt;/strong&gt; Here is how.&lt;/p&gt;          &lt;p&gt;The iCal standard used by Owncloud sets three event types&amp;#160;:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;PUBLIC&amp;#160;: the event is fully visible by anyone.&lt;/li&gt;&lt;li&gt;CONFIDENTIAL&amp;#160;: the event is fully visible to owner, but only shows time segment for those who have a read access to the calendar.&lt;/li&gt;&lt;li&gt;PRIVATE&amp;#160;: the event is only visible to owner and fully hidden to others (no time segment).&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Owncloud stores the events in its database in iCal format, setting the value &amp;#8220;CLASS&amp;#8221; to the privacy level if needed, and nothing if not specified.&lt;/p&gt;&lt;p&gt;So, let&amp;#8217;s change all the default events to CONFIDENTIAL&amp;#160;:&lt;/p&gt;&lt;pre&gt;UPDATE clndr_objects SET calendardata = REPLACE(calendardata, 'END:VEVENT', 'CLASS:CONFIDENTIAL
END:VEVENT') WHERE objecttype='VEVENT' AND calendardata NOT LIKE '%CLASS:CONFIDENTIAL%' AND calendardata NOT LIKE '%CLASS:PRIVATE%' AND calendardata NOT LIKE '%CLASS:PUBLIC%';&lt;/pre&gt;&lt;p&gt;Note that the new line after &amp;#8220;CONFIDENTIAL&amp;#8221; is &lt;strong&gt;mandatory&lt;/strong&gt; and should not trigger the query until you type the &amp;#8221;&amp;#160;; &amp;#8221; and press enter.&lt;/p&gt;&lt;p&gt;Note that it will change the events &lt;strong&gt;for all users&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Backup your database before executing the query&lt;/strong&gt;.&lt;/p&gt;</description>
        
              </item>
          <item>
        <title>Way to the cloud : Sync directly all your Android contacts to OwnCloud without using bluetooth, memory card, or Google servers</title>
        <link>https://uname.pingveno.net/blog/index.php/post/2013/12/05/Way-to-the-cloud-%3A-Sync-directly-all-your-Android-contacts-to-OwnCloud-without-using-bluetooth%2C-memory-card%2C-or-Google-servers</link>
        <guid isPermaLink="false">urn:md5:e6bc61acfa8dc968c307a33d5702be22</guid>
        <pubDate>Thu, 05 Dec 2013 11:52:00 +0100</pubDate>
        <dc:creator>Mathieu</dc:creator>
                  <category>Hacks</category>
                          <category>android</category>
                  <category>contacts</category>
                  <category>owncloud</category>
                  <category>phone</category>
                  <category>sync</category>
                <description>&lt;p&gt;It&amp;#8217;s the first time I have an Android phone. I thougth that years of Android development was going to offer me anything I want. I thought that all the people concerned by their privacy on their phone have already provided workarounds to flee Google servers. I was wrong.&lt;/p&gt;
&lt;p&gt;Some days ago, I wanted to sync all my contacts to my OwnCloud server.&lt;/p&gt;
&lt;p&gt;After a few researches, I found that I could use the CardDAV facilities from OwnCloud to sync my contacts to my phone, via an application. Great&amp;#160;! But how can I send my existing contacts to OwnCloud&amp;#160;?&lt;/p&gt;
&lt;p&gt;Android separates the intern contacts and the &amp;#8220;synced&amp;#8221; contacts and I couldn&amp;#8217;t find the command to say &amp;#8220;hey, copy all the existing contacts for syncing&amp;#8221;. I couldn&amp;#8217;t use bluetooth to send my contacts because my computer does not have a bluetooth adaptator. I don&amp;#8217;t have a memory card to transfer all my contacts. I can&amp;#8217;t figure out how to dump the contacts from the phone via USB. I don&amp;#8217;t want to sync to Google to be able to download all my contacts and send them back to OwnCloud.&lt;/p&gt;
&lt;p&gt;Argh, why is it so complicated to sync my existing contacts to OwnCloud&amp;#160;?&lt;/p&gt;
&lt;p&gt;Here is how I did it.&lt;/p&gt;          &lt;h3&gt;Prerequisites&lt;/h3&gt;
&lt;ul&gt;&lt;li&gt;Have an OwnCloud server running.&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;&lt;li&gt;Have the &lt;a href=&quot;https://play.google.com/store/apps/details?id=org.dmfs.carddav.sync&quot;&gt;CardDAV-Sync&lt;/a&gt; application (either the free or &lt;a href=&quot;https://play.google.com/store/apps/details?id=org.dmfs.carddav.Sync&quot;&gt;paid&lt;/a&gt; version if you want to support the author).&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Steps&lt;/h3&gt;
&lt;ul&gt;&lt;li&gt;&lt;p&gt;On your phone, open &amp;#8220;Contacts&amp;#8221;, then open the settings menu, and select &amp;#8220;Import/Export&amp;#8221;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select &amp;#8220;Export to USB storage&amp;#8221;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select all your contacts, and validate&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The phone now has a file named &amp;#8220;something.vcf&amp;#8221;. I didn&amp;#8217;t succeed in downloading that file from my phone (argh) with the USB cable. So&amp;#8230;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Delete all your existing contacts on your phone (be strong). If you don&amp;#8217;t want to be that strong, you can skip this step.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;Backup your OwnCloud server database. Preventing is better than fixing.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set up CardDAV-Sync with your OwnCloud informations (URL, login, password). The URL should be something like that&amp;#160;: &lt;code&gt;https://your-owncloud-server/path-to-owncloud/&lt;span class=&quot;st&quot;&gt;remote.php/carddav/principals/yourlogin&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;Don&amp;#8217;t forget to check the option to sync from your phone to the OwnCloud server, otherwise your imported contacts will stay on the phone and will never be synced.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;span class=&quot;st&quot;&gt;Then, open the VCF file on your phone. It will ask you what to do. Just say &amp;#8220;Import to [your CardDAV contacts]&amp;#8221;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;span class=&quot;st&quot;&gt;W00t! All my existing contacts are now imported to the OwnCloud contacts on my phone. And now it starts syncing to my server! This is brillant!&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;This is a workaround, more a &amp;#8220;hack&amp;#8221; than a real solution. I can&amp;#8217;t figure out why I haven&amp;#8217;t been able to download with USB the VCF file from my phone, or copying my internal contacts to the OwnCloud contacts on my phone. Maybe it&amp;#8217;s fixed in recent Android versions.&lt;/p&gt;
&lt;p&gt;See also&amp;#160;: &lt;a hreflang=&quot;en&quot; href=&quot;http://doc.owncloud.org/server/4.5/user_manual/contacts.html&quot;&gt;http://doc.owncloud.org/server/4.5/user_manual/contacts.html&lt;/a&gt;&lt;/p&gt;</description>
        
              </item>
          <item>
        <title>Owncloud : could not calculate folder size</title>
        <link>https://uname.pingveno.net/blog/index.php/post/2012/05/17/Owncloud-%3A-could-not-calculate-folder-size</link>
        <guid isPermaLink="false">urn:md5:5f1d4ce72f0c710c87880e9562202a5b</guid>
        <pubDate>Thu, 17 May 2012 21:53:00 +0200</pubDate>
        <dc:creator>Mathieu</dc:creator>
                  <category>Hacks</category>
                          <category>bug</category>
                  <category>fatal error</category>
                  <category>owncloud</category>
                <description>          &lt;p&gt;I recently installed Owncloud, and I already had some problems in order to make it run.&lt;/p&gt;
&lt;p&gt;I finally managed to make it run, but I ran into an other problem today.&lt;/p&gt;
&lt;p&gt;I tried to upload (with SSH, not with the web interface) my music collection that is bigger than 2Go, and I got the following error&amp;#160;:&lt;/p&gt;
&lt;pre&gt;Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[22003]: Numeric value out of range: 7 ERREUR:  la valeur Â« 2857678756 Â» est en dehors des limites du type integer' in /home/.../public_html/lib/db.php:527
Stack trace:
#0 /home/.../public_html/lib/db.php(527): PDOStatement-&amp;gt;execute(Array)
#1 /home/.../public_html/lib/filestorage/local.php(326): PDOStatementWrapper-&amp;gt;execute(Array)
#2 /home/.../public_html/lib/filestorage/local.php(295): OC_Filestorage_Local-&amp;gt;calculateFolderSize('mathieu/files/M...')
#3 /home/.../public_html/lib/filestorage/local.php(47): OC_Filestorage_Local-&amp;gt;getFolderSize('mathieu/files/M...')
#4 /home/.../public_html/lib/filesystem.php(573): OC_Filestorage_Local-&amp;gt;filesize('mathieu/files/M...')
#5 /home/.../public_html/lib/filesystem.php(346): OC_Filesystem::basicOperation('filesize', '/Musique')
#6 /home/.../public_html/lib/files.php(54): OC_Filesystem::filesize('/Musique')
#7 /home/.../public_html/files/index.php(48): OC in /home/.../public_html/lib/db.php on line 527
&lt;/pre&gt;
&lt;p&gt;It seemed that the Owncloud developers haven&amp;#8217;t thought about the weird guy who had more than 2Go of Music. I changed the size of the column from integer to bigint in the PostgreSQL database (I had configured Owncloud with PostgreSQL), and the problem vanished&amp;#160;:&lt;/p&gt;
&lt;pre&gt;ALTER TABLE foldersize ALTER size TYPE bigint ;&lt;/pre&gt;&lt;p&gt;I hope it will help those who are stuck with this problem. I will also check if the problem is a known bug, and if it is not, I will declare it in the Owncloud bug tracker.&lt;/p&gt;
&lt;p&gt;Thinking about it, maybe the &amp;#8220;reasonnable&amp;#8221; solution would be to change the value to an &amp;#8220;unsigned int&amp;#8221;, but it will limit the folders size to 4Go, and the problem could appear again.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EDIT&amp;#160;: it is a known and fixed bug (in next version)&amp;#160;: &lt;a hreflang=&quot;en&quot; href=&quot;http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-296&quot;&gt;http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-296&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;</description>
        
              </item>
          <item>
        <title>Owncloud : fresh install redirects https to http and cannot login</title>
        <link>https://uname.pingveno.net/blog/index.php/post/2012/05/10/Owncloud-%3A-fresh-install-redirects-https-to-http-and-cannot-login</link>
        <guid isPermaLink="false">urn:md5:83edbdcfe71d99ce2eeaf8c4a67be0b8</guid>
        <pubDate>Thu, 10 May 2012 23:51:00 +0200</pubDate>
        <dc:creator>Mathieu</dc:creator>
                  <category>Hacks</category>
                          <category>owncloud</category>
                <description>          &lt;p&gt;I have just installed the 3.0.3 version of Owncloud on a test server, to see if I can use it to &amp;#8220;cloudify&amp;#8221; some of my files, and I ran into an error that was not documented. After unsuccessful searches, I looked into the code and I finally figured out what was wrong.&lt;/p&gt;
&lt;p&gt;When I tried to log in, or when I was logged if I try to modify any of the params in the web interface, the action failed silently, and the Apache logs showed 302 redirections from the page I was trying to access via POST to an other page.&lt;/p&gt;
&lt;p&gt;Actually Owncloud uses the superglobal $_SERVER[&amp;#8216;HTTPS&amp;#8217;] to guess if HTTPS is enabled. And on my webserver, maybe because I use suPHP and CGI, the $_SERVER[&amp;#8216;HTTPS&amp;#8217;] was empty. So when Owncloud tried to check the referer for my POST request, it failed because it considered it was running with HTTP.&lt;/p&gt;
&lt;p&gt;Fortunately, there is a simple workaround, as explained here&amp;#160;: &lt;a hreflang=&quot;en&quot; href=&quot;http://stackoverflow.com/a/6426731&quot;&gt;http://stackoverflow.com/a/6426731&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The key is to add the keywords &amp;#8220;SetEnv HTTPS On&amp;#8221; in the VirtualHost that is supposed to provide HTTPS, so that PHP could give the application the right information about SSL support.&lt;/p&gt;
&lt;p&gt;I hope it will help those who are stuck with this error.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update&amp;#160;:&lt;/strong&gt; I saw that this post have been referenced by &lt;a hreflang=&quot;en&quot; href=&quot;http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-664&quot;&gt;a defect&lt;/a&gt; on the Owncloud bug tracker. In my opinion the SSL problem described here is the same in the Defect, and it&amp;#8217;s not a Owncloud bug, it&amp;#8217;s an Apache and/or PHP miscomprehension and/or misconfiguration problem that lead it to not giving the right informations to PHP.&lt;/p&gt;
&lt;p&gt;I thought it was a bug, but thinking about how Owncloud handles the SSL information, and thinking about the possible reverse-proxy architecture, it it is probably not. Using $_SERVER[&amp;#8216;HTTPS&amp;#8217;] is the right way to do it, Apache should be aware of SSL and give the information to PHP.&lt;/p&gt;
&lt;p&gt;Maybe it&amp;#8217;s a bad handling of CGI in my Debian and/or Apache and/or suPHP version.&lt;/p&gt;</description>
        
              </item>
      </channel>
</rss>
