[java-plugin-shibd] branch main updated: Add test for path length error.

Codeberg noreply at shibboleth.net
Mon Aug 24 13:20:00 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository java-plugin-shibd.

View the commit online:
https://codeberg.org/Shibboleth/java-plugin-shibd/commit/714d5539b2f2a0827e7f5aa924bb2aecab5cd7a4

The following commit(s) were added to refs/heads/main by this push:
     new 714d553  Add test for path length error.
714d553 is described below

commit 714d5539b2f2a0827e7f5aa924bb2aecab5cd7a4
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Mon Aug 24 09:19:50 2026 -0400

    Add test for path length error.
---
 .../sp/storage/impl/FilesystemStorageServiceTest.java         | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sp-server-impl/src/test/java/net/shibboleth/sp/storage/impl/FilesystemStorageServiceTest.java b/sp-server-impl/src/test/java/net/shibboleth/sp/storage/impl/FilesystemStorageServiceTest.java
index ac9bb77..f0df889 100644
--- a/sp-server-impl/src/test/java/net/shibboleth/sp/storage/impl/FilesystemStorageServiceTest.java
+++ b/sp-server-impl/src/test/java/net/shibboleth/sp/storage/impl/FilesystemStorageServiceTest.java
@@ -119,6 +119,17 @@ public class FilesystemStorageServiceTest {
         Assert.assertNull(storage.read("foo/bar", "zork/frobnitz"));
     }
     
+    @Test(expectedExceptions=IOException.class)
+    public void testLengthLimit() throws ComponentInitializationException, IOException {
+        final StorageService storage = getService(false);
+
+        final StringBuilder key = new StringBuilder();
+        for (int i = 0; i < 4096; ++i) {
+            key.append("long");
+        }
+        storage.create("context", key.toString(), "value", null);
+    }
+    
     @Test
     public void testOperationViolations() throws ComponentInitializationException, IOException, VersionMismatchException {
         final StorageService storage = getService(true);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list