[Box Backup-commit] [boxbackup/boxbackup] 7949f3: Add a platform-independent implementation of box_s...

GitHub noreply at github.com
Tue May 30 21:45:54 BST 2017


  Branch: refs/heads/s3_support_merge
  Home:   https://github.com/boxbackup/boxbackup
  Commit: 7949f3f41528cdc30117d441c858276f5a4d2aaa
      https://github.com/boxbackup/boxbackup/commit/7949f3f41528cdc30117d441c858276f5a4d2aaa
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2017-05-30 (Tue, 30 May 2017)

  Changed paths:
    M lib/win32/emu.cpp
    M lib/win32/emu.h
    M test/common/testcommon.cpp

  Log Message:
  -----------
  Add a platform-independent implementation of box_strtoui64

Replaces strtoull(), which doesn't exist on older Windows compilers (MSVC <
12), and in any case doesn't necessarily return a uint64_t, so this is a better
interface.


  Commit: 3eca2a4b91eb8978c8061428fe28b5cb2a4e4f92
      https://github.com/boxbackup/boxbackup/commit/3eca2a4b91eb8978c8061428fe28b5cb2a4e4f92
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2017-05-30 (Tue, 30 May 2017)

  Changed paths:
    M lib/backupstore/BackupAccountControl.cpp
    M lib/backupstore/BackupAccountControl.h
    A lib/backupstore/BackupFileSystem.cpp
    M lib/backupstore/BackupStoreException.txt
    M lib/backupstore/BackupStoreInfo.h

  Log Message:
  -----------
  Move S3BackupFileSystem class into its own file.

Create BackupFileSystem, an abstract interface for reading and writing
files and directories, abstracting over RaidFile, S3, FTP etc. as a parent
class for S3BackupFileSystem.


  Commit: 7acbeb239194bd8dc3b5cc49d0e224d715c6163c
      https://github.com/boxbackup/boxbackup/commit/7acbeb239194bd8dc3b5cc49d0e224d715c6163c
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2017-05-30 (Tue, 30 May 2017)

  Changed paths:
    M lib/common/BoxException.h
    M lib/common/CollectInBufferStream.h
    M lib/common/makeexception.pl.in
    M lib/httpserver/HTTPException.txt
    M lib/httpserver/HTTPServer.cpp
    M lib/httpserver/S3Client.cpp
    M lib/httpserver/S3Simulator.cpp
    M test/httpserver/testhttpserver.cpp

  Log Message:
  -----------
  Improve exception handling in S3Simulator, S3Client and HTTPServer.

Centralise error response generation in S3Simulator, driven by throwing and
catching exceptions.

Improve error messages returned by HTTPServer.

Improve exception messages thrown by S3Client.

Add a method to BoxException to quickly check what type of exception it is,
and a macro to make this even shorter.

Show the exception type as well as subtype in GetMessage().


  Commit: 4be4985895d183c8e960d347910c8d440f200f06
      https://github.com/boxbackup/boxbackup/commit/4be4985895d183c8e960d347910c8d440f200f06
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2017-05-30 (Tue, 30 May 2017)

  Changed paths:
    M infrastructure/travis-build.sh

  Log Message:
  -----------
  Travis build script: add extra debugging.

This script can be useful as a shortcut for command-line builds, but not if you
forget to set TEST_TARGET, so now it errors if you do.


  Commit: f268e3d77d820677d272becac51f0fbb69b4a459
      https://github.com/boxbackup/boxbackup/commit/f268e3d77d820677d272becac51f0fbb69b4a459
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2017-05-30 (Tue, 30 May 2017)

  Changed paths:
    M lib/backupstore/BackupStoreFile.cpp
    M lib/backupstore/BackupStoreFile.h
    M lib/server/TcpNice.cpp
    M lib/server/TcpNice.h

  Log Message:
  -----------
  Fix overloaded virtual function warnings.

Revealed by enabling the -Woverloaded-virtual compiler option.


  Commit: 5cdc2e8c1c0dcfc033d4dcbf4f8feb4635c858ec
      https://github.com/boxbackup/boxbackup/commit/5cdc2e8c1c0dcfc033d4dcbf4f8feb4635c858ec
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2017-05-30 (Tue, 30 May 2017)

  Changed paths:
    M lib/common/Test.h
    M test/s3store/tests3store.cpp

  Log Message:
  -----------
  Refactor test/s3store to make check_new_account_info() reusable.

(cherry picked from commit 2f597e11ccf56129319851f767581de1055da53e)


  Commit: 572973bffb03bc1442d38a78e73d800d0e1fdcd1
      https://github.com/boxbackup/boxbackup/commit/572973bffb03bc1442d38a78e73d800d0e1fdcd1
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2017-05-30 (Tue, 30 May 2017)

  Changed paths:
    M bin/bbackupquery/bbackupquery.cpp
    M bin/bbstoreaccounts/bbstoreaccounts.cpp
    M lib/backupstore/BackupAccountControl.cpp
    M lib/backupstore/BackupStoreAccounts.cpp
    M lib/backupstore/BackupStoreCheck.h
    M lib/backupstore/BackupStoreRefCountDatabase.cpp
    M lib/backupstore/BackupStoreRefCountDatabase.h
    M lib/backupstore/HousekeepStoreAccount.h
    M lib/bbackupd/BackupClientContext.cpp
    M lib/bbstored/BBStoreDHousekeeping.cpp
    M lib/common/Configuration.cpp
    M lib/common/Configuration.h
    M lib/common/IOStream.cpp
    M lib/common/NamedLock.h
    M lib/common/ReadLoggingStream.cpp
    M lib/common/Utils.cpp
    M lib/common/ZeroStream.h
    M lib/httpserver/HTTPRequest.cpp

  Log Message:
  -----------
  Whitespace cleanup

(cherry picked from commit 88f7f4ef025a32680d0545571e0e5bdf9e0d5c3c)


  Commit: 6423357d3f05d4ef693c7032cc5266d57cfdbc44
      https://github.com/boxbackup/boxbackup/commit/6423357d3f05d4ef693c7032cc5266d57cfdbc44
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2017-05-30 (Tue, 30 May 2017)

  Changed paths:
    M lib/server/Daemon.cpp

  Log Message:
  -----------
  Fix warning about snprintf() being deprecated on Windows.

(cherry picked from commit eeb2a127fe1410a871f3943651fa363edff943d0)


  Commit: bc53b3f35b5f272d858b0dbd5b625be90676b32d
      https://github.com/boxbackup/boxbackup/commit/bc53b3f35b5f272d858b0dbd5b625be90676b32d
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2017-05-30 (Tue, 30 May 2017)

  Changed paths:
    M lib/common/Test.cpp
    A lib/httpserver/HTTPHeaders.cpp
    A lib/httpserver/HTTPHeaders.h
    M lib/httpserver/HTTPQueryDecoder.cpp
    M lib/httpserver/HTTPQueryDecoder.h
    M lib/httpserver/HTTPRequest.cpp
    M lib/httpserver/HTTPRequest.h
    M lib/httpserver/HTTPResponse.cpp
    M lib/httpserver/HTTPResponse.h
    M lib/httpserver/S3Client.cpp
    M lib/httpserver/S3Simulator.cpp
    A test/httpserver/testfiles/dsfdsfs98.fd
    M test/httpserver/testhttpserver.cpp

  Log Message:
  -----------
  Refactor common HTTP header handling

Move the common code out of HTTPRequest and HTTPResponse into the new
HTTPHeaders class, a container for headers with some sensible HTTP-specific
behaviour.

(cherry picked from commit 546c0d068934e8fc5ba53f32bdf61b3a6841c65b)


  Commit: 69192bdd42c3bac32a5913d7ca6a2ee347d67ec0
      https://github.com/boxbackup/boxbackup/commit/69192bdd42c3bac32a5913d7ca6a2ee347d67ec0
  Author: Chris Wilson <chris+github at qwirx.com>
  Date:   2017-05-30 (Tue, 30 May 2017)

  Changed paths:
    M lib/common/GetLine.cpp
    M test/basicserver/testbasicserver.cpp

  Log Message:
  -----------
  Fix incorrect timeout calculation in GetLine

Attaching a debugger to a process waiting in GetLine would previously cause the
read() to return immediately with EINTR, which we never retried. Now it retries
until the original timeout has expired.

(cherry picked from commit e997d092ad75aac98b5814c1b24d3ac0f8ae8e4a)


Compare: https://github.com/boxbackup/boxbackup/compare/d0745e7db9db...69192bdd42c3


More information about the Boxbackup-commit mailing list