Re: apps.pushManifest behaviour is incorrect for custom private domain


Dieu Cao <dcao@...>
 

I see you've opened an issue on the github repo for the java client library. 
Hope that your issue is resolved there.

On Tue, Jan 15, 2019 at 3:19 PM vshetty via Lists.Cloudfoundry.Org <vshetty=fdic.gov@...> wrote:
We have developed our own implementation of zero downtime restage. We are using java client api version 3.14.0 RELEASE. As part of that

(1) we retrieve the ApplicationManifest from the old application <old name> that we need to restage using Applications.getApplicationManifest
(2) Create a new app <app name> using the Applications.pushManifest using the manifest from previous step. 
(3) Copy the bits using Applications.copySource from <old name> to <new name>

However, if I am using custom domains - then the step (2) creates a dummy app which has incorrect routes. Instead of the route being <custom domain>/<path>, the route cassociated with the new app is <app name>.<custom domain>/<path>. The <app name> is incorrectly added to the route as hostname whereas it should have been empty

Join {cf-dev@lists.cloudfoundry.org to automatically receive all group messages.