Comments (3)
is it a issue on MTA Deploy Service ? could you provide more content of a mta.yaml and more reproduce steps ?
from cloud-mta-build-tool.
Given a mta that defines a route, such as for example https://github.com/SAP-samples/cf-mta-examples/blob/main/app-routes/http2-routes/mta.yaml if your routes include an underscore, such as my_app_route_http1.${default-domain}
when deployed you'll notice that your routes don't include the _
but all instances are replaced with -
. Creating a route with _
using the cloud foundry cli works without an issue. So something during the process of build to deployment seems to modify this.
With regards to reproducability - simply deploy any application with such a route to cloud foundry and check the created routes.
from cloud-mta-build-tool.
Hey @tsteckenborn
The correction of CF app routes happens during MTA deployment in BTP CF. In general, there are the following legacy policies for auto-correction of hosts
-
shorten if the host exceeds 63 symbols - the shorten one will end with some hash sum:
https://github.com/cloudfoundry/multiapps-controller/blob/master/multiapps-controller-core/src/main/java/org/cloudfoundry/multiapps/controller/core/validators/parameters/RoutePartValidator.java -
replace illegal characters (non alphanumeric or -) with dash '-' => you face this autocorrection policy:
https://github.com/cloudfoundry/multiapps-controller/blob/master/multiapps-controller-core/src/main/java/org/cloudfoundry/multiapps/controller/core/validators/parameters/RoutePartValidator.java#L13
The situation with autocorrection of routes and hosts is not the best one, but it is important to know that it exists since the introduction of MTA deployment in SAP CF. Back than the MTA deployments inherits these resitrcitions from the platform.
Now the CF does not restrict the routes in that manner and it is worth to consider how to improve the behavior of MTA deployment. However, a simple removal of autocorrection might lead to breaking change for part of the customers because their productive routes will be changed.
My suggestion is to use short hostnames without dashes which will not be autocorrected.
from cloud-mta-build-tool.
Related Issues (20)
- License declaration for "SAP DEVELOPER LICENSE AGREEMENT"
- MBT version 1.2.25 is not working after installation under proxy HOT 7
- support for multiple processes
- mbt build error - tar-TXGjz8: Cannot open: No such file or directory
- Module route protocol support
- Docker image for java 21 HOT 2
- Provide resiliency for MTA builds HOT 5
- "Error: No binaries are available for your platform: linux-arm64" Regression of #955 HOT 3
- mbt validation error for mta dynamic parameters and parameters
- Unable to build Workflow Management MTAR HOT 2
- Error could not remove the Makefile_20240125133534.mta HOT 1
- npm registry-entry not correct used inside from monorep-modules HOT 1
- Env variable not getting set according to mta.yaml HOT 2
- Apply before-all for mbt sbom-gen
- Request a docker for node 18.19.1 HOT 3
- MTA build failed : could not execute the on Mac HOT 1
- Please publish new release with config.urls linux-amd64 HOT 7
- Error on windows: cannot run executable found relative to current directory
- Circular dependency on mta and mtaext issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-mta-build-tool.