securitylevel_name: Public Same as MODE-1024 except tests was run on Sun JDK 1.6. See http://hudson.qa.jboss.com/hudson/view/BRMS/job/brms-modeshape-db/DATABASE=postgresql83,jdk=java16_default/9/ The tests are failing with postregresql, mysql and db2. If mssql (2003 or 2008) is used the tests are not failing.
Link: Added: This issue is related to MODE-1024
Release Notes Text: Added: ModeShape applied the fix to the 2.2.x product branch and should be in the next release.
I just ran the tests with modeshape '2.2.x' r2625 and these tests are still failing. DB2 9.7 was used as database.
Need to check the configuration, because the FileSystemConnector cannot be used for sequencing, its only for file check in storage. Also, there is already a DB2 jira for this issue. This issue is specific to the FileSystemConnector, and should be able to be validated without using DB2.
The fix for the FilSystemConnector was committed and should be tested separately from using a database that is currently having issues (i.e., DB2).
I am seeing this again in 5.2.0 ER2 with ModeShape 2.5.1.
What's strange about this is the modeshape-2.5.x-nightly-integration hudson job is run on: dsp07-rhel5-x86_64 and it isn't seeing the max length error. There's also other modeshape related jobs are running (i.e., on suse) and not seeing this issue. And I'm not sure what's different about your environment.
There is a default maxPathLength of 255, to meet the smallest maximum which for windows. To override the default, add the property: mode:maxPathLength="<integer>" to the mode:source defined for the FileSystemSource.
ModeShape committed fix to 2.5.x branch, COMMIT ID: 5284a3be83269587de1c This just missed the ER3 build.
Setting the 'maxPathLength' property works. However the failing unit tests are creating repositories in java code, so the tests would have to be updated. Isn't there a way to set the max length automatically? Let's say 255 if we are running on windows and higher number on systems without this restriction?
Which tests are failing? Can you attach the JUnit text report?
Created attachment 524844 [details] Maven surefire report. If I create path with length 255 or more, place ModeShape sources there and run unit tests, multiple (5) test methods are failing in these classes: org.modeshape.connector.filesystem.FileSystemConnectorWithIgnorePropertiesWritableTest.shouldBeAbleToCreateDeepPath org.modeshape.connector.filesystem.FileSystemConnectorWithLogPropertiesWritableTest.shouldBeAbleToCreateDeepPath org.modeshape.connector.filesystem.FileSystemConnectorWithStorePropertiesWritableTest.shouldBeAbleToCreateDeepPath org.modeshape.connector.filesystem.FileSystemConnectorWithThrowPropertiesWritableTest.shouldBeAbleToCreateDeepPath org.modeshape.connector.filesystem.FileSystemConnectorWritableTest.shouldBeAbleToCreateDeepPath Surefire report attached (actual master branch, but it is happening in 2.5.x too). If I set the max path length to higher number (for example 500) when creating repositories (this means editing the test classes), the errors are gone. However this won't probably work on Windows (not tested yet) since the max path length is limited to 255.