{"action":"opened","issue":{"url":"https://api.github.com/repos/structr/structr/issues/365","labels_url":"https://api.github.com/repos/structr/structr/issues/365/labels{/name}","comments_url":"https://api.github.com/repos/structr/structr/issues/365/comments","events_url":"https://api.github.com/repos/structr/structr/issues/365/events","html_url":"https://github.com/structr/structr/issues/365","id":79545570,"number":365,"title":"Import of remote web page causes ClassCastExecption","user":{"login":"grimace","id":33261,"avatar_url":"https://avatars.githubusercontent.com/u/33261?v=3","gravatar_id":"","url":"https://api.github.com/users/grimace","html_url":"https://github.com/grimace","followers_url":"https://api.github.com/users/grimace/followers","following_url":"https://api.github.com/users/grimace/following{/other_user}","gists_url":"https://api.github.com/users/grimace/gists{/gist_id}","starred_url":"https://api.github.com/users/grimace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grimace/subscriptions","organizations_url":"https://api.github.com/users/grimace/orgs","repos_url":"https://api.github.com/users/grimace/repos","events_url":"https://api.github.com/users/grimace/events{/privacy}","received_events_url":"https://api.github.com/users/grimace/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-22T17:46:43Z","updated_at":"2015-05-22T17:46:43Z","closed_at":null,"body":"I've tried this on a number of pages, some elements are imported and some fail with this stacktrace:\r\n\r\n`2015-05-22 19:21:05.466:WARN:osw.StructrWebSocket:qtp944075145-30: Unhandled Error (closing connection)\r\njava.lang.ClassCastException: org.structr.dynamic.File cannot be cast to org.structr.web.entity.Folder\r\n\tat org.structr.web.common.FileHelper.createFolderPath(FileHelper.java:671)\r\n\tat org.structr.web.Importer.downloadFile(Importer.java:850)\r\n\tat org.structr.web.Importer.createChildNodes(Importer.java:548)\r\n\tat org.structr.web.Importer.createChildNodes(Importer.java:719)\r\n\tat org.structr.web.Importer.createChildNodes(Importer.java:719)\r\n\tat org.structr.web.Importer.createChildNodes(Importer.java:502)\r\n\tat org.structr.web.Importer.readPage(Importer.java:296)\r\n\tat org.structr.websocket.command.ImportCommand.processMessage(ImportCommand.java:77)\r\n\tat org.structr.websocket.StructrWebSocket.onWebSocketText(StructrWebSocket.java:204)\r\n\tat org.eclipse.jetty.websocket.common.events.JettyListenerEventDriver.onTextMessage(JettyListenerEventDriver.java:128)`\r\n\r\n\r\n\r\nthis is the info for the path that Importer was processing:\r\n`INFO: Download URL: http://mediterrasian.com/blog/wp-content/uploads/headway/cache/general-0ac1937.css?ver=4.1.1, address: http://mediterrasian.com/blog/?p=3391, cleaned address: http://mediterrasian.com/blog\r\nMay 22, 2015 7:21:20 PM org.structr.web.Importer downloadFile\r\nINFO: Relative path: /wp-content/uploads/headway/cache/general-0ac1937.css?ver=4.1.1, final path: mediterrasian.com/blog/wp-content/uploads/headway/cache/\r\n2`\r\n"}}