You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a application has defined a host parameter which is too long (it looks like 64 characters are the boundary) and the definition of the provides property is using url: '${default-url}'
then the url will be truncated using the first 56 character of the host definition + 8 (random) characters.
See also resolved deployment descriptor in MAIN_LOG
Detected MTA schema version: "3"
No deployed MTA detected - this is initial deployment
Detected new MTA version: "0.0.1"
Service "uaa" exists but doesnt have any bound applications
Service "html5-host" exists but doesnt have any bound applications
Processing service "html5-host"...
Processing service "uaa"...
Updating service "uaa"...
Creating application "backend" from MTA module "backend"...
Uploading application "backend"...
Scaling application "backend" to "1" instances...
Staging application "backend"...
Application "backend" staged
Starting application "backend"...
Application "backend" started and available at "00000000000000000000000000000000000000000000000000000006ba5e791.cfapps.eu10.hana.ondemand.com"
Creating application "broker" from MTA module "broker"...
Uploading application "broker"...
Scaling application "broker" to "1" instances...
Staging application "broker"...
Application "broker" staged
Starting application "broker"...
Application "broker" started and available at "XXX"
Updating service broker "broker-cuh-test"...
Skipping deletion of services, because the command line option "--delete-services" is not specified.
Process finished.
Use "cf dmol -i 184392687" to download the logs of the process.
This could be observed when trying to manually map a long route using 'cf map-route':
Server error, status code: 400, error code: 210001, message: The route is invalid: host must be no more than 63 characters
However, as it is often relied on the organization name and space name to generate the default route for the application it is a necessity to have this feature as it enables deployments in organizations/spaces with long names which would otherwise not be possible due to above limitations.
As observed, the host validation includes length checks and correction by truncating and appending the hashcode as hex string in order to generate a shortened host.
This same logic carried over to the explicit definition of 'host' parameter in the deployment descriptor as well.
It would make sense to stay consistent with CF and fail accordingly if 'host' is explicitly used in the deployment descriptor and sustain the above logic only for the default generation of the route.
That way, the application will not be started on a route which is not expected by the end user and instead would fail the deployment (CC call failure) when trying to map the route to the application.
This is a future possibility but I'd rather say it depends on the need of this change in logic and actual simplicity of the implementation.
Description
When a application has defined a
host
parameter which is too long (it looks like 64 characters are the boundary) and the definition of the provides property is usingurl: '${default-url}'
then the url will be truncated using the first 56 character of the host definition + 8 (random) characters.
See also resolved deployment descriptor in MAIN_LOG
In the resolved deployment descriptor the MAIN_LOG also shows the resolved endpoint for the broker service configuration
But the resolved endpoint is not the defined route of the application.
Your environment
Steps to reproduce
I created a example project with this mta.yaml
For the creation of the MTAR is used the Multi-Target Application Archive Builder in Version 1.1.19 from here
I created a new space and did the deploy
The log for that was
Additional information
The MAIN_LOG can be found here
The text was updated successfully, but these errors were encountered: