Skip to content

500 error when uploading a licence file

I tried to upload a licence file and admin/license/new produces a 500 error. Pasting the licence contents works ok. It seems to be GEO related. Using 8.5.5-rc.

NoMethodError (undefined method `split' for nil:NilClass):
  app/models/license.rb:49:in `license'
  app/models/license.rb:56:in `license?'
  app/models/license.rb:90:in `valid_license'
  app/controllers/admin/licenses_controller.rb:31:in `block in create'
  app/controllers/admin/licenses_controller.rb:30:in `create'
  lib/gitlab/middleware/readonly_geo.rb:22:in `call'