From: harshini.r Date: Tue, 5 Apr 2022 07:05:14 +0000 (+0530) Subject: Bug 1937 -Cannot create new descriptors with GUI X-Git-Tag: v12.0.0rc1~9 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F46%2F11846%2F3;p=osm%2FNG-UI.git Bug 1937 -Cannot create new descriptors with GUI *Resolved the "File is not a zip file" error while editing in topology page of NS and VNF packages. Change-Id: I8735d436671a6f68487b7ecbcddb90d1284b47a4 Signed-off-by: harshini.r --- diff --git a/src/app/packages/ns-packages/ns-composer/NSComposerComponent.ts b/src/app/packages/ns-packages/ns-composer/NSComposerComponent.ts index 7ef8394..d771123 100644 --- a/src/app/packages/ns-packages/ns-composer/NSComposerComponent.ts +++ b/src/app/packages/ns-packages/ns-composer/NSComposerComponent.ts @@ -207,13 +207,13 @@ export class NSComposerComponent { this.modalService = this.injector.get(NgbModal); this.sharedService = this.injector.get(SharedService); } - /** Lifecyle Hooks the trigger before component is instantiate @public */ + /** Lifecyle Hooks the trigger before component is instantiated @public */ public ngOnInit(): void { // tslint:disable-next-line:no-backbone-get-set-outside-model this.identifier = this.activatedRoute.snapshot.paramMap.get('id'); this.generateData(); this.headers = new HttpHeaders({ - 'Content-Type': 'application/zip', + 'Content-Type': 'application/gzip', Accept: 'application/json', 'Cache-Control': 'no-cache, no-store, must-revalidate, max-age=0' }); diff --git a/src/app/packages/ns-packages/vnf-composer/VNFComposerComponent.ts b/src/app/packages/ns-packages/vnf-composer/VNFComposerComponent.ts index 7c3c247..55c5070 100644 --- a/src/app/packages/ns-packages/vnf-composer/VNFComposerComponent.ts +++ b/src/app/packages/ns-packages/vnf-composer/VNFComposerComponent.ts @@ -176,7 +176,7 @@ export class VNFComposerComponent { this.identifier = this.activatedRoute.snapshot.paramMap.get('id'); this.generateData(); this.headers = new HttpHeaders({ - 'Content-Type': 'application/zip', + 'Content-Type': 'application/gzip', Accept: 'application/json', 'Cache-Control': 'no-cache, no-store, must-revalidate, max-age=0' });