[filebin] branch master updated (9535ede -> 45c16c8)

bluewind at xinu.at bluewind at xinu.at
Sun Feb 15 11:20:17 CET 2015


This is an automated email from the git hooks/post-receive script.

flo pushed a change to branch master
in repository filebin.

      from  9535ede   Don't leak error heading to HTML output
      adds  d599624   first go at reworking; needs to be redesigned
      adds  349e9f6   misc
      adds  0c53eba   add missing files
      adds  7f74792   Improve history api for multipastes
      adds  9670d79   Fix error in file/upload_history
      adds  434143c   improve api errors
      adds  32e68c2   add max_files_per_request to api/file/get_config
      adds  8fd7c6c   add initial user api
      adds  c8e5f5a   refactor service/file/history
      adds  01c881f   fix multipaste in service/history
      adds  0bed4fd   add some TODOs
      adds  33efe57   Rework api error handling
      adds  cb52a4c   Rework error handling in upload validator
      adds  e2c2740   implement api/user/create_apikey
      adds  6816970   api: handle json reply in api controller
      adds  9ea7821   Improve general exception handling
      adds  d9c895c   Remove unstable json api
      adds  a788fe5   api: implement file/delete
      adds  5816cbc   api: implement file/create_multipaste
      adds  bcd7920   generalize authentication handling
      adds  08dbb35   use function instead of variable
      adds  a842392   Use exceptions instead of show_error
      adds  46fe1f6   lib/Image->get: check if ob_get_clean worked
      adds  6f1258f   Support database table prefixes
      adds  a8d1fb5   Add Test-More
      adds  a0b991d   Make Test-More useable for our usecase
      adds  5f0f6b7   Improve error line information in Test-More
      adds  db8a70b   fixup! Support database table prefixes
      adds  d3726c7   Add simple testsuite
      adds  03e9a7a   service/files::history: Fix total_size if no results
      adds  67ed287   fixup! Support database table prefixes
      adds  f5cab9d   service/files::delete: Fix incorrect error when wrong owner
      adds  5b225c7   Add more tests
      adds  89191e7   run-tests.sh: Clean up old database before running tests
      adds  5687909   Improve testcases
      adds  c302c5c   Add more tests
      adds  1e18ad9   tests: Fix php dev server being slow
      adds  16e3e00   tests: Remember previous state; print elapsed time
      adds  0d2a97c   run-tests.sh: use trap to clean up
      adds  f851351   Add tests for invalid login
      adds  f799a04   run-tests.sh: drop database in cleanup
      adds  c8ff6f5   Add tests for \s\f::verify_uploaded_files
      adds  cb2df59   api: Require the version to start with v
      adds  bfbbf40   Unify exceptions for unknown/invalid endpoints
      adds  b8facbb   Fix typo in error message
      adds  d7fc5f4   Use assoc array for service/user/apikeys
      adds  4f5f2f4   Use assoc array for service/files/verify_uploaded_files
      adds  01226a9   Fix consistency of error_ids
      adds  45c16c8   Merge branch 'api-rework' into working

No new revisions were added by this update.

Summary of changes:
 application/config/config.php                      |   6 +-
 application/config/routes.php                      |   1 +
 application/controllers/api.php                    |  66 +++
 application/controllers/api/api_controller.php     |  14 +
 application/controllers/api/v1/api_info.php        |  16 +
 application/controllers/api/v1/file.php            |  81 ++++
 application/controllers/api/v1/user.php            |  39 ++
 application/controllers/file.php                   | 255 +++---------
 application/controllers/tools.php                  |  45 ++-
 application/controllers/user.php                   |  61 +--
 application/core/MY_Controller.php                 |  30 +-
 application/errors/error_general.php               |  11 -
 application/exceptions/ApiException.php            |  35 ++
 .../exceptions/FileUploadVerifyException.php       |  23 ++
 .../InsufficientPermissionsException.php           |  14 +
 .../exceptions/NotAuthenticatedException.php       |  14 +
 application/exceptions/NotFoundException.php       |  14 +
 application/exceptions/PublicApiException.php      |  14 +
 application/exceptions/RequestTooBigException.php  |  14 +
 application/exceptions/UserInputException.php      |  14 +
 application/exceptions/VerifyException.php         |  23 ++
 application/helpers/filebin_helper.php             |  17 +
 .../Ddownload/drivers/Ddownload_lighttpd.php       |   2 +-
 .../Ddownload/drivers/Ddownload_nginx.php          |   2 +-
 application/libraries/Duser/Duser.php              |   2 +-
 application/libraries/Duser/drivers/Duser_db.php   |   2 +-
 application/libraries/Duser/drivers/Duser_ldap.php |   2 +-
 application/libraries/Image.php                    |   6 +-
 application/migrations/001_add_files.php           |  14 +-
 application/migrations/002_add_users.php           |  42 +-
 application/migrations/003_add_referrers.php       |  30 +-
 application/migrations/004_add_filesize.php        |  16 +-
 application/migrations/005_drop_file_password.php  |  12 +-
 application/migrations/006_add_username_index.php  |  14 +-
 .../migrations/007_repurpose_invitations.php       |  38 +-
 application/migrations/008_add_profiles.php        |  28 +-
 application/migrations/009_add_apikeys.php         |  12 +-
 application/migrations/010_files_innodb.php        |   8 +-
 .../migrations/011_apikeys_add_access_level.php    |  16 +-
 application/migrations/012_add_constraints.php     |  30 +-
 application/migrations/013_add_multipaste.php      |  24 +-
 .../migrations/014_deduplicate_file_storage.php    |  52 +++
 application/models/mfile.php                       |   2 +-
 application/models/mmultipaste.php                 |  18 +-
 application/models/muser.php                       |  32 +-
 application/service/files.php                      | 253 ++++++++++++
 application/service/user.php                       |  78 ++++
 application/tests/Test.php                         | 109 +++++
 application/tests/test_api_v1.php                  | 371 +++++++++++++++++
 application/tests/test_service_files.php           |  85 ++++
 .../third_party/test-more-php/Test-More-OO.php     | 441 +++++++++++++++++++++
 .../third_party/test-more-php/Test-More.php        |  41 ++
 .../third_party/test-more-php/Test-Simple-OO.php   | 237 +++++++++++
 .../third_party/test-more-php/Test-Simple.php      |  18 +
 .../third_party/test-more-php/t/PHProvable.pl      |  35 ++
 application/third_party/test-more-php/t/badlib.php |   5 +
 .../third_party/test-more-php/t/borklib.php        |   5 +
 .../third_party/test-more-php/t/goodlib.php        |   5 +
 .../third_party/test-more-php/t/goodpage.php       |   5 +
 .../t/testertests_bail_badplan_negative.php        |   9 +
 .../t/testertests_bail_badplan_noninteger.php      |   9 +
 .../test-more-php/t/testertests_bundle.php         |  42 ++
 .../t/testertests_deprecated_comparisons.php       |  27 ++
 .../t/testertests_deprecated_comparisons.pl        |  25 ++
 .../test-more-php/t/testertests_exit_0.php         |   8 +
 .../test-more-php/t/testertests_exit_fail_260.php  |  14 +
 .../test-more-php/t/testertests_exit_fail_5.php    |  14 +
 .../test-more-php/t/testertests_func_ok.php        |  24 ++
 .../t/testertests_func_ok.php_Test-More.out        |  24 ++
 .../t/testertests_func_ok.php_Test-Simple.out      |  16 +
 .../test-more-php/t/testertests_func_ok.pl         |  24 ++
 .../t/testertests_func_ok.pl_Test-More.out         |  24 ++
 .../t/testertests_func_ok.pl_Test-Simple.out       |  24 ++
 .../test-more-php/t/testertests_func_skip.php      |  11 +
 .../test-more-php/t/testertests_func_skip.pl       |   9 +
 .../t/testertests_include_ok_badlib.php            |  21 +
 .../t/testertests_include_ok_fatal.php             |  17 +
 .../test-more-php/t/testertests_interp.php         |  10 +
 .../test-more-php/t/testertests_interp_env.php     |  19 +
 .../test-more-php/t/testertests_interp_set.php     |  18 +
 .../test-more-php/t/testertests_is_deeply.php      |  31 ++
 .../t/testertests_require_ok_badlib.php            |  12 +
 .../t/testertests_require_ok_borklib.php           |  12 +
 .../t/testertests_require_ok_missing.php           |  12 +
 application/third_party/test-more-php/t/try.php    |   7 +
 data/tests/small-file                              |   3 +
 index.php                                          |  22 +-
 run-tests.sh                                       |  61 +++
 88 files changed, 2987 insertions(+), 461 deletions(-)
 create mode 100644 application/controllers/api.php
 create mode 100644 application/controllers/api/api_controller.php
 create mode 100644 application/controllers/api/v1/api_info.php
 create mode 100644 application/controllers/api/v1/file.php
 create mode 100644 application/controllers/api/v1/user.php
 create mode 100644 application/exceptions/ApiException.php
 create mode 100644 application/exceptions/FileUploadVerifyException.php
 create mode 100644 application/exceptions/InsufficientPermissionsException.php
 create mode 100644 application/exceptions/NotAuthenticatedException.php
 create mode 100644 application/exceptions/NotFoundException.php
 create mode 100644 application/exceptions/PublicApiException.php
 create mode 100644 application/exceptions/RequestTooBigException.php
 create mode 100644 application/exceptions/UserInputException.php
 create mode 100644 application/exceptions/VerifyException.php
 create mode 100644 application/migrations/014_deduplicate_file_storage.php
 create mode 100644 application/service/files.php
 create mode 100644 application/service/user.php
 create mode 100644 application/tests/Test.php
 create mode 100644 application/tests/test_api_v1.php
 create mode 100644 application/tests/test_service_files.php
 create mode 100755 application/third_party/test-more-php/Test-More-OO.php
 create mode 100755 application/third_party/test-more-php/Test-More.php
 create mode 100755 application/third_party/test-more-php/Test-Simple-OO.php
 create mode 100755 application/third_party/test-more-php/Test-Simple.php
 create mode 100755 application/third_party/test-more-php/t/PHProvable.pl
 create mode 100755 application/third_party/test-more-php/t/badlib.php
 create mode 100755 application/third_party/test-more-php/t/borklib.php
 create mode 100755 application/third_party/test-more-php/t/goodlib.php
 create mode 100755 application/third_party/test-more-php/t/goodpage.php
 create mode 100755 application/third_party/test-more-php/t/testertests_bail_badplan_negative.php
 create mode 100755 application/third_party/test-more-php/t/testertests_bail_badplan_noninteger.php
 create mode 100755 application/third_party/test-more-php/t/testertests_bundle.php
 create mode 100755 application/third_party/test-more-php/t/testertests_deprecated_comparisons.php
 create mode 100755 application/third_party/test-more-php/t/testertests_deprecated_comparisons.pl
 create mode 100755 application/third_party/test-more-php/t/testertests_exit_0.php
 create mode 100755 application/third_party/test-more-php/t/testertests_exit_fail_260.php
 create mode 100755 application/third_party/test-more-php/t/testertests_exit_fail_5.php
 create mode 100755 application/third_party/test-more-php/t/testertests_func_ok.php
 create mode 100755 application/third_party/test-more-php/t/testertests_func_ok.php_Test-More.out
 create mode 100755 application/third_party/test-more-php/t/testertests_func_ok.php_Test-Simple.out
 create mode 100755 application/third_party/test-more-php/t/testertests_func_ok.pl
 create mode 100755 application/third_party/test-more-php/t/testertests_func_ok.pl_Test-More.out
 create mode 100755 application/third_party/test-more-php/t/testertests_func_ok.pl_Test-Simple.out
 create mode 100755 application/third_party/test-more-php/t/testertests_func_skip.php
 create mode 100755 application/third_party/test-more-php/t/testertests_func_skip.pl
 create mode 100755 application/third_party/test-more-php/t/testertests_include_ok_badlib.php
 create mode 100755 application/third_party/test-more-php/t/testertests_include_ok_fatal.php
 create mode 100755 application/third_party/test-more-php/t/testertests_interp.php
 create mode 100755 application/third_party/test-more-php/t/testertests_interp_env.php
 create mode 100755 application/third_party/test-more-php/t/testertests_interp_set.php
 create mode 100755 application/third_party/test-more-php/t/testertests_is_deeply.php
 create mode 100755 application/third_party/test-more-php/t/testertests_require_ok_badlib.php
 create mode 100755 application/third_party/test-more-php/t/testertests_require_ok_borklib.php
 create mode 100755 application/third_party/test-more-php/t/testertests_require_ok_missing.php
 create mode 100755 application/third_party/test-more-php/t/try.php
 create mode 100644 data/tests/small-file
 create mode 100755 run-tests.sh


More information about the Filebin-general mailing list