[
https://issues.apache.org/jira/browse/AMBARI-5767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Siddharth Wagle resolved AMBARI-5767.
-------------------------------------
Resolution: Fixed
Committed to branch and trunk.
> Blueprint delete throws exception
> ---------------------------------
>
> Key: AMBARI-5767
> URL: https://issues.apache.org/jira/browse/AMBARI-5767
> Project: Ambari
> Issue Type: Bug
> Components: controller
> Affects Versions: 1.6.0
> Reporter: Siddharth Wagle
> Assignee: Siddharth Wagle
> Priority: Critical
> Fix For: 1.6.0
>
>
> DELETE
> ambariHost:8080/api/v1/blueprints/myBlueprint
> results in 500 error:
> 18:08:10,817 WARN [qtp1102737706-22] ServletHandler:514 -
> /api/v1/blueprints/newhadoopcluster
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> at java.lang.String.substring(String.java:1911)
> at
> org.apache.ambari.server.controller.internal.BlueprintResourceProvider.createConfigEntities(BlueprintResourceProvider.java:395)
> at
> org.apache.ambari.server.controller.internal.BlueprintResourceProvider.toEntity(BlueprintResourceProvider.java:311)
> at
> org.apache.ambari.server.controller.internal.BlueprintResourceProvider$1.invoke(BlueprintResourceProvider.java:206)
> at
> org.apache.ambari.server.controller.internal.BlueprintResourceProvider$1.invoke(BlueprintResourceProvider.java:203)
--
This message was sent by Atlassian JIRA
(v6.2#6252)