You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/12/09 22:40:07 UTC
[jira] [Commented] (JCLOUDS-362) google compute sometimes wrongly
infers project-id from identity
[ https://issues.apache.org/jira/browse/JCLOUDS-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13843578#comment-13843578 ]
ASF subversion and git services commented on JCLOUDS-362:
---------------------------------------------------------
Commit e0839de2eb072a9c89f0284214df422f202fafd5 in branch refs/heads/1.6.x from [~alex.heneveld]
[ https://git-wip-us.apache.org/repos/asf?p=jclouds-labs.git;h=e0839de ]
backport of JCLOUDS-362 fix (jclouds-labs-google cec667a8aed54ebd0c976758181ca7e9899008cf)
> google compute sometimes wrongly infers project-id from identity
> ----------------------------------------------------------------
>
> Key: JCLOUDS-362
> URL: https://issues.apache.org/jira/browse/JCLOUDS-362
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-labs-google
> Affects Versions: 1.6.2
> Environment: any
> Reporter: Alex Heneveld
> Fix For: 1.7.0, 1.6.4
>
> Attachments: JCLOUDS-362-1.6.x.patch, JCLOUDS-362.patch
>
>
> the GoogleComputeEngineHttpApiModule assumes the project ID is the portion before the @ in the identity. increasingly the identify is of the form project_id-extended_uid@..., so the API attempts to look up e.g.:
> https://www.googleapis.com/compute/v1beta15/projects/590421487899-sd961cg1an7gc20cpu4fb3hi2l0iu1qv
> instead of
> https://www.googleapis.com/compute/v1beta15/projects/590421487899
> and gets a 400 Bad Request; content:
> [{
> "error": {
> "errors": [
> {
> "domain": "global",
> "reason": "invalidParameter",
> "message": "Invalid value '590421487899-sd961cg1an7gc20cpu4fb3hi2l0iu1qv'. Values must match the following regular expression: '(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))'",
> "locationType": "parameter",
> "location": "project"
> }
> }]
> this is an easy fix in GoogleComputeEngineHttpApiModule to also split on "-" which i will submit shortly
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)