Error in SonarLint for IntelliJ - Throwable: Attribute FileAttribute

Environment:

  • Java: JetBrains s.r.o. 17.0.9
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2023.3.3
  • SonarLint: 10.4.1.77969
java.lang.Throwable: Attribute FileAttribute[FsRecords.DIRECTORY_CHILDREN]{version: -1, fixedSize: false, shouldEnumerate: false} value is too large: 1180882 b > max(819200) -> please, do not use VFS file attributes for huge blobs of data. Consider using GistManager or GistStorage.
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.oa.vfs.newvfs.persistent.AbstractAttributesStorage.checkAttributeValueSize(AbstractAttributesStorage.java:93)
	at c.ij.oa.vfs.newvfs.persistent.AttributesStorageOverBlobStorage$AttributeOutputStreamImpl.close(AttributesStorageOverBlobStorage.java:779)
	at java.base/java.io.FilterOutputStream.close(FilterOutputStream.java:188)
	at c.ij.oa.vfs.newvfs.persistent.PersistentFSTreeAccessor.doSaveChildren(PersistentFSTreeAccessor.java:95)
	at c.ij.oa.vfs.newvfs.persistent.FSRecordsImpl.update(FSRecordsImpl.java:742)
	at c.ij.oa.vfs.newvfs.persistent.PersistentFSImpl.persistAllChildren(PersistentFSImpl.java:353)
	at c.ij.oa.vfs.newvfs.persistent.PersistentFSImpl.listAll(PersistentFSImpl.java:416)
	at c.ij.oa.vfs.newvfs.impl.VirtualDirectoryImpl.loadAllChildren(VirtualDirectoryImpl.java:411)
	at c.ij.oa.vfs.newvfs.impl.VirtualDirectoryImpl.getChildren(VirtualDirectoryImpl.java:404)
	at c.ij.oa.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:313)
	at c.ij.oa.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:334)
	at c.ij.oa.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:334)

Hello @TasMot, thank you for your report. As a result, I created this bug ticket.

The fix should be included in a hotfix release today or tomorrow.

1 Like