{"action":"created","issue":{"url":"https://api.github.com/repos/dani-garcia/bitwarden_rs/issues/178","repository_url":"https://api.github.com/repos/dani-garcia/bitwarden_rs","labels_url":"https://api.github.com/repos/dani-garcia/bitwarden_rs/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/dani-garcia/bitwarden_rs/issues/178/comments","events_url":"https://api.github.com/repos/dani-garcia/bitwarden_rs/issues/178/events","html_url":"https://github.com/dani-garcia/bitwarden_rs/issues/178","id":359735768,"node_id":"MDU6SXNzdWUzNTk3MzU3Njg=","number":178,"title":"Organization import from official server broken","user":{"login":"oversearch","id":3829853,"node_id":"MDQ6VXNlcjM4Mjk4NTM=","avatar_url":"https://avatars3.githubusercontent.com/u/3829853?v=4","gravatar_id":"","url":"https://api.github.com/users/oversearch","html_url":"https://github.com/oversearch","followers_url":"https://api.github.com/users/oversearch/followers","following_url":"https://api.github.com/users/oversearch/following{/other_user}","gists_url":"https://api.github.com/users/oversearch/gists{/gist_id}","starred_url":"https://api.github.com/users/oversearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oversearch/subscriptions","organizations_url":"https://api.github.com/users/oversearch/orgs","repos_url":"https://api.github.com/users/oversearch/repos","events_url":"https://api.github.com/users/oversearch/events{/privacy}","received_events_url":"https://api.github.com/users/oversearch/received_events","type":"User","site_admin":false},"labels":[{"id":840316914,"node_id":"MDU6TGFiZWw4NDAzMTY5MTQ=","url":"https://api.github.com/repos/dani-garcia/bitwarden_rs/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-13T04:10:23Z","updated_at":"2018-09-13T12:18:59Z","closed_at":null,"author_association":"NONE","body":"Hi there!  Let me start by saying that I really love this implementation of the Bitwarden server.  The speed is fantastic, but what really sold me is how much simpler the implementation is to get running and maintain.  I'm excited to fully transition from the official server code.   Unfortunately, I hit a snag when moving my data out of my old vault on the official server.  \r\n\r\nI have a family organization with a few users, so I separately exported each user and the organization.  When I attempted to import the organization content into bitwarden_rs, I got the \"unexpected error has occurred\" message, which Firefox's debugger showed to be a 400 Bad Request.  Looking at the service output, I get the following:\r\n```\r\nError: Couldn't parse JSON body: Error(\"missing field `Type`\", line: 1, column: 48477)\r\n``` \r\nThe file appears to be correctly formatted as far as I can tell.  I attempted to tweak it in various ways, cut it down to individual entries, etc - but I could not get it to import.  Any idea why this might be happening? I'm running the server on Arch Linux via the AUR package (both the core and the vault), and it appears to be otherwise fully functional.\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/dani-garcia/bitwarden_rs/issues/comments/420986409","html_url":"https://github.com/dani-garcia/bitwarden_rs/issues/178#issuecomment-420986409","issue_url":"https://api.github.com/repos/dani-garcia/bitwarden_rs/issues/178","id":420986409,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDk4NjQwOQ==","user":{"login":"dani-garcia","id":725423,"node_id":"MDQ6VXNlcjcyNTQyMw==","avatar_url":"https://avatars0.githubusercontent.com/u/725423?v=4","gravatar_id":"","url":"https://api.github.com/users/dani-garcia","html_url":"https://github.com/dani-garcia","followers_url":"https://api.github.com/users/dani-garcia/followers","following_url":"https://api.github.com/users/dani-garcia/following{/other_user}","gists_url":"https://api.github.com/users/dani-garcia/gists{/gist_id}","starred_url":"https://api.github.com/users/dani-garcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dani-garcia/subscriptions","organizations_url":"https://api.github.com/users/dani-garcia/orgs","repos_url":"https://api.github.com/users/dani-garcia/repos","events_url":"https://api.github.com/users/dani-garcia/events{/privacy}","received_events_url":"https://api.github.com/users/dani-garcia/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T12:18:59Z","updated_at":"2018-09-13T12:18:59Z","author_association":"OWNER","body":"At the moment, the import to an organization is not yet implemented, the error message is a bit strange because it's matching the wrong route:\r\n`/api/ciphers/import-organization?organizationId=<org_id>`\r\nis matching:\r\n`/api/ciphers/<uuid>`\r\n"}}
{"actor":{"display_login":"dani-garcia"}}