You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DateUtils.getFormatter() uses the JVM default locale for a cached storage formatter, and FileUtils.copyFile ignores transferTo so a >2GB file is silently truncated #7112
The no-arg toFormatter() is specified to use Locale.getDefault(Locale.Category.FORMAT). So a schema date/time pattern containing a textual field renders and parses differently depending on the server's locale.
Impact: with -Duser.language=it -Duser.country=IT, a pattern with MMM or EEE produces Italian month and day names. Two nodes of the same cluster with different locales then write and read different textual forms for the same schema pattern, and a value written by one fails to parse on the other. The formatter is also cached statically, so the first caller's locale fixes it for the process.
Fix: end the chain with .toFormatter(Locale.ENGLISH), matching the fixed locale a storage format needs. A numeric-only pattern is unaffected either way, so this cannot regress the common case.
2. FileUtils.copyFile ignores transferTo's return value, so a file over ~2GB is silently truncated
FileChannel.transferTo is documented to transfer at most the requested count, and on most platforms caps a single call at ~2GB. The return value says how much moved; here it is discarded, so a larger file yields a short destination with no exception.
Reached from copyDirectory (:252), so a directory copy containing one large file silently loses its tail.
The test that would catch this exists but is disabled - engine/src/test/java/com/arcadedb/utility/FileUtilsTest.java:259:
in a method named copyFile(). Worth uncommenting as part of the fix, since a passing test named for the method is exactly what makes a defect like this invisible.
Fix:Files.copy(source.toPath(), destination.toPath(), REPLACE_EXISTING), or loop on transferTo until size() bytes have moved and fail if progress stalls.
Scope / confidence
High on both mechanisms, quoted above. Severity is bounded: part 1 needs a textual date pattern in the schema and a non-English server locale; part 2 needs a file over ~2GB through this specific helper. Neither is exotic in a database, but neither is the default path either.
Schema date and datetime patterns now render and parse with a fixed English locale, so a pattern with month or day names (MMM, EEE) produces the same value on every server regardless of the JVM locale. A copy through FileUtils.copyFile is complete for any file size. The remaining places that build a formatter from a schema pattern with the JVM locale are tracked in #7144.
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
Activity
Merge pull request #7117 from ArcadeData/fix/issues-7109-7110-7111-7112
lvca commentedon Sep 3, 2026
Fixed in #7117 (milestone 26.9.1).
Schema date and datetime patterns now render and parse with a fixed English locale, so a pattern with month or day names (
MMM,EEE) produces the same value on every server regardless of the JVM locale. A copy throughFileUtils.copyFileis complete for any file size. The remaining places that build a formatter from a schema pattern with the JVM locale are tracked in #7144.❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
fix(ArcadeData#7109,ArcadeData#7110,ArcadeData#7111,ArcadeData#7112):…
fix(ArcadeData#7144,ArcadeData#7140,ArcadeData#7121): locale-pinned s…