{"action":"created","issue":{"url":"https://api.github.com/repos/MISP/MISP/issues/2971","repository_url":"https://api.github.com/repos/MISP/MISP","labels_url":"https://api.github.com/repos/MISP/MISP/issues/2971/labels{/name}","comments_url":"https://api.github.com/repos/MISP/MISP/issues/2971/comments","events_url":"https://api.github.com/repos/MISP/MISP/issues/2971/events","html_url":"https://github.com/MISP/MISP/issues/2971","id":300407451,"number":2971,"title":"[Bug] Cant use freetext import to import filename|ssdeep attributes","user":{"login":"Res260","id":14599855,"avatar_url":"https://avatars1.githubusercontent.com/u/14599855?v=4","gravatar_id":"","url":"https://api.github.com/users/Res260","html_url":"https://github.com/Res260","followers_url":"https://api.github.com/users/Res260/followers","following_url":"https://api.github.com/users/Res260/following{/other_user}","gists_url":"https://api.github.com/users/Res260/gists{/gist_id}","starred_url":"https://api.github.com/users/Res260/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Res260/subscriptions","organizations_url":"https://api.github.com/users/Res260/orgs","repos_url":"https://api.github.com/users/Res260/repos","events_url":"https://api.github.com/users/Res260/events{/privacy}","received_events_url":"https://api.github.com/users/Res260/received_events","type":"User","site_admin":false},"labels":[{"id":27676209,"url":"https://api.github.com/repos/MISP/MISP/labels/bug","name":"bug","color":"edbdaa","default":true},{"id":209391476,"url":"https://api.github.com/repos/MISP/MISP/labels/import/export","name":"import/export","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-26T21:43:40Z","updated_at":"2018-02-28T23:17:46Z","closed_at":null,"author_association":"NONE","body":"### Work environment\r\n\r\n| Questions                 | Answers\r\n|---------------------------|--------------------\r\n| Type of issue             | Bug\r\n| OS version (server)       | Ubuntu\r\n| OS version (client)       | 16\r\n| PHP version               | Unknown\r\n| MISP version / git hash   | 2.4.82, But tested on my local instance 2.4.88 as well\r\n| Browser                   | Chrome\r\n\r\n### Expected behavior\r\n\r\n`filename|ssdeep` Should get imported properly using freetext import.\r\n\r\n### Actual behavior\r\n\r\nEverything else get saved, but not the `filename|ssdeep` attributes. This message is shown:\r\n\"`X` attributes created. `Y` attributes could not be saved. This may be due to attributes with similar values already existing.\"\r\n\r\n### Steps to reproduce the behavior\r\n\r\n1. Create an event\r\n2. Open freetext import\r\n3. Paste an IOC of format `filename|ssdeep`\r\n4. Submit\r\n5. See the error\r\n\r\n### Logs, screenshots, configuration dump, ...\r\n\r\n![image](https://user-images.githubusercontent.com/14599855/36697119-1f1ebef4-1b14-11e8-8c4e-27752e216959.png)\r\n\r\n\r\n![image](https://user-images.githubusercontent.com/14599855/36697076-00b0b9cc-1b14-11e8-9cfb-4a1501e4da2a.png)\r\n\r\nEDIT: In case it's not clear: when adding attributes normally, it works. FreeText Import seems to be the problem."},"comment":{"url":"https://api.github.com/repos/MISP/MISP/issues/comments/369417957","html_url":"https://github.com/MISP/MISP/issues/2971#issuecomment-369417957","issue_url":"https://api.github.com/repos/MISP/MISP/issues/2971","id":369417957,"user":{"login":"Res260","id":14599855,"avatar_url":"https://avatars1.githubusercontent.com/u/14599855?v=4","gravatar_id":"","url":"https://api.github.com/users/Res260","html_url":"https://github.com/Res260","followers_url":"https://api.github.com/users/Res260/followers","following_url":"https://api.github.com/users/Res260/following{/other_user}","gists_url":"https://api.github.com/users/Res260/gists{/gist_id}","starred_url":"https://api.github.com/users/Res260/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Res260/subscriptions","organizations_url":"https://api.github.com/users/Res260/orgs","repos_url":"https://api.github.com/users/Res260/repos","events_url":"https://api.github.com/users/Res260/events{/privacy}","received_events_url":"https://api.github.com/users/Res260/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T23:17:46Z","updated_at":"2018-02-28T23:17:46Z","author_association":"NONE","body":"So I've almost found the problem:\r\n![image](https://user-images.githubusercontent.com/14599855/36818569-9bb9e466-1cb3-11e8-9743-49afcfdb1bd4.png)\r\n\r\n(its for personal reference, I'll do a pull request once I nail it)"}}
{"actor":{"display_login":"Res260"}}