ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sid Wagle" <swa...@hortonworks.com>
Subject Re: Review Request 21466: Blueprint delete throws exception
Date Wed, 14 May 2014 22:54:34 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/21466/
-----------------------------------------------------------

(Updated May 14, 2014, 10:54 p.m.)


Review request for Ambari, John Speidel, Mahadev Konar, and Tom Beerbower.


Changes
-------

Unit tests passed.


Bugs: AMBARI-5767
    https://issues.apache.org/jira/browse/AMBARI-5767


Repository: ambari


Description
-------

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)


Diffs (updated)
-----

  ambari-server/src/main/java/org/apache/ambari/server/controller/internal/BlueprintResourceProvider.java
003590f 
  ambari-server/src/main/java/org/apache/ambari/server/orm/dao/BlueprintDAO.java 0cbaedc 
  ambari-server/src/test/java/org/apache/ambari/server/controller/internal/BlueprintResourceProviderTest.java
b611551 
  ambari-server/src/test/java/org/apache/ambari/server/orm/dao/BlueprintDAOTest.java c157729


Diff: https://reviews.apache.org/r/21466/diff/


Testing
-------


Thanks,

Sid Wagle


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message