weizhouapache opened a new issue #4514:
URL: https://github.com/apache/cloudstack/issues/4514


   #3244 introduced a global setting to make some details read-only on UI.
   however, these details can still be changed by cloudmonkey.
   
   it would be better to improve it.
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   VM
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master 
branch.
   -->
   
   ~~~
   4.14/4.15
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   login as domain admin or regular user
   create a dynamic offering
   deploy a vm  with the offering, and stop it
   cpuNumber, cpuSpeed and memory are visible and editable in vm Settings page
   change global setting user.vm.readonly.ui.details to "dataDiskController, 
rootDiskController,cpuSpeed,memory,cpuNumber"
   cpuNumber, cpuSpeed and memory are visible but not editable in vm Settings 
page
   
   use cmk to update vm with details[0].cpuNumber=X
   
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   Fail with error similar as
   ```
   You're not allowed to add or edit the restricted setting: cpuNumber
   ```
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   cmk command is successful. vm cpunumber is changed
   ~~~
   


----------------------------------------------------------------
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]


Reply via email to