MCPcopy Index your code
hub / github.com/zaproxy/zaproxy / hasInvalidLibs

Method hasInvalidLibs

zap/src/main/java/org/zaproxy/zap/control/AddOn.java:426–441  ·  view source on GitHub ↗
(Path file, ZapAddOnXmlFile manifest, ZipFile zip)

Source from the content-addressed store, hash-verified

424 }
425
426 private static boolean hasInvalidLibs(Path file, ZapAddOnXmlFile manifest, ZipFile zip) {
427 return manifest.getLibs().stream()
428 .anyMatch(
429 e -> {
430 ZipEntry libEntry = zip.getEntry(e);
431 if (libEntry == null) {
432 LOGGER.warn("The add-on {} does not have the lib: {}", file, e);
433 return true;
434 }
435 if (libEntry.isDirectory()) {
436 LOGGER.warn("The add-on {} does not have a file lib: {}", file, e);
437 return true;
438 }
439 return false;
440 });
441 }
442
443 /**
444 * Convenience method that attempts to create an {@code AddOn} from the given file.

Callers 1

isValidAddOnMethod · 0.95

Calls 2

getEntryMethod · 0.65
getLibsMethod · 0.45

Tested by

no test coverage detected