summaryrefslogtreecommitdiffstats
path: root/lib/public
Commit message (Collapse)AuthorAgeFilesLines
* When guessing the timezone, the offset might only be valid on a given timestampJoas Schilling2015-04-071-1/+2
|
* Merge pull request #15193 from owncloud/stable8-15145Vincent Petry2015-03-261-0/+43
|\ | | | | Stable8: 15145
| * Properly catch whether a share is `null`Lukas Reschke2015-03-251-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Despite it's PHPDoc the function might return `null` which was not properly catched and thus in some situations the share was resolved to the sharing users root directory. To test this perform the following steps: * Share file in owncloud 7 (7.0.4.2) * Delete the parent folder of the shared file * The share stays is in the DB and the share via the sharelink is inaccessible. (which is good) * Upgrade to owncloud 8 (8.0.2) (This step is crucial. The bug is not reproduceable without upgrading from 7 to 8. It seems like the old tokens are handled different than the newer ones) * Optional Step: Logout, Reset Browser Session, etc. * Access the share via the old share url: almost empty page, but there is a dowload button which adds a "/download" to the URL. * Upon clicking, a download.zip is downloaded which contains EVERYTHING from the owncloud directory (of the user who shared the file) * No exception is thrown and no error is logged. This will add a check whether the share is a valid one and also adds unit tests to prevent further regressions in the future. Needs to be backported to ownCloud 8. Adding a proper clean-up of the orphaned shares is out-of-scope and would probably require some kind of FK or so. Fixes https://github.com/owncloud/core/issues/15097
* | Merge pull request #14914 from ↵Vincent Petry2015-03-262-32/+19
|\ \ | | | | | | | | | | | | owncloud/backport-14766-compare-array-insertifnotexists [Stable8] Backport 14766 compare array insertifnotexists
| * | Also add a note that clob does not work in the compare arrayJoas Schilling2015-03-161-0/+1
| | | | | | | | | | | | | | | Conflicts: lib/private/appframework/db/db.php
| * | Fix doc blocks of insertIfNotExists() methodJoas Schilling2015-03-162-30/+16
| | | | | | | | | | | | | | | Conflicts: lib/private/appframework/db/db.php
| * | let insertIfNotExist() throw the native DBALException - no need to hide the ↵Thomas Müller2015-03-162-2/+2
| | | | | | | | | | | | real exception
| * | Allow specifying the compare-array for insertIfNotExists()Joas Schilling2015-03-162-3/+3
| |/ | | | | | | | | Conflicts: lib/private/appframework/db/db.php
* / Add `getNonExistingName()` to the node apiRobin Appelman2015-03-251-0/+9
|/
* 14719 without public APILukas Reschke2015-03-051-10/+0
|
* Fix totally broken AppStoreLukas Reschke2015-03-051-0/+9
| | | | | | | | | | | | | | As it turned out the AppStore code was completely broken when it came from apps delivered from the appstore, this meant: 1. You could not disable and then re-enable an application that was installed from the AppStore. It simply failed hard. 2. You could not disable apps from the categories but only from the "Activated" page 3. It did not show the activation state from any category page This code is completely static and thus testing it is impossible. We really have to stop with "let's add yet another feature in already existing static code". Such stuff has to get refactored first. That said, this code works from what I can say when clicking around in the AppStore page GUI. However, it may easily be that it does not work with updates or whatsever as I have no chance to test that since the AppStore code is not open-source and it is impossible to write unit-tests for that. Fixes https://github.com/owncloud/core/issues/14711
* Add "throws" lines to calling methods and interface aswellJoas Schilling2015-02-271-0/+18
|
* URLEncode logout attributeLukas Reschke2015-02-171-2/+3
| | | | Otherwise logout can fail if the requesttoken contains a +
* Merge pull request #13561 from owncloud/trash-finaldeletewhencrossstoragefixVincent Petry2015-01-271-0/+2
|\ | | | | Call final unlink in trash wrapper's storage
| * Fix return type of addStorageWrapper in PHPDocVincent Petry2015-01-271-1/+1
| |
| * Do not call wrapStorage if storate with same name added twiceVincent Petry2015-01-221-0/+2
| |
* | Merge pull request #13676 from owncloud/fix-node-ifaceThomas Müller2015-01-271-1/+1
|\ \ | | | | | | Fix node interface
| * | fix node interfaceBernhard Posselt2015-01-261-1/+1
| |/
* / Add a method to set/unset multiple config values in one callJoas Schilling2015-01-231-0/+8
|/ | | | | This reduces the number of file writes we do for config.php and therefor hopefully helps lowering the chances for empty config.php files
* Add PHPDoc for `urlParams`Lukas Reschke2015-01-151-1/+1
|
* Add PHPDoc for magic property 'server'Lukas Reschke2015-01-141-1/+3
|
* Merge pull request #12988 from owncloud/logfile_downloadMorris Jobke2015-01-091-0/+42
|\ | | | | Logfile download
| * add Download logfile button to admin settingsGeorg Ehrke2015-01-071-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add logSettingsController add download logfile button move getEntries to LogSettingsController move set log level to logsettingscontroller.php add warning if logfile is bigger than 100MB add unit test for set log level fix typecasting, add new line at EoF show log and logfile download only if log_type is set to owncloud add unit test for getFilenameForDownload
* | add SIZE_ALL constJörn Friedrich Dreyer2015-01-021-3/+8
| |
* | fix visibilityJörn Friedrich Dreyer2015-01-022-8/+2
| |
* | move search results below filelist, show hint when results are off screen, ↵Jörn Friedrich Dreyer2015-01-022-6/+8
| | | | | | | | use js plugin mechanism
* | add paged providerJörn Friedrich Dreyer2015-01-022-0/+68
| |
* | Adding basement for the direct download urlThomas Müller2014-12-281-0/+10
| |
* | Intelligent containerBernhard Posselt2014-12-232-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * resolves dependencies by type hint or variable name * simpler route.php * implementation of https://github.com/owncloud/core/issues/12829 Generates and injects parameters automatically. You can now build full classes like $c->query('MyClassName') without having to register it as a service. The resolved object's instance will be saved by using registerService. If a constructor parameter is not type hinted, the parameter name will be taken. Therefore the following two implementations are identical: class Class1 { function __construct(MyClassName $class) class Class1 { function __construct($MyClassName) This makes it possible to also inject primitive values such as strings, arrays etc. In addition if the query could not be resolved, a `QueryException` is now thrown Routes can now be returned as an array from `routes.php` and an `appinfo/application.php` is optional Old commit messages: make it possible to return the routes instead of having to intialize the application try to get the controller by convention add first implementation of automatic resolve add another test just to be sure store the resolved object more tests add phpdoc to public app.php method use the same variable for the public app.php method deprecate old methods and add services for public interfaces deprecated getServer method disallow private api injection for apps other than core or settings (settings should be an app goddamnit :D) register userid because its such an often used variable fix indention and leading slash use test namespace add deprecation reasons, remove private api usage checks and remove deprecation from getServer() add additional public interfaces add public interface for rootfolder fix syntax error remove deprecation from methods where no alternative is there yet remove deprecated from method which has no alternative add timezone public service for #12881 add another deprecation hint move deprecation into separate branch remove dead comment first try to get the namespace from the info.xml, if it does not exist, just uppercase the first letter also trim the namespace name add an interface for timefactory move timefactory to public and add icontrollermethodreflector keep core interface fix copyright date in headers
* | Merge pull request #12969 from owncloud/clarify-docsMorris Jobke2014-12-221-2/+2
|\ \ | | | | | | Clarify return values
| * | Fix typoLukas Reschke2014-12-191-1/+1
| | |
| * | Clarify return valuesLukas Reschke2014-12-191-1/+1
| | | | | | | | | | | | This function returns `null` when no user is logged-in.
* | | Merge pull request #12983 from owncloud/root-ifaceMorris Jobke2014-12-221-0/+32
|\ \ \ | | | | | | | | Add an interface for the root folder so apps have an interface to deal with storage
| * | | add an interface for the root folder so apps have an interface to deal with ↵Bernhard Posselt2014-12-211-0/+32
| | |/ | |/| | | | | | | | | | | | | | | | | | | storage fix comments and newline add newline
* | | Merge pull request #12982 from owncloud/timefac-ifaceThomas Müller2014-12-211-0/+38
|\ \ \ | |/ / |/| | Add an interface for the timefactory class
| * | add an interface for the timefactory classBernhard Posselt2014-12-201-0/+38
| | | | | | | | | | | | fix indention
* | | Merge pull request #12749 from owncloud/server2server-sharing-ngBjörn Schießle2014-12-191-0/+12
|\ \ \ | | | | | | | | server to server sharing next generation
| * | | Next step in server-to-server sharing next generation, see #12285Bjoern Schiessle2014-12-191-0/+12
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Beside some small improvements and bug fixes this will probably the final state for OC8. To test this you need to set up two ownCloud instances. Let's say: URL: myPC/firstOwnCloud user: user1 URL: myPC/secondOwnCloud user: user2 Now user1 can share a file with user2 by entering the username and the URL to the second ownCloud to the share-drop-down, in this case "user2@myPC/secondOwnCloud". The next time user2 login he will get a notification that he received a server-to-server share with the option to accept/decline it. If he accept it the share will be mounted. In both cases a event will be send back to user1 and add a notification to the activity stream that the share was accepted/declined. If user1 decides to unshare the file again from user2 the share will automatically be removed from the second ownCloud server and user2 will see a notification in his activity stream that user1@myPC/firstOwnCloud has unshared the file/folder from him.
* | | Merge pull request #12101 from owncloud/ldap_split_mappingblizzz2014-12-191-0/+1
|\ \ \ | |/ / |/| | Ldap split mapping from Access superclass
| * | Split mapping from Access and Helper classes into it's own. Fully test them, ↵Arthur Schiwon2014-12-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | too. remove unused methods split mapping methods off from Access class fix DB query handling move 'clear mapping' methods from static helper to new mapping class add tests test directly with DB finishing tests and fix return value from setDNbyUUID add corresponding class for groups and make abstract test class neutral. helper tests is now obsolete as the tested functions were moved to the new mapper class. add missing info to PHPDoc add unmap method fix namespaces fix test inheritance PHPDoc and a small code restructure for scrutinizer, no effective changes PostgreSQL does not accept LIMIT in DELETE queries phpdoc fixes, no code changes
* | | Merge pull request #12956 from owncloud/jenkins-user-backend-namesThomas Müller2014-12-191-0/+27
|\ \ \ | |/ / |/| | [jenkins only] introduce names for user backends - IUserBackend
| * | introduce names for user backends - IUserBackendMorris Jobke2014-12-191-0/+27
| | | | | | | | | | | | * LDAP with multiple servers also proved backendName
* | | Merge pull request #12879 from owncloud/mountconfigMorris Jobke2014-12-182-0/+16
|\ \ \ | |/ / |/| | Add mount specific options
| * | Add getMountPoint to FileInfoRobin Appelman2014-12-171-0/+7
| | |
| * | Load mount specific options from the mount configRobin Appelman2014-12-171-0/+9
| |/
* | add isAdmin and isInGroup methods for the group managerBernhard Posselt2014-12-172-0/+16
| |
* | add a isLoggedIn method to the usersession and deprecate the isLoggedIn ↵Bernhard Posselt2014-12-172-1/+11
|/ | | | method on the api
* Merge pull request #12889 from owncloud/deprecation-timeThomas Müller2014-12-172-0/+13
|\ | | | | Deprecate old and replaced appframework apis
| * first round of deprecationBernhard Posselt2014-12-162-0/+13
| |
* | Move timezone logic out of server.phpJoas Schilling2014-12-161-0/+21
|/