Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed problem creating key indices on a readonly graph.

  • Loading branch information...
commit cdd5bfee82b9128cec26da1b6aab6931da43665d 1 parent 44751a0
@spmallette spmallette authored
View
2  rexster-server/src/main/java/com/tinkerpop/rexster/IndexResource.java
@@ -576,7 +576,7 @@ private static JSONObject createJSONObject(final Index index) {
private Index getIndexFromGraph(final String graphName, final String name) {
- final Graph graph = this.getRexsterApplicationGraph(graphName).getGraph();
+ final Graph graph = this.getRexsterApplicationGraph(graphName).getUnwrappedGraph();
final IndexableGraph idxGraph = graph instanceof IndexableGraph ? (IndexableGraph) graph : null;
if (idxGraph == null) {
View
2  rexster-server/src/main/java/com/tinkerpop/rexster/KeyIndexResource.java
@@ -212,7 +212,7 @@ public Response postIndexKey(@PathParam("graphname") final String graphName, @Pa
private KeyIndexableGraph getKeyIndexableGraph(final String graphName) {
- final Graph graph = this.getRexsterApplicationGraph(graphName).getGraph();
+ final Graph graph = this.getRexsterApplicationGraph(graphName).getUnwrappedGraph();
final KeyIndexableGraph idxGraph = graph instanceof KeyIndexableGraph ? (KeyIndexableGraph) graph : null;
if (idxGraph == null) {
Please sign in to comment.
Something went wrong with that request. Please try again.