REST Category Value Counts Bug

Kyle Nakamoto's Avatar

Kyle Nakamoto

17 Dec, 2009 08:38 PM via web

This problem is related to the problem: REST Connections Query results limit.
The solution to the previous problem was to get counts for each category value using the following query.
/spaces/{space name}/dir/{matrix name}/{category}/{value}

However, I have encountered a problem when value contains special characters. The primary example occurs when value contains a forward slash. I have tried putting the term in quotes and translating the slash into hex. Both do not return the proper result.

  1. 2 Posted by Jared Peterson on 09 Jan, 2010 02:12 AM

    Jared Peterson's Avatar

    Kyle,

    I've created a bug for this. It looks like we're not decoding things on the server side properly. Ideally the following would work:

    /spaces/{space}/dir/default/person/john%2Fdoe

    Were the %2F is the "/", but it looks like the server is not handling this as expected. We'll take a look at it.

    Jared

  2. Jared Peterson closed this discussion on 09 Jan, 2010 02:12 AM.

  3. 3 Posted by Jared Peterson on 27 May, 2010 06:54 PM

    Jared Peterson's Avatar

    Kyle,

    Quick follow-up on this one. This should be fixed when we do a new build for you guys. However, I think you can actually fix this on your current installs by adding the following JVM param to your "tomcatvmargs" in your smbrc file:

    -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true

    Hope this works for you.

    Thanks,
    Jared

Comments are currently closed for this discussion. You can start a new one.