Uploaded image for project: 'Project FiFo'
  1. FIFO-1014

FIFO 0.7.2 can not add ssh public key.

    Details

    • Type: Bug
    • Status: Resolved (View workflow)
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: 0.7.2
    • Fix Version/s: 0.8.0
    • Component/s: howl
    • Labels:
      None
    • Environment:

      FIFO 0.7.2
      SmartOS 20160204T173339Z

      Description

      Can not add ssh public key on Cerberus UI.

      Howl error log:
      2016-02-20 21:53:35.311 [info] <0.17764.0>@wiggle_rest_h:write1:345 [schema:user_add_key] Validating.
      2016-02-20 21:53:35.311 [error] <0.17764.0>@wiggle_rest_h:write1:351 [schema:user_add_key] Malformated data: [{data_invalid,[

      {<<"$schema">>,<<"http://json-schema.org/draft-03/schema#">>}

      ,

      {<<"description">>,<<"Add a SSH key to a user">>}

      ,

      {<<"type">>,<<"object">>}

      ,

      {<<"additionalProperties">>,false}

      ,{<<"patternProperties">>,[{<<"^[a-zA-Z@_.,-]+$">>,[

      {<<"pattern">>,<<"^[^ ]+ [^ ]+ [^ ]+$">>}

      ]}]}],no_extra_properties_allowed,[

      {<<"root@node-1.sz.dev">>,<<"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBRNUy7zQsBnemY7ONjjTOCACuppgBicyajLA6Fo8PumBYEytxnKcTZBCm2D/yBLUxVko/vaEqlj8ItTRIvP5HBJwiHl69cwzrjFMiuBgPtJyPZLTEFpUywqUvaIMuQrhRzLPypJepRPuadIwcny7Tb1rpgdNqkSsu+os4pZ5ke3vU7uM+F86rGzfko7muTopxtFozUTJicRBY0RN8TfF2WOf7KWd1mQ5b/INbBmyhT2M6Zhi8o50AijdVaRcrPM2TcQE0B5AnKNgFS3tXFbzCMgcPl9dMzXbA1n1HoSPh7xay8zVoL/+sqmwmUYTYGkCz4gnKN8W7gXxvHWJ9KFk7 root@node-1.sz.dev">>}

      ],[<<"root@node-1.sz.dev">>]}]

      Cerberus Web browser console log:
      PUT http://briphant.jios.org:9000/api/2/users/1f92d722-3e35-419a-b9df-1524f3b79c27/keys 400 (Bad Request)
      63 Uncaught SyntaxError: Unexpected token d

        Attachments

          Activity

            People

            • Assignee:
              heinz Heinz N. Gies
              Reporter:
              tim.tang tim.tang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: