Import OpenPGP key fails
When trying to add a gpg pubkey in the webapp for a user that has only ever logged in via the webapp this hangs. Logoutput:
Apr 15 23:17:31 pangolin webapp[4022]: Processing by SessionsController#unauthenticated as JSON Apr 15 23:17:31 pangolin webapp[4022]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"CQjxeZdzeH+GEQjI0YP2AWVcX1HNHlGpK65BtAc9mwc3vBTcEt9Jj57mRWJiHuIfhvLHEg9AqkwSaV1SPrPprw==", "user"=>{"public_key"=>"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\n\r\nmQINBEod4oUBEAC2u0U5c17vvyJgKAOm8uN45amORR4bZ9dAbt4S+cg0YNY11GZ4\r\nutVlKJpHfNwsek/BCk7sgShRO0It+lvJfVZ8Kp/Mepjd7Sk6AxhTWyTBApBem1FN\r\n/Hd+x6N7b6se+6Ppl3zw9tXrmj0+wlpVc1MjAmYWdoZj3ezcpK5RIQ2zOk7qjSzs\r\nEDizzqXu7arnJhw7LEwkJHSWyCxcGEKqw028XLt+kyCPNiN5kOeHx6DuapAAtFCN\r\nHWQUSuXOz7VBPwOFTGF1DugGOTsK6Ym665RS0BdR5l3I3xuZuSeQbw+WbcDPB4Lt\r\n+viYxUh402SpKlftL6OFBf1Ur2o96Wmk82je4QGSQ66SCsSWqYgIB0sAz2l/ZxGx\r\nepcq6PPSJcvhayKWZLdUk3bVx2Or+QPKzU7Q2zXPDjF0x/wM5vfN4BBBtFcH/xjS\r\n+8iUJ+fFd63H5NBjDbnSPIDTN+DC4scbYdWoPL6Ur6v8rdH2rBUHE1qDh5xcP+rB\r\n9LVUNkXIzmfc1VZqw5Wti4/ODgg864Wgf0CByQwrVEj48vlEde4nzVeIFyBL/HNw\r\nLTSWC8LbTaWWZfx5PVGVyCT+t6KfRZWZXXVjApH7ZLFu++J1JLwd0tpzAFq2A7Ir\r\nTPcNrHhWQdm+Fa4gyfeP73fNGOqvsQR3uPF9qavS78C2IDhjJkZb7KR56wARAQAB\r\ntCVrd2Fkcm9u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