Project

General

Profile

Actions

Bug #17951

closed

Installation fails/breaks when there is a double dash (--) in the domainname of a machine.

Added by Jan Vansteenkiste over 7 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Settings
Target version:
-
Difficulty:
easy
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

The rake tasks (db:seed) throws a terrible stacktrace with a validation error. After a lot of debugging I narrowed it down to:

Given domainname: foo--bar.example.com

In app/models/setting/general.rb#L8

    administrator = "root@#{domain}" 

Which is validated by app/validators/email_validator.rb and fails.

Possible solutions are backporting the changes to the email_validator (using the mail gem) or adjusting the beast of a regex to match domain names with double dashes in the name.

Actions

Also available in: Atom PDF