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

Add array_unique on urls listing #290

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

MarionLeHerisson
Copy link
Contributor

When running castor start, on some projects, the same url is displayed multiple times, for instance :

Available URLs for this project:
--------------------------------

 * https://foodomarket.local
 * https://elasticsearch.foodomarket.local
 * https://kibana.foodomarket.local
 * https://redis.foodomarket.local
 * https://foodomarket.local
 * https://foodomarket.local

=> "https://foodomarket.local" displayed 3 times

When running `castor start`, on some projects, the same url is displayed multiple times, for instance : 

```
Available URLs for this project:
--------------------------------

 * https://foodomarket.local
 * https://elasticsearch.foodomarket.local
 * https://kibana.foodomarket.local
 * https://redis.foodomarket.local
 * https://foodomarket.local
 * https://foodomarket.local
```
Copy link
Member

@pyrech pyrech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks

@pyrech pyrech merged commit 4997c0d into main Mar 13, 2024
4 checks passed
@pyrech pyrech deleted the array_unique_on_URLs_listing branch March 13, 2024 17:15
@lyrixx
Copy link
Member

lyrixx commented Mar 13, 2024

hmm, It would have been better to check why there are the same URL many times!
I never hit this "bug", so I guess it comes from your projet.

@pyrech
Copy link
Member

pyrech commented Mar 13, 2024

For the record, it can happen if one of your service is declaring an host matching the "root_domain", f.e. when your frontend service does not use a subdomain.

Already got this on a few projects but didn't took time to fix it.

@pyrech
Copy link
Member

pyrech commented Apr 10, 2024

About this issue, my previous comment explained why we listed two times foodomarket.local (root_domain configuration + frontend's domain)

But I just understood that the third repetition of foodomarket.local is due to the configuration rule handling the redirect from HTTP to HTTPS.

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

Successfully merging this pull request may close these issues.

3 participants