# Bug OP-16871 - OpenProject enterprise key domain check is case-sensitive

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-16871

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Enterprise edition / Enterprise token |
| Target versions | 16.0.0 |
| Observed in versions |  |
| Sprint | 16.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Oliver Günther |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Generate an enterprise key with upercase letter in it (OpenProject.example.com)

2.  Go to an instance with this domain 

3.  Import the key
    
    <br>

### What is the buggy behavior?

  - You get an invalid domain error
    
    <br>

### What is the expected behavior?

1.  You can import the enterprie key

### Important note

It seems that the validation of the domain is case-sensitive:

<https://github.com/opf/openproject/blob/v15.4.1/app/models/enterprise_token.rb#L111>

<https://www.rubydoc.info/gems/openproject-token/4.0.0/OpenProject%2FToken:valid_domain%3F>

<br>
