You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by ad...@apache.org on 2023/02/02 10:57:13 UTC

[jackrabbit-oak] branch issues/OAK-10101 created (now 3db0be054b)

This is an automated email from the ASF dual-hosted git repository.

adulceanu pushed a change to branch issues/OAK-10101
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


      at 3db0be054b OAK-10101 - Improve exception message when retrieving String properties

This branch includes the following new commits:

     new 3db0be054b OAK-10101 - Improve exception message when retrieving String properties

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[jackrabbit-oak] 01/01: OAK-10101 - Improve exception message when retrieving String properties

Posted by ad...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

adulceanu pushed a commit to branch issues/OAK-10101
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit 3db0be054b483110f60419022ee1710f1c27c2c4
Author: dulceanu <an...@gmail.com>
AuthorDate: Thu Feb 2 11:56:35 2023 +0100

    OAK-10101 - Improve exception message when retrieving String properties
---
 .../java/org/apache/jackrabbit/oak/segment/data/SegmentDataV12.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/data/SegmentDataV12.java b/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/data/SegmentDataV12.java
index ebf2e6bb26..a6e5e34f8b 100644
--- a/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/data/SegmentDataV12.java
+++ b/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/data/SegmentDataV12.java
@@ -189,7 +189,8 @@ class SegmentDataV12 implements SegmentData {
             return new StringData(internalReadRecordId(index + Long.BYTES), (int) length);
         }
 
-        throw new IllegalStateException("String is too long: " + length);
+        throw new IllegalStateException("String is too long: " + length + "; possibly trying to read a "
+                + "BLOB using getString; can not convert BLOB to String");
     }
 
     private StringData internalReadString(int index, int length) {