-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 6.3.2
-
Component/s: Deployments
-
None
-
Severity 3 - Minor
Issue Summary
Once DEPLOYMENT_PROJECT.deployment_project_id (primary key) surpasses 32bit int, cannot create a release from createDeploymentVersion.action.
Steps to Reproduce
- When deployment_project_id reaches 2,147,483,648 (max int + 1), perform a release
- Attempt to create a release from Deployment Environment >> ... >> Create Release or Build Result >> Create Release
Expected Results
Can use the Create Release UI without an error.
Actual Results
The UI will show Can not create release, no deployment project with id 0 could be found or the user will get Access Denied
The below exceptions are thrown in the atlassian-bamboo.log file:
2020-02-12 06:08:32,914 ERROR [http-nio-8085-exec-19] [runtime] Error executing FreeMarker template
FreeMarker template error:
The following has evaluated to null or missing:
==> linkedPlan [in template "page/deployment/version/createDeploymentVersion.ftl" at line 34, column 29]
----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${soy.render("bamboo.web.resources:ba... [in template "page/deployment/version/createDeploymentVersion.ftl" at line 33, column 17]
- Reached through: @ww.form id="createDeploymentVersion"... [in template "page/deployment/version/createDeploymentVersion.ftl" at line 20, column 1]
2020-02-12 06:08:32,924 ERROR [http-nio-8085-exec-19] [runtime] Error executing FreeMarker template
FreeMarker template error:
No compatible overloaded variation was found; declared parameter types and argument value types mismatch.
The FTL type of the argument values were: string (wrapper: f.t.SimpleScalar), Null.
The Java type of the argument values were: String, Null.
The matching overload was searched among these members:
com.atlassian.bamboo.ww2.BambooActionSupport.hasPlanPermission(String, com.atlassian.bamboo.plan.PlanIdentifier),
com.atlassian.bamboo.ww2.BambooActionSupport.hasPlanPermission(String, String)
----
Tip: You seem to use BeansWrapper with incompatibleImprovements set below 2.3.21. If you think this error is unfounded, enabling 2.3.21 fixes may helps. See version history for more.
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #if action.hasPlanPermission("READ", ... [in template "page/deployment/version/createDeploymentVersion.ftl" at line 38, column 5]
- Reached through: @ww.form id="createDeploymentVersion"... [in template "page/deployment/version/createDeploymentVersion.ftl" at line 20, column 1]
----
Java stack trace (for programmers):
In case of Access Denied:
2020-08-07 18:00:00,001 INFO [http-nio-8085-exec-1] [AccessLogFilter] username GET http://localhost:8085/deploy/createDeploymentVersion.action?deploymentProjectId=2148663301&planKey=PROJ-PLAN&buildNumber=9&returnUrl=/browse/PROJ-PLAN-9 10816080kb
2020-08-07 18:00:00,001 INFO [http-nio-8085-exec-1] [WebworkAclVoter] Voter(WW_READ, [READ]) voting to deny access to user 'username' - domainObject on com.atlassian.bamboo.deployments.versions.actions.CreateDeploymentVersion@75fe4bc8 is null
2020-08-07 18:00:00,001 WARN [http-nio-8085-exec-1] [AuthorizationLoggerListener] Authorization failed: org.acegisecurity.AccessDeniedException: Access is denied; authenticated principal: org.acegisecurity.adapters.PrincipalAcegiUserToken@630e1b20: Username: EmbeddedCrowdUser{name='username', displayName='Full Name', directoryId=#######}; Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_USER; secure object: com.atlassian.bamboo.deployments.versions.actions.CreateDeploymentVersion@75fe4bc8; configuration attributes: [WW_READ, GLOBAL_READ]
Workaround
Create a release from the selectVersionForExecute.action which can be reached via Deployment Dashboard or after clicking an Environment >> Deploy Icon (It looks like a Cloud with an arrow)
- is related to
-
BAM-20824 Source code checkout task cannot be added or edited on deployment plans, once VCS_LOCATION primary key surpasses 32bit int
-
- Closed
-
- relates to
-
BAM-20820 Deployment logs are named with a negative value and cannot be directly accessed via the UI, once DEPLOYMENT_RESULT primary key surpasses 32bit int
-
- Closed
-