Skip to content

Commit b064d5b

Browse files
committed
handle empty string for access inheritance field value
1 parent 15f137d commit b064d5b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

irods/fs/access.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,8 @@ func GetCollectionAccessInheritance(conn *connection.IRODSConnection, path strin
9292

9393
switch sqlResult.AttributeIndex {
9494
case int(common.ICAT_COLUMN_COLL_INHERITANCE):
95-
inherit, err := strconv.ParseBool(value)
96-
if err != nil {
97-
return nil, xerrors.Errorf("failed to parse inheritance %q: %w", value, err)
98-
}
95+
inherit, _ := strconv.ParseBool(value)
96+
// if error, assume false
9997
pagenatedAccessInheritances[row].Inheritance = inherit
10098
default:
10199
// ignore

0 commit comments

Comments
 (0)