Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL resolution is faulty #1

Open
alexcjcd opened this issue Oct 23, 2019 · 0 comments
Open

URL resolution is faulty #1

alexcjcd opened this issue Oct 23, 2019 · 0 comments

Comments

@alexcjcd
Copy link

When the URL is resolved, the label is left off and the basePath is only added when it is empty. The issue is in the MuleCloudConfigAnypointConnection class, as its logic is inverted on the basePath and leaves the label off altogether.

Present workaround is to concatenate the label onto the profiles field, with dummy text in the label field.

To Reproduce
Steps to reproduce the behavior:

  1. Configure a global Spring Cloud Config connector with application name, profile, label, and base path.
  2. Set a breakpoint on a "Get Properties" component
  3. See that the connection.url property has no label appended and is missing the base path. When base path is not specified, an extra / is added after the base url.

Expected behavior
The URL resolves to baseServerURL + "/" + basePath + "/" + applicationName + "/" + profiles + "/" + label i.e. http://baseserver.com:8080/basePath/appName/profiles/label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant