vladimirpetrov opened a new issue #4535:
URL: https://github.com/apache/cloudstack/issues/4535
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and master branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete
the comments.
-->
##### ISSUE TYPE
* Bug Report
##### COMPONENT NAME
~~~
UI
~~~
##### CLOUDSTACK VERSION
~~~
4.15 RC1
~~~
##### CONFIGURATION
N/A
##### OS / ENVIRONMENT
N/A
##### SUMMARY
The Images > ISOs page ignores the backend flag 'isextractable' and allows
user to download an ISO even when it was uploaded with this setting unchecked.
##### STEPS TO REPRODUCE
~~~
1. Register (or upload) ISO image, leaving the 'Extractable' option
unchecked.

2. Go to Images > ISOs > new ISO, wait for until it's successfully installed
and try to download it:

~~~
##### EXPECTED RESULTS
~~~
The download icon should be missing and this operation must be forbidden.
~~~
##### ACTUAL RESULTS
~~~
The UI ignores this flag, allowing user to download ISO images marked as
non-extractable.
~~~
##### ADDITIONAL INFORMATION
~~~
Here is the request when registering a new ISO image - the isextractable
flag is properly sent:
http://10.10.2.113:8080/client/api/?url=http:%2F%2F10.5.1.128%2Fopenvm%2Fcloudstack%2Fiso%2FTinyCore-8.0.iso&name=Tiny+Core&displaytext=Tiny+Core&zoneid=-1&bootable=true&ostypeid=0b9e0c15-3bad-11eb-9ec8-1e00830138c0&**isextractable=false**&ispublic=false&isfeatured=false&command=registerIso&response=json
And this is the server response when preparing the details page - the same
flag is properly sent from the server:
account: "admin"
bits: 64
bootable: true
checksum:
"18a24183958339cb0508a9e27abd81494514469529bf1a4dd0cbc8a3c4d502a94400e6c58b6d54d5043eb2100946f6e85dd7032bc12642e4ab2e8907ed88dbcb"
created: "2020-12-11T15:23:18+0000"
crossZones: true
directdownload: false
displaytext: "Tiny Core"
domain: "ROOT"
domainid: "0b746f3a-3bad-11eb-9ec8-1e00830138c0"
id: "7c51f019-fbed-485d-a2f4-d2ca9e235e78"
isdynamicallyscalable: false
**isextractable: false**
isfeatured: false
ispublic: false
isready: true
name: "Tiny Core"
ostypeid: "0b9e0c15-3bad-11eb-9ec8-1e00830138c0"
ostypename: "Other Linux (64-bit)"
passwordenabled: false
size: 16777216
status: "Successfully Installed"
tags: []
url: "http://10.5.1.128/openvm/cloudstack/iso/TinyCore-8.0.iso"
zoneid: "b321c664-734a-4c98-9c4d-9a692d99f08e"
zonename: "ref-trl-2078-k-M7-rohit-yadav"
~~~
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]