<feed xmlns='http://www.w3.org/2005/Atom'>
<title>soledad.git/client/src, branch bug/remove-unicode-conversion</title>
<subtitle>[soledad]
</subtitle>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/'/>
<entry>
<title>[refactor] change secrets import/export meth names to load/dump</title>
<updated>2016-05-07T20:56:04+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2016-05-07T20:51:55+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=7efa05d1b09b91c323815e85cae7e6d523259267'/>
<id>7efa05d1b09b91c323815e85cae7e6d523259267</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[refactor] remove unneeded asserts</title>
<updated>2016-05-07T20:56:00+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2016-05-07T20:44:31+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=73af9d386e08124d5cec0af2ec259d9cd5ec67a5'/>
<id>73af9d386e08124d5cec0af2ec259d9cd5ec67a5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[feat] add recovery doc format version</title>
<updated>2016-05-07T20:55:34+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2016-05-07T20:09:29+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=3d363d0c4ec4f55643ab093c665a8c283d61b1f4'/>
<id>3d363d0c4ec4f55643ab093c665a8c283d61b1f4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[bug] fix semaphore parameters</title>
<updated>2016-05-03T13:52:26+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2016-05-02T23:45:46+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=e1cc83b7a8b66d3a0dabacc9c6dfd83869ad2054'/>
<id>e1cc83b7a8b66d3a0dabacc9c6dfd83869ad2054</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[feat] add sync phase stats</title>
<updated>2016-05-03T13:52:25+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2016-05-01T22:57:42+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=96dfd54e057875e52e22309b73e58ad4d1ea02a5'/>
<id>96dfd54e057875e52e22309b73e58ad4d1ea02a5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[feature] use deferred semaphore</title>
<updated>2016-05-03T13:52:25+00:00</updated>
<author>
<name>Kali Kaneko</name>
<email>kali@leap.se</email>
</author>
<published>2016-05-01T17:58:28+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=b7b7ddaeca42a9cde43c99cf6e3f9a937e5490a8'/>
<id>b7b7ddaeca42a9cde43c99cf6e3f9a937e5490a8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[bug] remove doc content conversion to unicode</title>
<updated>2016-05-01T17:25:23+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2016-05-01T16:34:33+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=856e302be8c9fbf1f098001d29c3ff1ac447cdcf'/>
<id>856e302be8c9fbf1f098001d29c3ff1ac447cdcf</id>
<content type='text'>
Theoretically (until now), Soledad inherits from U1DB the behaviour of only
accepting valid JSON for documents contents. JSON documents only allow for
unicode strings. Despite that, until now we had implemented lossy convertion
to unicode to avoid encoding errors when dumping/loading JSON content. This
allowed for API users to pass non-unicode to Soledad, but caused the
application to take more time because of conversion.

There were 2 problem with this: (1) conversion may take a long time and a lot
of memory when convertin large payloads; and (2) conversion was being made
before deferring to the adbapi, and this was blocking the reactor.

This commit completelly removes the conversion to unicode, thus leaving the
responsibility of unicode conversion to users of the Soledad API.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Theoretically (until now), Soledad inherits from U1DB the behaviour of only
accepting valid JSON for documents contents. JSON documents only allow for
unicode strings. Despite that, until now we had implemented lossy convertion
to unicode to avoid encoding errors when dumping/loading JSON content. This
allowed for API users to pass non-unicode to Soledad, but caused the
application to take more time because of conversion.

There were 2 problem with this: (1) conversion may take a long time and a lot
of memory when convertin large payloads; and (2) conversion was being made
before deferring to the adbapi, and this was blocking the reactor.

This commit completelly removes the conversion to unicode, thus leaving the
responsibility of unicode conversion to users of the Soledad API.
</pre>
</div>
</content>
</entry>
<entry>
<title>[refactor] remove old code for enlarging secrets</title>
<updated>2016-04-27T01:40:21+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2016-04-26T12:59:31+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=af692e04c62b374c197d3ff45935ece5a7e100c1'/>
<id>af692e04c62b374c197d3ff45935ece5a7e100c1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[refactor] cleanup bootstrap process</title>
<updated>2016-04-27T01:40:09+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2016-04-26T12:58:36+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=c634874aeeb4a9950e77ed28c8b8e643246e6bbd'/>
<id>c634874aeeb4a9950e77ed28c8b8e643246e6bbd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[refactor] remove shared db locking from client</title>
<updated>2016-04-27T00:50:37+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2016-04-26T03:48:25+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=129467d00e57f6cce34a8a4dc8b8b0e4a9b5e6e9'/>
<id>129467d00e57f6cce34a8a4dc8b8b0e4a9b5e6e9</id>
<content type='text'>
Shared db locking was used to avoid the case in which two different devices
try to store/modify remotelly stored secrets at the same time. We want to
avoid remote locks because of the problems they create, and prefer to crash
locally.

For the record, we are currently using the user's password to encrypt the
secrets stored in the server, and while we continue to do this we will have to
re-encrypt the secrets and update the remote storage whenever the user changes
her password.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Shared db locking was used to avoid the case in which two different devices
try to store/modify remotelly stored secrets at the same time. We want to
avoid remote locks because of the problems they create, and prefer to crash
locally.

For the record, we are currently using the user's password to encrypt the
secrets stored in the server, and while we continue to do this we will have to
re-encrypt the secrets and update the remote storage whenever the user changes
her password.
</pre>
</div>
</content>
</entry>
</feed>
