[ 
https://issues.apache.org/jira/browse/DTACLOUD-451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569259#comment-13569259
 ] 

Dies Koper commented on DTACLOUD-451:
-------------------------------------

Why should it not be there?

The Create Image button takes you to another page (the "new" image page) where 
you specify the image name and description, and that page has another Create 
button that actually creates the image. For that latter page, I assume that 
would be a POST to /api/instances.

Two things I was wondering about:
1. Why does this page use POST and not GET? We're just retrieving a page, an 
idempotent operation?
2. Should this button name have an ellipsis ("Create Image...") to indicate it 
will take you to another page, rather than starting the operation directly?
                
> Openstack instances action "create-image" url is incorrect for html 
> --------------------------------------------------------------------
>
>                 Key: DTACLOUD-451
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-451
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>            Reporter: Joseph J. VLcek
>            Assignee: Joseph J. VLcek
>            Priority: Minor
>
> The html returned for an instance contains the incorrect create_image action 
> url.
> % curl -X GET   --user "${CREDS}"   
> "http://localhost:3001/api/instances/${INSTANCE_ID}";
> <!DOCTYPE html>
> <html>
>   <head>
>     <title>Deltacloud API 1.1.0</title>
> ...
>               <form 
> action='http://localhost:3001/api/images/new?instance_id=INST-ID' class='link 
> get' data-ajax='false' method='post'>
>                 <input name='_method' type='hidden' value='get' />
>                 <button data-ajax='false' data-inline='true' type='submit'>
>                   Create Image
>                 </button>
> I do not believe "/new" sub-string should be there.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to