ACE editor causing 404 errors every time you try to edit a file in the WebUI

https://gitlab.zendesk.com/agent/tickets/10756

Description

Reported by Big Consumer Electronics Company.

We use the ACE gem for the the text editor when editing files via the WebUI. This gem tries to detect the language the file or text is in to add syntax highlighting (this is on by default). Since we don't include any of the ace assets in our pipeline, they will always cause a 404 error when you open the editor.

Relevant issues

https://github.com/gitlabhq/gitlabhq/issues/7513 https://github.com/gitlabhq/gitlabhq/pull/7530

Replication

It is still the case with 8.1.2.

Next steps

It might be possible for us to disable syntax highlighting so that we don't pollute the nginx logs.

@rspeicher do you want to have a look at this?

/cc @JobV @dblessing