Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Conversation

sosiouxme
Copy link
Member

@sosiouxme
Copy link
Member Author

Need someone to review the approach; not sure if I should do something to keep the user from possibly creating an alias that conflicts with another app's name.

@sosiouxme
Copy link
Member Author

[test]

@openshift-bot
Copy link

Copy link
Contributor

Choose a reason for hiding this comment

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

using chomp will try to match the regex against aliases that have nothing to do with the domain_suffix. might be better to wrap the whole thing in an if block, like

if fqdn.end_with?(Rails.configuration.openshift[:domain_suffix])
  return false if !Rails.configuration.openshift[:allow_alias_in_domain]
  return false if fqdn.chomp(Rails.configuration.openshift[:domain_suffix]) =~ /\A\w+-\w+\.\z/
end

Copy link
Member Author

Choose a reason for hiding this comment

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

It will, but unless your alias is "foo-bar" with no domain it won't be rejected.

Hmm. I guess someone could want to do that. Fair enough.

@openshift-bot
Copy link

Online Merge Results: SUCCESS (https://ci.dev.openshift.redhat.com/jenkins/job/merge_pull_requests/4539/) (Image: devenv_4295)

@sosiouxme
Copy link
Member Author

goes along with https://github.com/openshift/li/pull/2288

@sosiouxme
Copy link
Member Author

[merge]

@sosiouxme
Copy link
Member Author

[merge] again.

@openshift-bot
Copy link

Evaluated for online up to ca8b065

openshift-bot pushed a commit that referenced this pull request Jan 28, 2014
@openshift-bot openshift-bot merged commit 7f0e7b6 into openshift:master Jan 28, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants