Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-2328

Index predicate values used in get_indexed_slice() are not validated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7.5
    • None
    • None
    • Low

    Description

      If a client makes a get_indexed_slice() request with malformed predicate values we get an assertion failing rather than InvalidRequestException.

      ERROR 14:47:56,842 Error in ThreadPoolExecutor
      java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: 6
              at org.apache.cassandra.service.IndexScanVerbHandler.doVerb(IndexScanVer
      bHandler.java:51)
              at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.
      java:72)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
      utor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
      .java:908)
              at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.IndexOutOfBoundsException: 6
              at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:121)
              at org.apache.cassandra.db.marshal.TimeUUIDType.compareTimestampBytes(Ti
      meUUIDType.java:56)
              at org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.jav
      a:45)
              at org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.jav
      a:29)
              at org.apache.cassandra.db.ColumnFamilyStore.satisfies(ColumnFamilyStore
      .java:1608)
              at org.apache.cassandra.db.ColumnFamilyStore.scan(ColumnFamilyStore.java
      :1552)
              at org.apache.cassandra.service.IndexScanVerbHandler.doVerb(IndexScanVer
      bHandler.java:42)
              ... 4 more
      

      Attachments

        Activity

          People

            amorton Aaron Morton
            amorton Aaron Morton
            Aaron Morton
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: