Unable to upload commissioning/test script

Bug #1882313 reported by Lee Trager
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Kit Randel
maas-ui
Fix Released
Unknown

Bug Description

A user on discourse[1] has reported that they are unable to upload a test script using the MAAS UI on Linux via drag and drop or using the file upload. They claim they can using Windows. I confirmed I'm also unable to upload a commissioning or test script using the UI on Linux however I don't have access to Windows.

OS: Ubuntu 20.04
Browser: Firefox 77.0.1+build1-0ubuntu0.20.04.1

[1] https://discourse.maas.io/t/testing-scripts-upload-error/1653

Tags: ui
Revision history for this message
Lee Trager (ltrager) wrote :

I know that the upload page was updated awhile ago. I forgot if the update was for 2.8 or this will need to be backported.

Changed in maas:
status: New → Triaged
importance: Undecided → High
Changed in maas-ui:
status: Unknown → New
Kit Randel (blr)
Changed in maas:
assignee: nobody → Kit Randel (blr)
Kit Randel (blr)
Changed in maas:
status: Triaged → Fix Committed
Changed in maas-ui:
status: New → Fix Released
Alberto Donato (ack)
Changed in maas:
status: Fix Committed → Fix Released
Revision history for this message
teluka (mateusz-p) wrote :

Hi

This issue is present in 2.7.3 (8291-g.384e521e6-0ubuntu1~18.04.2)

Are you planning to backport it from the 2.8?

Thanks

Revision history for this message
Igor Gnip (igorgnip) wrote :

This is not urgent but if it is easy to backport, would be good just to have it fixed.

I can confirm the issue is also on windows from both firefox and chrome (latest) browsers.

Revision history for this message
Igor Gnip (igorgnip) wrote :

Something might have changed in firefox (update?) and now files with .sh and .py extension refuse to get uploaded as a testing script.
For all the souls with same issue, just rename the script to .txt and upload it.

To Canonical: Please consider removing frontend validation of content-type and filename since "name" attribude in metadata overrides and is the relevant factor and you are going to execute the script anyway.

Oh and ... is this ever going to get fixed on maas 2.7.3 please ?

Revision history for this message
Huw Wilkins (huwshimi) wrote :

Hi Igor, the mime-type validation has been removed and will be included in the next 2.7.x release (not sure when that will be).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.