Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix issue where a POST/GET to 'solandra/schemas/...' would be interpreted as a valid url, but would not properly create the core. #139

Merged
merged 1 commit into from

2 participants

@milagre

Any single trailing character to 'schema' would produce the mistaken result of success.

@milagre milagre Fixed issue where a POST to 'solandra/schemas/...' would be interpret…
…ed as a valid core creation, but would not properly create the core.
92e435b
@tjake tjake merged commit 65d4515 into tjake:solandra
@tjake
Owner

thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 14, 2011
  1. @milagre

    Fixed issue where a POST to 'solandra/schemas/...' would be interpret…

    milagre authored
    …ed as a valid core creation, but would not properly create the core.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/solandra/SolandraDispatchFilter.java
View
2  src/solandra/SolandraDispatchFilter.java
@@ -60,7 +60,7 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
// otherwise, we should find a index from the path
int idx = path.indexOf("/", 1);
- if (idx > 1)
+ if (idx == schemaPrefix.length)
{
// try to get the index as a request parameter first
indexName = path.substring(1, idx);
Something went wrong with that request. Please try again.