summaryrefslogtreecommitdiffstats
path: root/lib/private/files/stream
Commit message (Collapse)AuthorAgeFilesLines
* update license headers and authorsMorris Jobke2015-06-251-1/+3
|
* flush() comments + perf optjknockaert2015-05-261-5/+7
|
* fix calculation of $count, $count is always 8129 so we need to check thisjknockaert2015-05-211-1/+1
| | | | against the unencrypted file size
* test to simulate a non-seekable stream wrapperBjoern Schiessle2015-05-211-6/+18
|
* encrypted filesize calculation in flush()jknockaert2015-05-211-1/+8
|
* fix #16356jknockaert2015-05-181-1/+1
|
* fix #15973jknockaert2015-04-301-9/+7
| | | Rework of stream_seek handling; there where basically two bugs: 1. seeking to the end of the current file would fail (with SEEK_SET); and 2. if seeking to an undefined position (outside 0,unencryptedSize) then newPosition was not defined. I used the opportunity to simplify the code.
* fall back to the ownCloud default encryption module and aes128 if we read a ↵Bjoern Schiessle2015-04-271-8/+16
| | | | encrypted file without a header
* fix unit testsBjoern Schiessle2015-04-241-4/+10
|
* Update encryption.phpjknockaert2015-04-241-1/+2
|
* fixed namejknockaert2015-04-241-1/+1
|
* Update encryption.phpjknockaert2015-04-241-8/+8
|
* fix encryption header errorjknockaert2015-04-241-13/+16
| | | When moving back the pointer to position 0 (using stream_seek), the pointer on the encrypted stream will be moved to the position immediately after the header. Reading the header again (invoked by stream_read) will cause an error, writing the header again (invoked by stream_write) will corrupt the file. Reading/writing the header should therefore happen when opening the file rather than upon read or write. Note that a side-effect of this PR is that empty files will still get an encryption header; I think that is OK, but it is different from how it was originally implemented.
* Merge pull request #15757 from owncloud/enc-fixfeofforlastblockBjörn Schießle2015-04-221-0/+4
|\ | | | | Fix encryption feof to not return too early
| * Fix encryption feof to not return too earlyVincent Petry2015-04-201-0/+4
| | | | | | | | | | | | | | | | | | | | This is because stream_read will pre-cache the next block which causes feof($this->source) to return true prematurely. So we cannot rely on it. Fixed encryption stream wrapper unit tests to actually simulate 6k/8k blocks to make sure we cover the matching logic. Added two data files with 8192 and 8193 bytes.
* | get dirname from sharePathBjoern Schiessle2015-04-211-1/+1
| |
* | Merge pull request #15636 from owncloud/enc2_performance_improvementBjörn Schießle2015-04-211-3/+2
|\ \ | |/ |/| [encryption2] set size and unencrypted size to zero at the beginning of a write operation
| * set size and unencrypted size to zero on fopenBjoern Schiessle2015-04-201-3/+2
| |
* | if we start writing a file from the beginning, size should start by zero; ↵Bjoern Schiessle2015-04-161-2/+2
|/ | | | result of floor needs to be casted to int in order to compare it with ->size
* fixing license headers - encryption code relatedThomas Müller2015-04-071-14/+14
|
* comment change as it broke unit testsThomas Müller2015-04-071-1/+1
|
* Adjusting count on readjknockaert2015-04-071-1/+2
|
* Fixing encryption stream wrapper seek - thanks @jknockaertjknockaert2015-04-071-0/+3
|
* fixing unit tests for stream wrapperThomas Müller2015-04-071-1/+1
|
* Finally fixing encryption with public shareThomas Müller2015-04-071-1/+1
|
* add helper class accessible for encryption modules to ask for a list of ↵Bjoern Schiessle2015-04-071-1/+8
| | | | users with access to a file, needed to apply the recovery key to all files
* remove unencrypted_size from the cache, size will contain the unencrypted sizeBjoern Schiessle2015-04-071-1/+2
|
* initializing some variables + update size after writing the headersThomas Müller2015-04-071-3/+3
|
* https://github.com/owncloud/core/pull/15305#discussion_r27382305Thomas Müller2015-04-071-0/+2
| | | | | Conflicts: lib/private/files/stream/encryption.php
* initializing some variablesThomas Müller2015-04-071-0/+1
|
* call end() before closing the fileBjoern Schiessle2015-04-071-1/+7
|
* adding unit tests for stream wrapperThomas Müller2015-04-071-13/+18
|
* Applying diff as of https://github.com/owncloud/core/pull/15303jknockaert2015-04-071-24/+46
|
* Merge pull request #15234 from owncloud/encryption2_coreThomas Müller2015-03-261-0/+385
|\ | | | | core part of encryption 2.0
| * implement basic encryption functionallity in core to enable multiple ↵Bjoern Schiessle2015-03-261-0/+385
| | | | | | | | encryption modules
* | Update license headersJenkins for ownCloud2015-03-265-20/+96
|/
* Revert "Updating license headers"Morris Jobke2015-02-265-91/+25
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-235-25/+91
|
* in quota wrapper use === instead of ! for better readability and as in other ↵Jörn Friedrich Dreyer2014-09-221-1/+1
| | | | wrappers
* return boolean in Ciose::stream_seekJörn Friedrich Dreyer2014-09-221-1/+1
|
* return boolean in OC::stream_seekJörn Friedrich Dreyer2014-09-221-1/+1
|
* Fixed quota wrapper to return the value from flock()Vincent Petry2014-06-041-1/+1
|
* More PHPDoc for file functionsRobin McCorkell2014-05-131-0/+8
|
* polish documentation based on scrutinizer patchesJörn Friedrich Dreyer2014-02-062-0/+6
|
* Added comment for clarification about fseek() call in quota.phpVincent Petry2013-10-251-0/+2
|
* Fixed quota stream's fseek methodVincent Petry2013-10-251-2/+12
| | | | | | - Added missing return statement - Added missing support for SEEK_END - Fixes #5524
* move the private namespace OC into lib/private - OCP will stay in lib/publicThomas Müller2013-09-305-0/+560
Conflicts: lib/private/vcategories.php