[
https://issues.apache.org/jira/browse/VCL-864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14701728#comment-14701728
]
ASF subversion and git services commented on VCL-864:
-----------------------------------------------------
Commit 1696477 from [~jfthomps] in branch 'vcl/trunk'
[ https://svn.apache.org/r1696477 ]
VCL-864 - selecting the first image id from the user's set of images can give
an error when the user has no access to images
computer.php:
-modified AJsubmitDeleteComputers: use noimage as the image for the semaphore
and call new function getAnyManagementNodeID to get management node id for
semaphore
-modified AJsubmitCompStateChange: use noimage as the image for the semaphores
and call new function getAnyManagementNodeID to get management node id for
semaphores; removed other places that were getting the id of the noimage
image/revision
requests.php: modified AJeditRequest: use id for noimage for $semimageid rather
than just the first image a user has access to
utils.php:
-modified moveReservationsOffVMs: use id for noimage for $sem['imageid'] rather
than just the first image a user has access to; use new function
getAnyManagementNodeID to get id of management node instead of just using the
first on the user has access to
-added getAnyManagementNodeID
> selecting the first image id from the user's set of images can give an error
> when the user has no access to images
> ------------------------------------------------------------------------------------------------------------------
>
> Key: VCL-864
> URL: https://issues.apache.org/jira/browse/VCL-864
> Project: VCL
> Issue Type: Bug
> Components: web gui (frontend)
> Reporter: Josh Thompson
> Fix For: 2.5
>
>
> There are a few places where the first image id from a user's set of images
> is selected when an image id is needed. However, if the user does not have
> access to any images, this will fail. If possible, using the "noimage" image
> should be used instead. One place this is done is in AJsubmitCompStateChange.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)