{"action":"created","issue":{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/2545","repository_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi","labels_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/2545/labels{/name}","comments_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/2545/comments","events_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/2545/events","html_url":"https://github.com/fusioninventory/fusioninventory-for-glpi/issues/2545","id":321524781,"node_id":"MDU6SXNzdWUzMjE1MjQ3ODE=","number":2545,"title":"[9.2+2.0] Export package operation doesn't include the repository files","user":{"login":"tabad","id":2183103,"node_id":"MDQ6VXNlcjIxODMxMDM=","avatar_url":"https://avatars3.githubusercontent.com/u/2183103?v=4","gravatar_id":"","url":"https://api.github.com/users/tabad","html_url":"https://github.com/tabad","followers_url":"https://api.github.com/users/tabad/followers","following_url":"https://api.github.com/users/tabad/following{/other_user}","gists_url":"https://api.github.com/users/tabad/gists{/gist_id}","starred_url":"https://api.github.com/users/tabad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tabad/subscriptions","organizations_url":"https://api.github.com/users/tabad/orgs","repos_url":"https://api.github.com/users/tabad/repos","events_url":"https://api.github.com/users/tabad/events{/privacy}","received_events_url":"https://api.github.com/users/tabad/received_events","type":"User","site_admin":false},"labels":[{"id":214272009,"node_id":"MDU6TGFiZWwyMTQyNzIwMDk=","url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/bug","name":"bug","color":"e11d21","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/milestones/66","html_url":"https://github.com/fusioninventory/fusioninventory-for-glpi/milestone/66","labels_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/milestones/66/labels","id":3323701,"node_id":"MDk6TWlsZXN0b25lMzMyMzcwMQ==","number":66,"title":"9.2+2.1","description":"","creator":{"login":"ddurieux","id":239744,"node_id":"MDQ6VXNlcjIzOTc0NA==","avatar_url":"https://avatars0.githubusercontent.com/u/239744?v=4","gravatar_id":"","url":"https://api.github.com/users/ddurieux","html_url":"https://github.com/ddurieux","followers_url":"https://api.github.com/users/ddurieux/followers","following_url":"https://api.github.com/users/ddurieux/following{/other_user}","gists_url":"https://api.github.com/users/ddurieux/gists{/gist_id}","starred_url":"https://api.github.com/users/ddurieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddurieux/subscriptions","organizations_url":"https://api.github.com/users/ddurieux/orgs","repos_url":"https://api.github.com/users/ddurieux/repos","events_url":"https://api.github.com/users/ddurieux/events{/privacy}","received_events_url":"https://api.github.com/users/ddurieux/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":7,"state":"open","created_at":"2018-05-06T20:14:43Z","updated_at":"2018-06-26T11:21:34Z","due_on":"2018-05-31T07:00:00Z","closed_at":null},"comments":0,"created_at":"2018-05-09T10:58:50Z","updated_at":"2018-10-10T22:03:21Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"# The environment\r\n\r\n* Red Hat Enterprise Linux Server release 7.3 (Maipo)\r\n    * GLPI v9.2.3\r\n        * FusionInventory for GLPI v9.2+2.0\r\n        * ...and other plugins\r\n\r\nThis is the [information about system installation and configuration](https://github.com/fusioninventory/fusioninventory-for-glpi/files/1987474/glpi-system-information.txt).\r\n\r\n> **Note**: It's very probably this bug exists in previous FI4G versions.\r\n\r\n# The issue\r\n\r\nThis is a simple test. In a GlPI v9.2.3 with FI4G v9.2+2.0 without any package deploy defined.\r\n\r\n```bash\r\n[root@ilab glpi]# tree files/_plugins/fusioninventory/files/\r\nfiles/_plugins/fusioninventory/files/\r\n├── export\r\n├── import\r\n├── manifests\r\n└── repository\r\n```\r\n\r\nI have created a dummy file named `dummy-package-2m.bin` as follows\r\n\r\n```bash\r\n$ dd if=/dev/urandom of=/tmp/dummy-package-2m.bin count=2 bs=1M\r\n\r\n$ sha512sum /tmp/dummy-package-2m.bin\r\nf568858812...0b5b7642a8  /tmp/dummy-package-2m.bin\r\n```\r\n\r\nAfterwards I have created a package deploy named *Dummy Package* and have added `dummy-package-2m.bin` inside it.\r\n\r\n```bash\r\n[root@ilab glpi]# tree files/_plugins/fusioninventory/files/\r\nfiles/_plugins/fusioninventory/files/\r\n├── export\r\n├── import\r\n├── manifests\r\n│   └── f568858812...0b5b7642a8\r\n└── repository\r\n    ├── 5\r\n    │   └── 5e\r\n    │       └── 5ecce6b00f...82e9be53c2\r\n    ├── 7\r\n    │   └── 7e\r\n    │       └── 7e8e93f4a8...9c740c536f\r\n    └── d\r\n        └── dc\r\n            └── dcd7e55dea...8f945eb2bc\r\n```\r\n\r\n```bash\r\n[root@ilab glpi]# cat files/_plugins/fusioninventory/files/manifests/f568858812...0b5b7642a8\r\ndcd7e55dea...8f945eb2bc\r\n5ecce6b00f...82e9be53c2\r\n7e8e93f4a8...9c740c536f\r\n```\r\n\r\nOnce I have disposed of *Dummy Package*, I have exported it,\r\n\r\n```bash\r\n[root@ilab glpi]# tree files/_plugins/fusioninventory/files/\r\nfiles/_plugins/fusioninventory/files/\r\n├── export\r\n│   └── 3ca444c9-b2eb5cbb-5af2ce291c1915.95004847.DummyPackage.zip\r\n├── import\r\n├── manifests\r\n│   └── f568858812...0b5b7642a8\r\n└── repository\r\n    ├── 5\r\n    │   └── 5e\r\n    │       └── 5ecce6b00f...82e9be53c2\r\n    ├── 7\r\n    │   └── 7e\r\n    │       └── 7e8e93f4a8...9c740c536f\r\n    └── d\r\n        └── dc\r\n            └── dcd7e55dea...8f945eb2bc\r\n```\r\n\r\nbut, as you can see, `3ca444c9-b2eb5cbb-5af2ce291c1915.95004847.DummyPackage.zip` doesn't contain any file into `file/repository`.\r\n\r\n\r\n```bash\r\nunzip -l files/_plugins/fusioninventory/files/export/3ca444c9-b2eb5cbb-5af2ce291c1915.95004847.DummyPackage.zip\r\nArchive:  files/_plugins/fusioninventory/files/export/3ca444c9-b2eb5cbb-5af2ce291c1915.95004847.DummyPackage.zip\r\n Length      Date    Time    Name\r\n---------  ---------- -----   ----\r\n       0  05-09-2018 12:32   files/\r\n       0  05-09-2018 12:32   files/manifests/\r\n       0  05-09-2018 12:32   files/repository/\r\n     387  05-08-2018 12:59   files/manifests/f568858812...0b5b7642a8\r\n    2130  05-09-2018 12:32   information.json\r\n---------                     -------\r\n    2517                     5 files\r\n```\r\n\r\nThere are the file include into the package definition (compressed) and the exported package file .\r\n\r\n  * [dummy-package-2m.bin.zip](https://github.com/fusioninventory/fusioninventory-for-glpi/files/1987488/dummy-package-2m.bin.zip)\r\n  * [3ca444c9-b2eb5cbb-5af2ce291c1915.95004847.DummyPackage.zip](https://github.com/fusioninventory/fusioninventory-for-glpi/files/1987491/3ca444c9-b2eb5cbb-5af2ce291c1915.95004847.DummyPackage.zip) \r\n\r\nBest regards,\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/comments/428749328","html_url":"https://github.com/fusioninventory/fusioninventory-for-glpi/issues/2545#issuecomment-428749328","issue_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/2545","id":428749328,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODc0OTMyOA==","user":{"login":"tabad","id":2183103,"node_id":"MDQ6VXNlcjIxODMxMDM=","avatar_url":"https://avatars3.githubusercontent.com/u/2183103?v=4","gravatar_id":"","url":"https://api.github.com/users/tabad","html_url":"https://github.com/tabad","followers_url":"https://api.github.com/users/tabad/followers","following_url":"https://api.github.com/users/tabad/following{/other_user}","gists_url":"https://api.github.com/users/tabad/gists{/gist_id}","starred_url":"https://api.github.com/users/tabad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tabad/subscriptions","organizations_url":"https://api.github.com/users/tabad/orgs","repos_url":"https://api.github.com/users/tabad/repos","events_url":"https://api.github.com/users/tabad/events{/privacy}","received_events_url":"https://api.github.com/users/tabad/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T22:03:21Z","updated_at":"2018-10-10T22:03:21Z","author_association":"CONTRIBUTOR","body":"Hello,\r\n\r\nIs there or have you any news about this issue?\r\n\r\nThanks in advance,"}}
{"actor":{"display_login":"tabad"}}