Joas Schilling
130b5d8587
Allow reading from stdin
2015-07-07 11:18:25 +02:00
Joas Schilling
86952f88cb
Add a command to import an json array into the config
2015-07-07 11:18:25 +02:00
Joas Schilling
bc084c40a6
Add a command to delete a system config
2015-07-07 11:18:25 +02:00
Joas Schilling
3608c1007e
Add a command to get a config value
2015-07-07 11:18:25 +02:00
Joas Schilling
a83eac3762
Add a command to set a system config value
2015-07-07 11:18:25 +02:00
Joas Schilling
5370bba0b6
Split the system from the app config
2015-07-07 11:18:24 +02:00
Joas Schilling
371a4d014a
Fix no value
2015-07-07 11:18:24 +02:00
Joas Schilling
5d84876ecd
Missing doc
2015-07-07 11:18:24 +02:00
Joas Schilling
2f65332014
Add an option to exclude sensitive values (e.g. for reports)
2015-07-07 11:18:24 +02:00
Joas Schilling
6763637773
Add a command to list existing configs
2015-07-07 11:18:24 +02:00
Joas Schilling
6ed8ba0ce9
Fix nested array lists
2015-07-07 11:18:24 +02:00
Roeland Jago Douma
c8145cdbd6
Javascript mimetype icon resolver
...
This makes it possible to retrieve the icon for mimetypes in javascript.
It makes no additional queries to the server to retrieve the mimetype.
* config/mimetypealiases.json added
* mimetype.js: this is where the logic resides to convert from mimetype
to icon url
* mimetypelist.js: generated file with a list of mimetype mapping (aliases)
and the list of icon files
* ./occ maintenance:mimetypesjs : new command for occ to gernerate
mimetypes.js
* unit tests updated and still work
* javascript tests added
* theming support
* folder of the theme is now present in javascript (OC.theme.folder)
2015-07-06 16:32:10 +02:00
Morris Jobke
b5c9196ffc
Merge pull request #17088 from owncloud/add-verbosity-to-upgrade
...
[upgrade] add verbosity check and show repair info & steps
2015-07-01 08:56:06 +02:00
Morris Jobke
4e44cc49d9
Merge pull request #17093 from owncloud/upgrade-timestamp
...
[upgrade] show timestamp for output during upgrade
2015-07-01 08:55:32 +02:00
Morris Jobke
f63915d0c8
update license headers and authors
2015-06-25 14:13:49 +02:00
Joas Schilling
e5bc50d156
Use non-zero exit code when app is not compliant (so CIs can detect the status)
2015-06-24 11:59:43 +02:00
Morris Jobke
5ff536b45a
[upgrade] add verbosity check and show repair info & steps
2015-06-24 10:25:05 +02:00
Joas Schilling
dba5d5e205
Use a OutputFormatter instead of hacking into writeln()
2015-06-24 09:26:30 +02:00
Joas Schilling
d8b9f6ac23
Use logtimezone and logdateformat
2015-06-24 09:24:28 +02:00
Morris Jobke
0137a3c5e0
[upgrade] show timestamp for output during upgrade
...
* added --show-timestamp option
2015-06-24 09:24:25 +02:00
Morris Jobke
02b2b60581
Merge pull request #17095 from owncloud/proper-error-handling
...
Proper error handling
2015-06-23 17:40:55 +02:00
Morris Jobke
c86e129ce9
[updater] keep maintenance active on failure and mark failure in red
2015-06-23 14:45:53 +02:00
Morris Jobke
1ba9fd3ada
[upgrade] print update message before running the update code
...
* otherwise you don't know during which app update something failed
2015-06-23 13:13:44 +02:00
Morris Jobke
fe42553e8a
[updater] propagate error case properly
...
* add $success to the updateEnd hook
* add new return code for a update failure
* add exception class to failure hook message
2015-06-23 10:03:27 +02:00
Jens-Christian Fischer
0013c4115e
Fix error message and add 'user' to it
2015-06-11 13:02:47 +02:00
Thomas Müller
739c3f01aa
Merge pull request #16434 from owncloud/persist-maintenance-state
...
Persist the state of the maintenance after an upgrade
2015-06-03 13:56:17 +02:00
Björn Schießle
9366dde875
Merge pull request #15985 from owncloud/hotfix/fix-encryption-references
...
[enc2] fix references to legacy encryption app name
2015-05-26 17:28:27 +02:00
Steffen Lindner
48040c46cb
Skip disable3rdParty Apps
2015-05-20 17:06:00 +02:00
Scrutinizer Auto-Fixer
fdbc21fc6c
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-05-19 11:23:06 +00:00
Morris Jobke
064f5204cc
Persist the state of the maintenance after an upgrade
...
* if maintenance mode was enabled before an upgrade
it will be enabled afterwards too
* fixes #16429
2015-05-19 10:56:04 +02:00
Clark Tomlinson
a0c6c01137
fix references to legacy encryption app name
2015-05-18 09:45:41 -04:00
Morris Jobke
cb909cda97
Add info message for upgrade of an 3rdparty app
2015-05-12 18:02:31 +02:00
Thomas Müller
2344298954
Merge pull request #16035 from owncloud/issue-15975-occ-encryption-enable-warning-no-module
...
Display a message when there is a problem with the default module
2015-05-07 12:03:30 +02:00
Morris Jobke
56b1c93a79
Add verbosity option to app:check-code
...
* by default only lists files with errors
* option -v lists all files even if there are no errors
2015-05-05 13:57:23 +02:00
Joas Schilling
87787a3af4
Fix the "app-id" parameter description of app:check-code
2015-05-05 08:23:59 +02:00
Joas Schilling
5180c2398d
Add an occ command to get the status of encryption
2015-05-04 15:31:19 +02:00
Joas Schilling
10144bd7f5
Display a message when there is a problem with the default module
2015-05-04 12:36:50 +02:00
Bernhard Posselt
7c0dc06c10
make command optional
2015-04-29 22:53:16 +02:00
Bernhard Posselt
b0d1d61db2
default to an empty string for database password if ommited
...
fix null passwords
remove password trimming
2015-04-29 15:39:51 +02:00
Thomas Müller
aa2bd28a6a
fix typo
2015-04-27 16:34:58 +02:00
Thomas Müller
66f9811151
handle case where the given language is unknown - refs #15794
2015-04-27 15:40:16 +02:00
Joas Schilling
e4c24a6b5c
Undefined index: default
2015-04-27 12:21:48 +02:00
Joas Schilling
25b5adfe87
Fix scrutinizer complain
2015-04-27 11:46:00 +02:00
Joas Schilling
a4c314622a
Use interface
2015-04-27 11:03:51 +02:00
Joas Schilling
e4977841b4
Add unit tests for the commands
2015-04-27 11:03:51 +02:00
Joas Schilling
d600955a51
Make getDefaultModuleId public and get module protected
2015-04-27 11:03:51 +02:00
Joas Schilling
f6d4bdb1fd
Add occ commands to manage the encryption modules
2015-04-27 11:03:50 +02:00
Joas Schilling
eec92a16d6
Unify the output of the user commands and use DI
2015-04-23 12:40:13 +02:00
Joas Schilling
07627084e4
Check if the user exists before trying to delete him
2015-04-23 12:32:46 +02:00
Joas Schilling
2c396a7080
Remove the app version from disabled app list
2015-04-20 17:03:19 +02:00
Thomas Müller
13178db465
Merge pull request #15404 from Crote/occ-password-from-env
...
Add password input from env variable for occ user:{add, resetpassword}
2015-04-10 00:08:40 +02:00
Joas Schilling
98bdfa1518
change handling in app:list
2015-04-09 14:44:30 +02:00
Joas Schilling
def3b687ee
Replace print_r() with pretty json
2015-04-09 14:42:44 +02:00
Joas Schilling
dd5063bd49
Add an option to get the output in plain, json or print_r syntax
2015-04-09 11:46:52 +02:00
Thomas Müller
f099c9883e
Adding check command to validate server environment - fixes #15429
2015-04-08 00:19:23 +02:00
Laurens Post
d9323ca1be
Add password input from env variable for occ user:{add, resetpassword}
...
This commit adds the --password-from-env switch to the `occ user:add` and
`occ user:resetpassword` commands. When this parameter is given, Owncloud
will use the password specified in environment variable OC_PASS. This
is safer than using command line parameters, as those can be read by any
process.
2015-04-04 13:24:57 +02:00
Laurens Post
6ce790ebbc
Fix occ user:add failure return codes
2015-04-04 12:25:34 +02:00
Thomas Müller
a4171b295d
More elaborate command description for upgrade - fixes #14864
2015-03-26 22:30:35 +01:00
Jenkins for ownCloud
b585d87d9d
Update license headers
2015-03-26 11:44:36 +01:00
Morris Jobke
89e1b920cc
Merge pull request #14613 from kampka/no-table-prefix
...
Install command should not require table prefix
2015-03-12 10:06:21 +01:00
Christian Kampka
277503209a
Install command should not require table prefix
2015-03-11 21:06:25 +01:00
Lukas Reschke
73dc02d42c
Merge pull request #14798 from owncloud/enable-oci-autotest-master
...
Setting oci as supported database
2015-03-11 16:14:54 +01:00
Morris Jobke
caa672ceeb
Merge pull request #14794 from owncloud/add-console-command-user-add
...
Add a console command user:add to create users over the console
2015-03-11 16:09:23 +01:00
Thomas Müller
96b223676d
Don't play with config values ...
2015-03-11 15:47:24 +01:00
Thomas Müller
cba3ec2c7f
Setting oci as supported database
2015-03-11 14:29:22 +01:00
Joas Schilling
b1ff21ee28
Add a console command user:add to create users over the console
2015-03-11 14:22:23 +01:00
Morris Jobke
ad97ceb787
Merge pull request #13513 from owncloud/repair-legacystoragenofatalfail
...
Do not abort when meeting unfixable legacy storages
2015-03-11 13:32:33 +01:00
Thomas Müller
b3bb65eae5
Merge pull request #14662 from owncloud/issue/14661-show-versions-in-occ-applist
...
Add an option to include the installed app version in "occ app:list"
2015-03-11 12:23:22 +01:00
Joas Schilling
560137ca23
Always include the installed app version in "occ app:list"
2015-03-11 09:47:41 +01:00
Thomas Müller
6c1a1234f8
Properly handle available databases at runtime and respect setup checks in command line as well
2015-03-11 09:27:12 +01:00
Christian Kampka
83e0f84fef
Allow configuring background job mode from the console
2015-03-02 20:51:40 +01:00
Vincent Petry
22bc37cb82
Properly forward repair errors and warnings
...
This makes repair errors and warnings visible for the user when
upgrading on the command line or in the web UI.
2015-02-27 12:44:04 +01:00
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
...
This reverts commit 6a1a4880f0
.
2015-02-26 11:37:37 +01:00
Thomas Müller
58cedc07b5
print app upgrade information to console as well
2015-02-24 12:52:16 +01:00
Thomas Müller
bbf7f56f94
3rd-party apps are disabled on upgrade - refs #14026
2015-02-24 12:02:36 +01:00
Thomas Müller
eae6471105
Fix error handling
2015-02-23 17:46:08 +01:00
Thomas Müller
bcd10d3dc5
implement command maintenance:install
2015-02-23 16:47:47 +01:00
Jenkins for ownCloud
6a1a4880f0
Updating license headers
2015-02-23 12:13:59 +01:00
Thomas Müller
d74662df7d
implement php code checker to detect usage of not allowed private APIs - including console command to check local code to be used by developers
2015-02-10 11:51:24 +01:00
Morris Jobke
a7eedf0149
Disallow disabling of files app
2015-02-03 00:39:01 +01:00
Thomas Müller
9ad9d7bfbb
naming fixes while reviewing
2015-01-26 12:59:25 +01:00
Joas Schilling
039397bd31
Use setConfigs() instead of calling setConfig() multiple times
2015-01-23 14:52:21 +01:00
Thomas Müller
1d2bef0a01
Use a special filter expression for Oracle to filter the prefix - fixes #13220
2015-01-12 16:28:11 +01:00
Thomas Müller
1f1643b35f
Merge pull request #12995 from owncloud/tbelau666-master
...
Use Doctrines filter by table name
2015-01-09 14:17:14 +01:00
Arthur Schiwon
ae9c9a46b8
inject and use user manager to delete command instead of using old static oc_user way
2015-01-07 12:21:28 +01:00
Morris Jobke
95374e1404
add default for dbtableprefix
2014-12-23 13:32:25 +01:00
Morris Jobke
dbc465de97
use injected config object and fix typos
2014-12-22 10:55:52 +01:00
tbelau666
ad8d55c327
Use Doctrines filter by table name
...
Doctrine's SchemaManager can filter table names by regular expression.
On this way it picks up only ownClouds's tables in a database.
by tbelau666
2014-12-22 10:45:32 +01:00
Arthur Schiwon
4fa39250e7
LDAP User Cleanup: Port from stable7 without further adjustements
...
LDAP User Cleanup
background job for user clean up
adjust user backend for clean up
register background job
remove dead code
dependency injection
make Helper non-static for proper testing
check whether it is OK to run clean up job. Do not forget to pass arguments.
use correct method to get the config from server
methods can be private, proper indirect testing is given
no automatic user deletion
make limit readable for test purposes
make method less complex
add first tests
let preferences accept limit and offset for getUsersForValue
DI via constructor does not work for background jobs
after detecting, now we have retrieving deleted users and their details
we need this method to be public for now
finalize export method, add missing getter
clean up namespaces and get rid of unnecessary files
helper is not static anymore
cleanup according to scrutinizer
add cli tool to show deleted users
uses are necessary after recent namespace change
also remove user from mappings table on deletion
add occ command to delete users
fix use statement
improve output
big fixes / improvements
PHP doc
return true in userExists early for cleaning up deleted users
bump version
control state and interval with one config.php setting, now ldapUserCleanupInterval. 0 will disable it. enabled by default.
improve doc
rename cli method to be consistent with others
introduce ldapUserCleanupInterval in sample config
don't show last login as unix epoche start when no login happend
less log output
consistent namespace for OfflineUser
rename GarbageCollector to DeletedUsersIndex and move it to user subdir
fix unit tests
add tests for deleteUser
more test adjustements
Conflicts:
apps/user_ldap/ajax/clearMappings.php
apps/user_ldap/appinfo/app.php
apps/user_ldap/lib/access.php
apps/user_ldap/lib/helper.php
apps/user_ldap/tests/helper.php
core/register_command.php
lib/private/preferences.php
lib/private/user.php
add ldap:check-user to check user existance on the fly
Conflicts:
apps/user_ldap/lib/helper.php
forgotten file
PHPdoc fixes, no code change
and don't forget to adjust tests
2014-12-19 19:47:54 +01:00
Victor Dubiniuk
c9fd3c9d29
Inject config
2014-12-10 01:13:38 +03:00
Victor Dubiniuk
303fce44f4
Use httphelper and cache response even when it empty
2014-12-06 20:17:47 +03:00
Morris Jobke
8ae8eb4734
drop dependency of some commands on old config object
2014-11-20 15:03:16 +01:00
Thomas Müller
136b0c22c9
Fix ctor call in OC\Core\Command\Upgrade
2014-11-03 13:53:59 +01:00
unclejamal3000
17f54a5fb6
Enhance question in DB migration script
2014-11-02 00:30:44 +01:00
Thomas Müller
2f19de11e4
adding console command to generate javascript translation files based on existing php translation files
...
read server side translations from json files
2014-10-29 10:09:12 +01:00
Robin Appelman
d4e929c37a
Remove implicit prepared statement cache and get the connection from the server container in \OC_DB
2014-10-22 12:26:43 +02:00
Thomas Müller
a348a6f450
no loner use deprecated class \OC_Config
2014-09-22 12:04:48 +02:00
Thomas Müller
e655d32979
remove bootstrapping - occ can by definition only be executed if ownCloud is installed - base.php is required earlier already
2014-09-22 12:00:22 +02:00
Thomas Müller
43c191fffb
show upgrade errors as error in the console and report back that the upgrade process failed if it did
2014-09-22 11:59:13 +02:00
kondou
b86e124e03
Warn user on resetting passwords via occ when encryption is enabled
2014-08-22 16:15:04 +02:00