Buggy code:
private void isiDeleteSnapshots ( IsilonApi isi , FileDeviceInputOutput args ) throws IsilonException { } private void isiDeleteSnapshot ( IsilonApi isi , FileDeviceInputOutput args ) throws IsilonException { } private void isiDeleteQuotaDirs ( IsilonApi isi , FileDeviceInputOutput args ) throws IsilonException { } private void isiShare ( IsilonApi isi , FileDeviceInputOutput args , SMBFileShare smbFileShare ) throws IsilonException { } private void isiDeleteShare ( IsilonApi isi , FileDeviceInputOutput args , SMBFileShare smbFileShare ) throws IsilonException { } private void isiDeleteShares ( IsilonApi isi , FileDeviceInputOutput args ) throws IsilonException { } private void isiExport ( IsilonApi isi , FileDeviceInputOutput args , List < FileExport > exports ) throws IsilonException { } private IsilonExport setIsilonExport ( FileExport fileExport , String permissions , List < String > securityType , String root_user , String mountPath , String comments ) { } private IsilonExport setIsilonExport ( ExportRule expRule ) { } private void isiUnexport ( IsilonApi isi , FileDeviceInputOutput args , List < FileExport > exports ) throws IsilonException , ControllerException { } private void isiExpandFS ( IsilonApi isi , String quotaId , Long capacity ) throws IsilonException , ControllerException { } @ Override public BiosCommandResult doCreateFS ( StorageSystem storage , FileDeviceInputOutput args ) throws ControllerException { } @ Override public BiosCommandResult doDeleteFS ( StorageSystem storage , FileDeviceInputOutput args ) throws ControllerException { } @ Override public boolean doCheckFSExists ( StorageSystem storage , FileDeviceInputOutput args ) throws ControllerException { } @ Override public BiosCommandResult doExpandFS ( StorageSystem storage , FileDeviceInputOutput args ) throws ControllerException { } @ Override public BiosCommandResult doExport ( StorageSystem storage , FileDeviceInputOutput args , List < FileExport > exportList ) throws ControllerException { } @ Override public BiosCommandResult doUnexport ( StorageSystem storage , FileDeviceInputOutput args , List < FileExport > exportList ) throws ControllerException { } @ Override public BiosCommandResult doShare ( StorageSystem storage , FileDeviceInputOutput args , SMBFileShare smbFileShare ) throws ControllerException { } @ Override public BiosCommandResult doDeleteShare ( StorageSystem storage , FileDeviceInputOutput args , SMBFileShare smbFileShare ) throws ControllerException { } @ Override public BiosCommandResult doDeleteShares ( StorageSystem storage , FileDeviceInputOutput args ) throws ControllerException { } @ Override public BiosCommandResult doModifyFS ( StorageSystem storage , FileDeviceInputOutput args ) throws ControllerException { } @ Override public BiosCommandResult doSnapshotFS ( StorageSystem storage , FileDeviceInputOutput args ) throws ControllerException { } @ Override public BiosCommandResult doRestoreFS ( StorageSystem storage , FileDeviceInputOutput args ) throws ControllerException { } @ Override public BiosCommandResult doDeleteSnapshot ( StorageSystem storage , FileDeviceInputOutput args ) throws ControllerException { } @ Override public BiosCommandResult getFSSnapshotList ( StorageSystem storage , FileDeviceInputOutput args , List < String > snapshots ) throws ControllerException { } @ Override public void doConnect ( StorageSystem storage ) throws ControllerException { } @ Override public void doDisconnect ( StorageSystem storage ) { } @ Override public BiosCommandResult getPhysicalInventory ( StorageSystem storage ) { } @ Override public BiosCommandResult doCreateQuotaDirectory ( StorageSystem storage , FileDeviceInputOutput args , QuotaDirectory quotaDir ) throws ControllerException { } @ Override public BiosCommandResult doDeleteQuotaDirectory ( StorageSystem storage , FileDeviceInputOutput args ) throws ControllerException { } @ Override public BiosCommandResult doUpdateQuotaDirectory ( StorageSystem storage , FileDeviceInputOutput args , QuotaDirectory quotaDir ) throws ControllerException { String fsMountPath = args . getFsMountPath ( ) ; Long qDirSize = quotaDir . getSize ( ) ; String qDirPath = ( fsMountPath + "//" ) + ( quotaDir . getName ( ) ) ; IsilonFileStorageDevice . _log . info ( "IsilonFileStorageDevice<seq2seq4repair_space>doUpdateQuotaDirectory<seq2seq4repair_space>{}<seq2seq4repair_space>with<seq2seq4repair_space>size<seq2seq4repair_space>{}<seq2seq4repair_space>-<seq2seq4repair_space>start" , qDirPath , qDirSize ) ; try { IsilonApi isi = getIsilonDevice ( storage ) ; String quotaId = null ; if ( ( quotaDir . getExtensions ( ) ) != null ) { quotaId = quotaDir . getExtensions ( ) . get ( IsilonFileStorageDevice . QUOTA ) ; } if ( quotaId != null ) { if ( qDirSize > 0 ) { IsilonFileStorageDevice . _log . info ( "IsilonFileStorageDevice<seq2seq4repair_space>doUpdateQuotaDirectory<seq2seq4repair_space>,<seq2seq4repair_space>Update<seq2seq4repair_space>Quota<seq2seq4repair_space>{}<seq2seq4repair_space>with<seq2seq4repair_space>Capacity<seq2seq4repair_space>{}" , quotaId , qDirSize ) ; <START_BUG> IsilonSmartQuota expandedQuota = new IsilonSmartQuota ( qDirSize , ( ( quotaDir . getNotificationLimit ( ) ) != null ? quotaDir . getNotificationLimit ( ) : 0L ) , ( ( quotaDir . getSoftLimit ( ) ) != null ? quotaDir . getSoftLimit ( ) : 0L ) , ( ( quotaDir . getSoftGrace ( ) ) != null ? quotaDir . getSoftGrace ( ) : 0L ) ) ; <END_BUG> isi . modifyQuota ( quotaId , expandedQuota ) ; } } else { String qid = createQuotaWithThreshold ( qDirPath , qDirSize , ( ( quotaDir . getSoftLimit ( ) ) != null ? Long . valueOf ( quotaDir . getSoftLimit ( ) ) : 0L ) , ( ( quotaDir . getNotificationLimit ( ) ) != null ? Long . valueOf ( quotaDir . getNotificationLimit ( ) ) : 0L ) , ( ( quotaDir . getSoftGrace ( ) ) != null ? Long . valueOf ( quotaDir . getSoftGrace ( ) ) : 0L ) , isi ) ; if ( ( args . getQuotaDirExtensions ( ) ) == null ) { args . initQuotaDirExtensions ( ) ; } args . getQuotaDirExtensions ( ) . put ( IsilonFileStorageDevice . QUOTA , qid ) ; } IsilonFileStorageDevice . _log . info ( "IsilonFileStorageDevice<seq2seq4repair_space>doUpdateQuotaDirectory<seq2seq4repair_space>{}<seq2seq4repair_space>with<seq2seq4repair_space>size<seq2seq4repair_space>{}<seq2seq4repair_space>-<seq2seq4repair_space>complete" , qDirPath , qDirSize ) ; return BiosCommandResult . createSuccessfulResult ( ) ; } catch ( IsilonException e ) { IsilonFileStorageDevice . _log . error ( "doUpdateQuotaDirectory<seq2seq4repair_space>failed." , e ) ; return BiosCommandResult . createErrorResult ( e ) ; } } public String createQuotaWithThreshold ( String qDirPath , Long qDirSize , Long softLimitSize , Long notificationLimitSize , Long softGracePeriod , IsilonApi isi ) { } @ Override public BiosCommandResult deleteExportRules ( StorageSystem storage , FileDeviceInputOutput args ) throws ControllerException { } @ Override public BiosCommandResult updateExportRules ( StorageSystem storage , FileDeviceInputOutput args ) throws ControllerException { } private void processAddIsiExport ( IsilonApi isi , FileDeviceInputOutput args , List < ExportRule > exports ) throws IsilonException { } private void processIsiExport ( IsilonApi isi , FileDeviceInputOutput args , List < ExportRule > exports ) throws IsilonException { }

Fix:
IsilonSmartQuota expandedQuota = isi . constructIsilonSmartQuotaObjectWithThreshold ( null , false , true , ( ( quotaDir . getNotificationLimit ( ) ) != null ? quotaDir . getNotificationLimit ( ) : 0L ) , ( ( quotaDir . getSoftLimit ( ) ) != null ? quotaDir . getSoftLimit ( ) : 0L ) , ( ( quotaDir . getSoftGrace ( ) ) != null ? quotaDir . getSoftGrace ( ) : 0L ) ) ;