{"action":"created","issue":{"url":"https://api.github.com/repos/jonathanmccann/liferay-portal/issues/604","labels_url":"https://api.github.com/repos/jonathanmccann/liferay-portal/issues/604/labels{/name}","comments_url":"https://api.github.com/repos/jonathanmccann/liferay-portal/issues/604/comments","events_url":"https://api.github.com/repos/jonathanmccann/liferay-portal/issues/604/events","html_url":"https://github.com/jonathanmccann/liferay-portal/pull/604","id":58267888,"number":604,"title":"LPS-53643 Unable to import site page LAR file due to dependencies from a...","user":{"login":"ChrisKian","id":10406971,"avatar_url":"https://avatars.githubusercontent.com/u/10406971?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisKian","html_url":"https://github.com/ChrisKian","followers_url":"https://api.github.com/users/ChrisKian/followers","following_url":"https://api.github.com/users/ChrisKian/following{/other_user}","gists_url":"https://api.github.com/users/ChrisKian/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisKian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisKian/subscriptions","organizations_url":"https://api.github.com/users/ChrisKian/orgs","repos_url":"https://api.github.com/users/ChrisKian/repos","events_url":"https://api.github.com/users/ChrisKian/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisKian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-19T20:51:34Z","updated_at":"2015-02-20T15:52:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jonathanmccann/liferay-portal/pulls/604","html_url":"https://github.com/jonathanmccann/liferay-portal/pull/604","diff_url":"https://github.com/jonathanmccann/liferay-portal/pull/604.diff","patch_url":"https://github.com/jonathanmccann/liferay-portal/pull/604.patch"},"body":"...n unrelated site\r\n\r\nUpdated https://github.com/jonathanmccann/liferay-portal/pull/603 based off comments from https://github.com/juliocamarero/liferay-portal/pull/3249#issuecomment-75027686\r\n\r\nDescription:\r\nGiven that we generate a LAR file from one site which contains a public page with an Asset Publisher portlet (Site A), and a different site on the same environment contains a structure which is linked to a template (Site B), importing the LAR file of the Public Pages (generated from Site A) into a new bundle will result in an error indicating that the Portal is unable to import the LAR file due to a missing the structure dependency from the other site (Site B).\r\nThe file Public_Pages-201502032216.lar cannot be imported.\r\nThere are missing references that could not be found in the current site. Please import the following elements first:\r\nDynamic Data Mapping Structure: Structure on Site B(Referenced by a Portlet: Asset Publisher)\r\nThis should not be the case, as the Asset Publisher's scope indicates that it will only gathering information from Site A, and not Site B. Also, we are only importing Site A's content.\r\nSteps to reproduce:\r\nOn server 1 :\r\n1. Create 2 blank sites called \"Site A\" and \"Site B\"\r\n2. On site B, create a new web content structure called \"Structure on site B\"\r\n3. On site B, create a template for the structure.\r\n4. On site A, add a page, then add an Asset Publisher to that page.\r\n5. Edit the Asset Publisher configuration, change any settings and save.\r\n6. Export the pages of site A, keeping all options to their default values.\r\nOn server 2 :\r\n7. Create a new blank site\r\n8. Import the lar file exported form server 1 to that site\r\nExpected Result:\r\nNothing in the Asset Publisher's configuration is referencing the \"Structure on site B\", the lar file should import without issues.\r\nActual Results:\r\nthe import fails. The error message states that the lar file is missing the referenced structure \"Structure on site B\" from the portlet Asset Publisher\r\nBranch:\r\ncommit f6b3d31\r\nReproduced\r\nMaster:\r\ncommit 188d32a\r\nReproduced\r\n\r\nNote for QA: When attempting to test the pull request, one of your tests will likely be to import the exported LAR file. LPS-53646 will block you from completely importing the LAR, however you can see we no longer have missing-references when initially adding the file for import (see the attachments for the parent LPP as well as for LPS-53646)."},"comment":{"url":"https://api.github.com/repos/jonathanmccann/liferay-portal/issues/comments/75260483","html_url":"https://github.com/jonathanmccann/liferay-portal/pull/604#issuecomment-75260483","issue_url":"https://api.github.com/repos/jonathanmccann/liferay-portal/issues/604","id":75260483,"user":{"login":"jonathanmccann","id":1919610,"avatar_url":"https://avatars.githubusercontent.com/u/1919610?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanmccann","html_url":"https://github.com/jonathanmccann","followers_url":"https://api.github.com/users/jonathanmccann/followers","following_url":"https://api.github.com/users/jonathanmccann/following{/other_user}","gists_url":"https://api.github.com/users/jonathanmccann/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanmccann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanmccann/subscriptions","organizations_url":"https://api.github.com/users/jonathanmccann/orgs","repos_url":"https://api.github.com/users/jonathanmccann/repos","events_url":"https://api.github.com/users/jonathanmccann/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanmccann/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T15:52:53Z","updated_at":"2015-02-20T15:52:53Z","body":"Hey Chris,\r\n\r\nDoes this include a message for the user to explain why the import/export isn't completing successfully? https://github.com/juliocamarero/liferay-portal/pull/3249#issuecomment-75234035"}}