Closed radai-rosenblatt closed 10 years ago
simply changing to if (startValue >= dirList,size()) would return BAD_COOKIE for an empty directory (startValue=0 == dirList.size()=0).
instead i moved the BAD_COOKIE check to the cookie path (startValue != 0, line 869) and added a check for dirList.isEmpty() before allocating reply.entries
Can one of the admins verify this patch?
add to whitelist
as discussed in https://github.com/dCache/jpnfs/issues/5, there are 3 scenarios that result in an NPE in READDIR:
this commit attempts to address all 3, complete with test cases. there are 2 significant changes: