{"action":"created","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2224","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2224/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2224/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2224/events","html_url":"https://github.com/CenterForOpenScience/osf.io/issues/2224","id":62703680,"number":2224,"title":"[staging & production] Cannot upload files to Dataverse","user":{"login":"caileyfitz","id":5975444,"avatar_url":"https://avatars.githubusercontent.com/u/5975444?v=3","gravatar_id":"","url":"https://api.github.com/users/caileyfitz","html_url":"https://github.com/caileyfitz","followers_url":"https://api.github.com/users/caileyfitz/followers","following_url":"https://api.github.com/users/caileyfitz/following{/other_user}","gists_url":"https://api.github.com/users/caileyfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/caileyfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caileyfitz/subscriptions","organizations_url":"https://api.github.com/users/caileyfitz/orgs","repos_url":"https://api.github.com/users/caileyfitz/repos","events_url":"https://api.github.com/users/caileyfitz/events{/privacy}","received_events_url":"https://api.github.com/users/caileyfitz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/2%20-%20Ready","name":"2 - Ready","color":"CCCCCC"},{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/Bug:%20Production","name":"Bug: Production","color":"e11d21"},{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/Priority%20-%20High","name":"Priority - High","color":"FF810F"}],"state":"open","locked":false,"assignee":{"login":"rliebz","id":5321575,"avatar_url":"https://avatars.githubusercontent.com/u/5321575?v=3","gravatar_id":"","url":"https://api.github.com/users/rliebz","html_url":"https://github.com/rliebz","followers_url":"https://api.github.com/users/rliebz/followers","following_url":"https://api.github.com/users/rliebz/following{/other_user}","gists_url":"https://api.github.com/users/rliebz/gists{/gist_id}","starred_url":"https://api.github.com/users/rliebz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rliebz/subscriptions","organizations_url":"https://api.github.com/users/rliebz/orgs","repos_url":"https://api.github.com/users/rliebz/repos","events_url":"https://api.github.com/users/rliebz/events{/privacy}","received_events_url":"https://api.github.com/users/rliebz/received_events","type":"User","site_admin":false},"milestone":null,"comments":18,"created_at":"2015-03-18T14:11:36Z","updated_at":"2015-04-21T15:56:39Z","closed_at":null,"body":"# Steps\r\n1. Go to a project where Dataverse is configured\r\n2. Go to the files tab\r\n3. Change the version from 'Released' to 'Draft'\r\n4. Try to upload a file\r\n\r\n# Expected\r\nThe file uploads.\r\n\r\n# Actual\r\nThe user receives an error saying that the file cannot be uploaded: \r\n![screen shot 2015-03-18 at 10 00 16 am](https://cloud.githubusercontent.com/assets/5975444/6710441/17cca14c-cd57-11e4-8f7f-c7c5beb44e2c.png)\r\nand a 500 error is shown in the console\r\n![screen shot 2015-03-18 at 10 03 57 am](https://cloud.githubusercontent.com/assets/5975444/6710443/210b5faa-cd57-11e4-94ac-48e83de32d4d.png)\r\n"},"comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments/94851677","html_url":"https://github.com/CenterForOpenScience/osf.io/issues/2224#issuecomment-94851677","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2224","id":94851677,"user":{"login":"rliebz","id":5321575,"avatar_url":"https://avatars.githubusercontent.com/u/5321575?v=3","gravatar_id":"","url":"https://api.github.com/users/rliebz","html_url":"https://github.com/rliebz","followers_url":"https://api.github.com/users/rliebz/followers","following_url":"https://api.github.com/users/rliebz/following{/other_user}","gists_url":"https://api.github.com/users/rliebz/gists{/gist_id}","starred_url":"https://api.github.com/users/rliebz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rliebz/subscriptions","organizations_url":"https://api.github.com/users/rliebz/orgs","repos_url":"https://api.github.com/users/rliebz/repos","events_url":"https://api.github.com/users/rliebz/events{/privacy}","received_events_url":"https://api.github.com/users/rliebz/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T15:56:39Z","updated_at":"2015-04-21T15:56:39Z","body":"Dataverse. This issue is occurring for pre-existing datasets that do not meet metadata requirements for 4.0. I've filed an issue at https://github.com/IQSS/dataverse/issues/2062, although I'm not sure how easy this will be to resolve.\r\n\r\nTwo potential solutions if Dataverse does not resolve the issue quickly:\r\n 1. When connecting a dataset, we warn the users and let them know the solution so they can fix it manually on dataverse.harvard.edu.\r\n 2 . When connecting a dataset, we programmatically fix this by checking the metadata, adding in their OSF email as a contact email on the Dataverse if they are missing one, and add in \"Other\" as the subject if they are missing one. Probably a bad idea to pass emails along like that, but it does open up the ability to perform a migration for users."}}