Closed erottier closed 2 years ago
Strange, the duplication of "Application Data" in the path also seem to indicate some deep recursion.. Is it possible for you to go the specific machines specifically and see if that path is correct?
Symlinks often causes issues: other projects scanning for this vulnerability ignore them. Consider:
def iter_scandir(path, stats=None, exclude=None):
"""
Yields all files matcthing JAR_EXTENSIONS or FILENAMES recursively in path
"""
p = Path(path)
if p.is_file() and **not p.is_symlink():**
if stats is not None:
stats["files"] += 1
yield p
return
if stats is not None:
stats["directories"] += 1
try:
for entry in scantree(path, stats=stats, exclude=exclude):
if entry.is_symlink():
continue
elif entry.is_file():
name = entry.name.lower()
if name.endswith(JAR_EXTENSIONS):
yield Path(entry.path)
elif name in FILENAMES:
yield Path(entry.path)
except IOError as e:
Strange, the duplication of "Application Data" in the path also seem to indicate some deep recursion.. Is it possible for you to go the specific machines specifically and see if that path is correct?
I can actually browse to that specific folder. 0.o It could be a long filename issue and/or what @KrisJanssen said, sound plausible. :)
Since the 1.2.0 version the scan keeps running this time! Since it keeps running it's no biggie for me anymore.
Error is the same.
Since the 1.2.0 version the scan keeps running this time! Since it keeps running it's no biggie for me anymore.
Error is the same.
Good to know! Will close this issue.
Hi,
One of my servers spits out an error. I've replaced the servername and username.
My first wild guess is that the path is too long and the application can't handle that. But that's just a wild guess on the first glance at the path. Do note that the broken lines is copied as-is from the output I got.