Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output file: extension #4

Open
vincent-lefort opened this issue Oct 31, 2018 · 5 comments
Open

output file: extension #4

vincent-lefort opened this issue Oct 31, 2018 · 5 comments
Assignees
Labels

Comments

@vincent-lefort
Copy link
Collaborator

When configuring a service with an output file, the 'extension' field behaviour is weird. If defined with 'name' and 'extension' fields, a remote output file is correctly retreived by WAVES, but is nammed on the local file system without the extension. Thus, we recommend not to use the 'extension' field.

@marcoooo marcoooo added the bug label Nov 21, 2018
@marcoooo
Copy link
Contributor

marcoooo commented Nov 21, 2018

I'll have a look, this is probabely related to this part of the code:

class JobOutputManager(models.Manager):

class JobOutput(Ordered, Slugged, UrlMixin, ApiModel):

more specifically there

def file_name(self):

Expected output are created here:

def create_default_outputs(self):

('file_name', output.file_pattern),

@marcoooo marcoooo self-assigned this Nov 28, 2018
@Sylmila
Copy link
Collaborator

Sylmila commented Dec 5, 2018

in the same way, if output "File name" is inserted without extension : "output" instead of "output.txt". The jobs details page (/waves/jobs/xxxxx) always give an output file 'Not available for now' because WAVES search for a file "output." instead of just "output"

@marcoooo
Copy link
Contributor

I finally figured it out. Extension is not used to compute expected output file full name. Only output value is used. In fact this was made on purpose because extension is only supposed to help adding correct headers when downloading submission output.

@marcoooo
Copy link
Contributor

in the same way, if output "File name" is inserted without extension : "output" instead of "output.txt". The jobs details page (/waves/jobs/xxxxx) always give an output file 'Not available for now' because WAVES search for a file "output." instead of just "output"

Should be fixed: https://github.com/lirmm/waves-core/tree/bugfix/files_inputs.
Before submitting PR, I'll correct other tickets: #11 and #1

@marcoooo
Copy link
Contributor

marcoooo commented Jan 8, 2020

@vincent-lefort can you confirm this has been fixed in v1.6.7?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants