Support for specifying an https url for staging upload
Use a proper domain name regex

This allows all possible domain names based on RFC 1035.

[delivers #69232044]
Update error message during broker create/update

When a client is claimed by a different broker AND it does not exist in
the UAA, we get the proper error.

This commit also includes a large refactor of the
DashboardClientManager.
Fix the build
Revert "Add an endpoint to restage the app"

This reverts commit 4ff4b9cadf38a809c6a8473d8d961b994580b995.

Signed-off-by: Phan Le <ple@pivotallabs.com>
Checks that the file size is within limits before adding to the blobstore
Add back in the build_artifacts_cache_download_uri, because it is not always a cc endpoint

Signed-off-by: David Varvel <dvarvel@pivotallabs.com>
diego: pass environment variables as array of hashes, not array of arrays
When the blobstore is local, detect missing droplets

Fail to start if the droplet is missing
Extract StartAppMessage
Enable space developer to see and map private domain

Signed-off-by: Kai Zhang <kaizhang@cn.ibm.com>
Refactor who can add domain to org logic.

Signed-off-by: Kai Zhang <kaizhang@cn.ibm.com>
Check md5 in droplet & buildpack cache uploads

If the Content-MD5 header is provided and its value
does not match the md5 of the upload, return a 400

Signed-off-by: David Varvel <dvarvel@pivotallabs.com>
When start/scale fail, undo any changes made
Ensure that there is at least one org manager per org

* The only exception is right after creation, in which there may be no
  organization managers.
* Rescue from Sequel::HookFailed exceptions in RestController::Base#dispatch

[#66448526]

Signed-off-by: James Myers <jmyers@pivotallabs.com>
Minor test refactoring

[#69544442]
Signed-off-by: Kai Zhang <kaizhang@cn.ibm.com>
Refactor stagings_controller.

Signed-off-by: Kai Zhang <kaizhang@cn.ibm.com>
Finish StagingsController refactoring

[#69544442]

Signed-off-by: Kai Zhang <kaizhang@cn.ibm.com>
Make Blobstore::Client#file a public method

* used by the buildpack bits controller, hopefully will be refactored to use
  the new blob pattern.

Signed-off-by: Kai Zhang <kaizhang@cn.ibm.com>
Refactor buildpack_bits_controller to use Blob instead of file

Signed-off-by: Kai Zhang <kaizhang@cn.ibm.com>
Fix typo in buildpack_bits_controller

Signed-off-by: Kai Zhang <kaizhang@cn.ibm.com>