sonata-nfv / tng-sdk-project

The 5GTANGO SDK tool to manage network service projects.
http://www.5gtango.eu
Apache License 2.0
5 stars 4 forks source link

Static file serving doesn't work when installing with pip #104

Closed stefanbschneider closed 5 years ago

stefanbschneider commented 5 years ago

The endpoint for getting/downloading files from a generated project doesn't work as it should: https://github.com/sonata-nfv/tng-sdk-project/blob/master/src/tngsdk/rest.py#L295

When running locally in my dev environment, it works completely fine. Also in the normal docker container (I think).

It breaks when installing tng-sdk-project directly with pip install git+https://github.com/sonata-nfv/tng-sdk-project.git. Then directory_name is not set correctly and serving doesn't work; always says "file not found".

This is required for the SDK portal to download the created package.

Trying to fix in https://github.com/sonata-nfv/tng-sdk-project/pull/103