{"action":"created","issue":{"url":"https://api.github.com/repos/dotCMS/core/issues/8575","repository_url":"https://api.github.com/repos/dotCMS/core","labels_url":"https://api.github.com/repos/dotCMS/core/issues/8575/labels{/name}","comments_url":"https://api.github.com/repos/dotCMS/core/issues/8575/comments","events_url":"https://api.github.com/repos/dotCMS/core/issues/8575/events","html_url":"https://github.com/dotCMS/core/issues/8575","id":131664454,"number":8575,"title":"FileAssetMap does not have 'host' field anymore","user":{"login":"dsilvam","id":1576794,"avatar_url":"https://avatars.githubusercontent.com/u/1576794?v=3","gravatar_id":"","url":"https://api.github.com/users/dsilvam","html_url":"https://github.com/dsilvam","followers_url":"https://api.github.com/users/dsilvam/followers","following_url":"https://api.github.com/users/dsilvam/following{/other_user}","gists_url":"https://api.github.com/users/dsilvam/gists{/gist_id}","starred_url":"https://api.github.com/users/dsilvam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsilvam/subscriptions","organizations_url":"https://api.github.com/users/dsilvam/orgs","repos_url":"https://api.github.com/users/dsilvam/repos","events_url":"https://api.github.com/users/dsilvam/events{/privacy}","received_events_url":"https://api.github.com/users/dsilvam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-05T14:56:44Z","updated_at":"2016-02-05T15:16:49Z","closed_at":null,"body":"If you have a contentType with a field of type 'File' or 'Image' and you do  \r\n'$myContent.myImageField' or '$myContent.myFileField', the resulting Map that gets printed does not include the 'host' anymore, so doing '$myContent.myImageField.host' does not print the host identifier.\r\n\r\n'host' propery was included in the resulting map in 3.2.4, but it is not since 3.3\r\n\r\nThis is because the 'host' property does not get copied in this line:\r\n\r\nhttps://github.com/dotCMS/core/blob/master-3.5/src/com/dotmarketing/viewtools/content/FileAssetMap.java#L34\r\n\r\nIt is there in the original object:\r\nhttps://github.com/dotCMS/core/blob/master-3.5/src/com/dotmarketing/viewtools/content/FileAssetMap.java#L30\r\n\r\nbut it does not get copied to the resulting object:\r\nhttps://github.com/dotCMS/core/blob/master-3.5/src/com/dotmarketing/viewtools/content/FileAssetMap.java#L36\r\n\r\nReproduced in 3.3 and latest master-3.5\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotCMS/core/issues/comments/180396257","html_url":"https://github.com/dotCMS/core/issues/8575#issuecomment-180396257","issue_url":"https://api.github.com/repos/dotCMS/core/issues/8575","id":180396257,"user":{"login":"dsilvam","id":1576794,"avatar_url":"https://avatars.githubusercontent.com/u/1576794?v=3","gravatar_id":"","url":"https://api.github.com/users/dsilvam","html_url":"https://github.com/dsilvam","followers_url":"https://api.github.com/users/dsilvam/followers","following_url":"https://api.github.com/users/dsilvam/following{/other_user}","gists_url":"https://api.github.com/users/dsilvam/gists{/gist_id}","starred_url":"https://api.github.com/users/dsilvam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsilvam/subscriptions","organizations_url":"https://api.github.com/users/dsilvam/orgs","repos_url":"https://api.github.com/users/dsilvam/repos","events_url":"https://api.github.com/users/dsilvam/events{/privacy}","received_events_url":"https://api.github.com/users/dsilvam/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T15:16:49Z","updated_at":"2016-02-05T15:16:49Z","body":"We want the Host identifier only in the FileAssetMap (like 3.2.4), not the whole Host object:\r\n\r\nhttps://github.com/dotCMS/support/blob/master/hotfixes/hotfix-GIT-8575-v3.3/src/com/dotmarketing/viewtools/content/FileAssetMap.java#L33\r\n\r\nfam.setHost(fa.getHost()); \r\n\r\nfa.getHost returns host identifier "}}