1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940
|
<!-- This file specifies a spotbugs filter for excluding reports that
should not be considered errors.
The format of this file is documented at:
https://spotbugs.readthedocs.io/en/latest/filter.html
When possible, please specify the full names of the bug codes,
using the pattern attribute, to make it clearer what reports are
being suppressed. You can find a listing of codes at:
https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html
-->
<FindBugsFilter>
<Match>
<Or>
<!-- Ignore checking for generated parser classes -->
<Class name="io.undertow.client.http.HttpResponseParser$$generated"/>
<Class name="io.undertow.server.protocol.http.HttpRequestParser$$generated"/>
<!-- Ignore checking for generated JMH benchmarking classes -->
<Package name="io.undertow.benchmarks.generated"/>
</Or>
</Match>
<!-- Ignore spotbugs reports from incomplete detectors -->
<Match>
<Bug pattern="TESTING"/>
</Match>
<!-- We don't mind having redundant checks for null, it is more error prone to later changes -->
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
</Match>
<!-- Ignore negating result of compareTo -->
<Match>
<Bug pattern="RV_NEGATING_RESULT_OF_COMPARETO"/>
</Match>
<!-- Ignore class naming convention issues -->
<Match>
<Bug pattern="NM_CLASS_NAMING_CONVENTION"/>
</Match>
<!-- Ignore unread public and protected fields as someone may depend on Undertow and use them in their app -->
<Match>
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
</Match>
<!-- False positives => ignoring, the field is read in tests -->
<Match>
<Bug pattern="URF_UNREAD_FIELD"/>
<Or>
<And>
<Class name="io.undertow.server.protocol.ajp.AjpRequestParseState"/>
<Field name="dataSize"/>
</And>
</Or>
</Match>
<!-- False positives => ignoring, the field is regular boolean, no complex bitwise operation is in place here -->
<Match>
<Bug pattern="BIT_IOR"/>
<Or>
<And>
<Class name="io.undertow.conduits.AbstractFixedLengthStreamSinkConduit"/>
</And>
</Or>
</Match>
<!-- field is always incremented/decremented inside synchronized blocks using the same lock -->
<Match>
<Bug pattern="VO_VOLATILE_INCREMENT"/>
<Or>
<And>
<Class name="io.undertow.server.protocol.framed.AbstractFramedStreamSinkChannel"/>
<Field name="waiterCount"/>
</And>
<And>
<Class name="io.undertow.server.handlers.proxy.mod_cluster.NodeLbStatus"/>
<Field name="elected"/>
</And>
<And>
<Class name="io.undertow.websockets.jsr.SessionContainer"/>
<Field name="waiterCount"/>
</And>
<And>
<Class name="io.undertow.protocols.ssl.SslConduit"/>
<Field name="outstandingTasks"/>
</And>
<And>
<Class name="io.undertow.protocols.ssl.SslConduit$5"/>
<Field name="outstandingTasks"/>
</And>
<And>
<Class name="io.undertow.protocols.ssl.SslConduit$5$1"/>
<Field name="outstandingTasks"/>
</And>
<And>
<Class name="io.undertow.server.session.InMemorySessionManager$SessionImpl"/>
<Field name="expiredSessionCount"/>
</And>
</Or>
</Match>
<!--Stream id in HTTP/2 is always unsigned int per spec -->
<Match>
<Bug pattern="IM_BAD_CHECK_FOR_ODD"/>
<Class name="io.undertow.protocols.http2.Http2Channel"/>
<Method name="isClient"/>
</Match>
<!-- Even per javadoc of Object.wait(), this should be always used in loop. It is on purpose -->
<Match>
<Bug pattern="WA_NOT_IN_LOOP"/>
<Or>
<And>
<Class name="io.undertow.protocols.ssl.SslConduit"/>
<Method name="~await.*"/>
</And>
<And>
<Class name="io.undertow.server.protocol.framed.AbstractFramedStreamSourceChannel"/>
<Method name="awaitReadable"/>
</And>
<And>
<Class name="io.undertow.server.protocol.framed.AbstractFramedStreamSinkChannel"/>
<Method name="awaitWritable"/>
</And>
</Or>
</Match>
<!-- Ignore returning references to internal representations of objects -->
<Match>
<Bug pattern="EI_EXPOSE_REP"/>
</Match>
<!-- Ignoring when internal representation stores reference to external representation -->
<Match>
<Bug pattern="EI_EXPOSE_REP2"/>
</Match>
<!-- Intentional switch case follow through -->
<Match>
<Bug pattern="SF_SWITCH_FALLTHROUGH"/>
<Or>
<And>
<Class name="io.undertow.protocols.ajp.AjpResponseParser"/>
<Method name="parse" params="java.nio.ByteBuffer" returns="void"/>
</And>
<And>
<Class name="io.undertow.server.protocol.ajp.AjpRequestParser"/>
<Method name="parse"/>
</And>
<And>
<Class name="io.undertow.util.Cookies"/>
<Method name="parseCookie"/>
</And>
<And>
<Class name="io.undertow.util.PathTemplate"/>
<Method name="create"/>
</And>
</Or>
</Match>
<!-- Path has always some elements in our cases => ignoring -->
<Match>
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"/>
<Class name="io.undertow.server.handlers.resource.PathResource"/>
</Match>
<!-- The PathTemplate equivalent always exist, checked already by the contains method -->
<Match>
<Bug pattern="NP_NULL_ON_SOME_PATH"/>
<Class name="io.undertow.util.PathTemplateMatcher"/>
</Match>
<!-- Ignoring switch cases with no default, all cases which can occur are covered -->
<!-- TODO: Discuss with developer, whether not to add there some exception being thrown in such cases -->
<Match>
<Bug pattern="SF_SWITCH_NO_DEFAULT"/>
</Match>
<!-- Intentional throwing RuntimeException instead of checked exception -->
<Match>
<Bug pattern="REC_CATCH_EXCEPTION"/>
<Or>
<!-- Intentional throwing RuntimeException instead of checked exception -->
<And>
<Class name="io.undertow.Undertow"/>
<Method name="start"/>
</And>
<!-- Intentional throwing RuntimeException instead of checked exception -->
<And>
<Class name="io.undertow.server.handlers.proxy.mod_cluster.MCMPHandler"/>
<Method name="processConfig"/>
</And>
<!-- Intentional not throwing exception -->
<And>
<Class name="io.undertow.util.FlexBase64$Encoder"/>
<Method name="encodeString"/>
</And>
</Or>
</Match>
<!-- The SQL is created based on configuration of the Handler => when proper configuration is created,
then the risk of SQL injection is evaded -->
<Match>
<Bug pattern="SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING"/>
<Class name="io.undertow.server.handlers.JDBCLogHandler"/>
<Method name="prepareStatement"/>
</Match>
<!--Some inner subclasses of the AjpClientChannel class require to be non static, we want all of the same type inner -->
<!--classes to be the same -->
<Match>
<Bug pattern="SIC_INNER_SHOULD_BE_STATIC"/>
<Class name="~io\.undertow\.protocols\.ajp\.AjpClientChannel\$.*"/>
</Match>
<!-- Is done actually only once, no harm in it -->
<Match>
<Bug pattern="DMI_RANDOM_USED_ONLY_ONCE"/>
<Or>
<Class name="io.undertow.security.impl.SimpleNonceManager" />
<Class name="io.undertow.websockets.client.WebSocket13ClientHandshake" />
</Or>
</Match>
<Match>
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS"/>
<Or>
<Class name="io.undertow.server.handlers.encoding.EncodingMapping"/>
<Class name="~.*AlpnOpenListener\$ListenerEntry"/>
</Or>
</Match>
<!-- MCMPAdvertiseTask is used only as single background thread for doing advertising -->
<Match>
<Bug pattern="STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE"/>
<Class name="io.undertow.server.handlers.proxy.mod_cluster.MCMPAdvertiseTask"/>
</Match>
<!--We don't care whether it is Runtime or checked exception-->
<Match>
<Bug pattern="REC_CATCH_EXCEPTION"/>
<Class name="io.undertow.servlet.handlers.security.SSLInformationAssociationHandler"/>
<Method name="getCerts"/>
</Match>
<!--Ignoring checking for examples-->
<Match>
<Package name="~io\.undertow\.examples.*"/>
</Match>
<!-- The proper class type returned is handled by createInstance() method being overridden for each subclass => ignoring -->
<Match>
<Bug pattern="CN_IDIOM_NO_SUPER_CALL"/>
<Or>
<Class name="io.undertow.servlet.api.SecurityInfo"/>
<Class name="io.undertow.servlet.api.AuthMethodConfig"/>
<Class name="io.undertow.servlet.api.DeploymentInfo"/>
<Class name="io.undertow.servlet.api.LoginConfig"/>
<Class name="io.undertow.servlet.api.FilterInfo"/>
<Class name="io.undertow.servlet.api.ServletInfo"/>
<Class name="io.undertow.websockets.jsr.WebSocketDeploymentInfo"/>
</Or>
</Match>
<!-- intentional -->
<Match>
<Bug pattern="DM_DEFAULT_ENCODING"/>
<Or>
<Class name="io.undertow.servlet.spec.ServletPrintWriterDelegate"/>
</Or>
</Match>
<Match>
<Bug pattern="UG_SYNC_SET_UNSYNC_GET"/>
<Class name="io.undertow.servlet.spec.AsyncContextImpl"/>
</Match>
<Match>
<Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT"/>
</Match>
<Match>
<Bug pattern="DLS_DEAD_LOCAL_STORE"/>
<Class name="io.undertow.predicate.PredicatesHandler$RestartHandlerBuilder$1$1"/>
<Method name="handleRequest"/>
</Match>
<!-- Method is actually fine-->
<Match>
<Bug pattern="NP_NONNULL_PARAM_VIOLATION"/>
<Class name="io.undertow.server.protocol.http.AlpnOpenListener$AlpnConnectionListener"/>
</Match>
<!-- Field can be modified by code between the first check-->
<!-- see https://github.com/spotbugs/spotbugs/issues/1338 -->
<!-- Comparison of cookies path and domain with == before invoking equals is necessary because
both could be null; only if the == fails we check for one of them != null && equals the other -->
<Match>
<Bug pattern="ES_COMPARING_STRINGS_WITH_EQ"/>
<Class name="io.undertow.servlet.spec.HttpServletResponseImpl"/>
<Method name="addCookie"/>
</Match>
<!-- UNDERTOW-1839: we don't want to increase contention to synchronize all blocks that access the fields:
engine, invokingReadListenerHandshake, readListenerInvocationCount. The less contention the better,
the goal of the new synchronized blocks is to prevent writing to buffers that are being released
by another thread -->
<Match>
<Bug pattern="IS2_INCONSISTENT_SYNC"/>
<Class name="io.undertow.protocols.ssl.SslConduit"/>
</Match>
<!-- SslConduit needs to update the expanded buffer pool (static field) taking
in consideration the buffer size needed for wrapping (instance lock context) -->
<Match>
<Bug pattern="SSD_DO_NOT_USE_INSTANCE_LOCK_ON_SHARED_STATIC_DATA"/>
<Class name="io.undertow.protocols.ssl.SslConduit"/>
</Match>
<Match>
<Bug pattern="THROWS_METHOD_THROWS_CLAUSE_THROWABLE"/>
<Or>
<!-- throws Throwable declared by finalize -->
<Class name="io.undertow.server.DefaultByteBufferPool"/>
<Class name="io.undertow.server.DefaultByteBufferPool$LeakDetector"/>
<Class name="io.undertow.server.DefaultByteBufferPool$ThreadLocalData"/>
</Or>
</Match>
<Match>
<Bug pattern="MS_EXPOSE_REP"/>
<Or>
<Class name="io.undertow.servlet.Servlets"/>
<Class name="io.undertow.servlet.core.ServletExtensionHolder"/>
</Or>
</Match>
<Match>
<!-- The getEndpointClassInstance is expected to invoke newInstance -->
<Bug pattern="REFLC_REFLECTION_MAY_INCREASE_ACCESSIBILITY_OF_CLASS"/>
<Class name="io.undertow.websockets.jsr.DefaultContainerConfigurator"/>
</Match>
<Match>
<!-- At least for now, we don't mind throwing runtime exception, as this is a framework
and currently several internal errors are wrapped in a RuntimeException whenever
it is an internal error caller cannot handle or an external superclass signature
does not contain a throw class-->
<Bug pattern="THROWS_METHOD_THROWS_RUNTIMEEXCEPTION"/>
<Or>
<And>
<Class name="io.undertow.annotationprocessor.HttpParserAnnotationProcessor"/>
<Method name="process"/>
</And>
<And>
<Class name="io.undertow.Undertow$ListenerInfo"/>
<Method name="suspend"/>
</And>
<And>
<Or>
<Class name="io.undertow.attribute.ExchangeAttributeParser"/>
<Class name="io.undertow.protocols.http2.Http2PushBackParser"/>
<Class name="io.undertow.util.URLUtils$QueryStringParser"/>
<Class name="io.undertow.server.handlers.builder.PredicatedHandlersParser"/>
</Or>
<Method name="parse"/>
</And>
<And>
<Class name="io.undertow.client.http.HttpResponseParser"/>
<Method name="httpStrings"/>
</And>
<And>
<Or>
<Class name="io.undertow.conduits.DebuggingStreamSinkConduit"/>
<Class name="io.undertow.conduits.DebuggingStreamSourceConduit"/>
</Or>
<Method name="dump"/>
</And>
<And>
<Class name="io.undertow.conduits.InflatingStreamSourceConduit"/>
<Method name="read"/>
</And>
<And>
<Class name="io.undertow.protocols.ajp.AjpClientChannel"/>
<Method name="createChannel"/>
</And>
<And>
<Or>
<Class name="io.undertow.protocols.alpn.JDK9AlpnProvider"/>
<Class name="io.undertow.protocols.alpn.OpenSSLAlpnProvider"/>
</Or>
<Or>
<Method name="setProtocols"/>
<Method name="getSelectedProtocol"/>
</Or>
</And>
<And>
<Class name="io.undertow.protocols.http2.Http2DataStreamSinkChannel"/>
<Method name="createFrameHeaderImpl"/>
</And>
<And>
<Class name="io.undertow.protocols.http2.Http2StreamSourceChannel"/>
<Method name="handleHeaderData"/>
</And>
<And>
<Class name="io.undertow.protocols.ssl.ALPNHackSSLEngine"/>
<Method name="regenerateHashes"/>
</And>
<And>
<Class name="io.undertow.protocols.ssl.ALPNHackServerByteArrayOutputStream"/>
<Method name="write"/>
</And>
<And>
<Class name="io.undertow.protocols.ssl.ALPNHackServerHelloExplorer"/>
<Method name="exploreServerHello"/>
</And>
<And>
<Class name="io.undertow.security.impl.FormAuthenticationMechanism"/>
<Method name="runFormAuth"/>
</And>
<And>
<Class name="io.undertow.server.Connectors"/>
<Method name="setExchangeRequestPath"/>
</And>
<And>
<Class name="io.undertow.server.DirectByteBufferDeallocator"/>
<Or>
<Method name="getUnsafe0"/>
<Method name="getDeclaredMethod0"/>
<Method name="getAccesibleMethod0"/>
</Or>
</And>
<And>
<Class name="io.undertow.server.handlers.RequestDumpingHandler"/>
<Method name="dumpRequestBody"/>
</And>
<And>
<Class name="io.undertow.server.handlers.SetAttributeHandler$1"/>
<Method name="beforeCommit"/>
</And>
<And>
<Or>
<Class name="io.undertow.server.handlers.error.FileErrorPageHandler$2"/>
<Class name="io.undertow.util.Headers$1"/>
<Class name="io.undertow.servlet.core.ServletUpgradeListener$4"/>
<Class name="io.undertow.servlet.spec.ServletPrintWriterDelegate$1"/>
</Or>
<Method name="run"/>
</And>
<And>
<Class name="io.undertow.server.handlers.form.FormData"/>
<Or>
<Method name="add"/>
<Method name="put"/>
</Or>
</And>
<And>
<Class name="io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler"/>
<Or>
<Method name="parseBlocking"/>
<Method name="beginPart"/>
<Method name="data"/>
<Method name="endPart"/>
</Or>
</And>
<And>
<Class name="io.undertow.server.handlers.proxy.HostTable"/>
<Or>
<Method name="addHost"/>
<Method name="addRoute"/>
</Or>
</And>
<And>
<Class name="io.undertow.server.handlers.proxy.ProxyConnectionPool"/>
<Or>
<Method name="closeCurrentConnections"/>
<Method name="openConnection"/>
</Or>
</And>
<And>
<Class name="io.undertow.server.handlers.proxy.ProxyHandlerBuilder"/>
<Method name="build"/>
</And>
<And>
<Class name="io.undertow.server.handlers.proxy.mod_cluster.MCMPHandler"/>
<Method name="checkStringForSuspiciousCharacters"/>
</And>
<And>
<Class name="io.undertow.server.handlers.resource.PathResource"/>
<Or>
<Method name="list"/>
<Method name="getLastModified"/>
<Method name="getContentLength"/>
<Method name="getUrl"/>
<Method name="serveImpl"/>
</Or>
</And>
<And>
<Class name="io.undertow.server.handlers.resource.URLResource"/>
<Method name="list"/>
</And>
<And>
<Class name="io.undertow.server.protocol.ajp.AjpServerRequestConduit"/>
<Method name="doRead"/>
</And>
<And>
<Class name="io.undertow.server.protocol.framed.AbstractFramedChannel"/>
<Method name="flushSenders"/>
</And>
<And>
<Class name="io.undertow.server.protocol.http.HttpRequestParser"/>
<Or>
<Method name="instance"/>
<Method name="handlePath"/>
<Method name="handleQueryParameters"/>
<Method name="handlePathParameters"/>
<Method name="httpStrings"/>
</Or>
</And>
<And>
<Class name="io.undertow.server.protocol.http2.Http2UpgradeHandler$1"/>
<Method name="onComplete"/>
</And>
<And>
<Or>
<Class name="io.undertow.util.MultipartParser$Base64Encoding"/>
<Class name="io.undertow.server.protocol.http2.Http2UpgradeHandler$3"/>
</Or>
<Method name="handle"/>
</And>
<And>
<Class name="io.undertow.server.session.InMemorySessionManager"/>
<Method name="createAndSaveNewID"/>
</And>
<And>
<Class name="io.undertow.util.FileUtils"/>
<Method name="readFile"/>
</And>
<And>
<Class name="io.undertow.util.Headers"/>
<Method name="extractQuotedValueFromHeaderWithEncoding"/>
</And>
<And>
<Class name="io.undertow.Undertow"/>
<Or>
<Method name="start"/>
<Method name="stop"/>
</Or>
</And>
<And>
<Class name="io.undertow.util.PathTemplate"/>
<Method name="create"/>
</And>
<And>
<Class name="io.undertow.util.RedirectBuilder"/>
<Method name="redirect"/>
</And>
<And>
<Class name="io.undertow.websockets.client.WebSocket13ClientHandshake"/>
<Method name="solve"/>
</And>
<And>
<Class name="io.undertow.websockets.client.WebSocketClient$ConnectionBuilder"/>
<Method name="connectImpl"/>
</And>
<And>
<Class name="io.undertow.websockets.core.protocol.version07.WebSocket07Channel$WebSocketFrameHeader"/>
<Method name="createChannel"/>
</And>
<And>
<Class name="io.undertow.websockets.core.protocol.version07.WebSocket07FrameSinkChannel"/>
<Method name="preWriteTransform"/>
</And>
<And>
<Class name="io.undertow.servlet.compat.rewrite.UndertowResolver"/>
<Method name="resolveResource"/>
</And>
<And>
<Class name="io.undertow.servlet.core.ApplicationListeners"/>
<Or>
<Method name="addListener"/>
<Method name="requestInitialized"/>
</Or>
</And>
<And>
<Class name="io.undertow.servlet.core.DeploymentManagerImpl"/>
<Or>
<Method name="deploy"/>
<Method name="setupSecurityHandlers"/>
<Method name="start"/>
<Method name="stop"/>
<Method name="undeploy"/>
</Or>
</And>
<And>
<Class name="io.undertow.servlet.core.ServletBlockingHttpExchange"/>
<Or>
<Method name="getInputStream"/>
<Method name="getOutputStream"/>
<Method name="getSender"/>
</Or>
</And>
<And>
<Or>
<Class name="io.undertow.servlet.core.ServletUpgradeListener$3"/>
<Class name="io.undertow.servlet.spec.WebConnectionImpl$1"/>
</Or>
<Method name="handleEvent"/>
</And>
<And>
<Class name="io.undertow.servlet.handlers.FilterHandler$FilterChainImpl"/>
<Method name="doFilter"/>
</And>
<And>
<Class name="io.undertow.servlet.handlers.ServletInitialHandler"/>
<Method name="dispatchMockRequest"/>
</And>
<And>
<Class name="io.undertow.servlet.handlers.ServletPathMatches"/>
<Method name="getServletHandlerByPath"/>
</And>
<And>
<Class name="io.undertow.servlet.handlers.security.ServletFormAuthenticationMechanism"/>
<Or>
<Method name="handleRedirectBack"/>
<Method name="servePage"/>
</Or>
</And>
<And>
<Or>
<Class name="io.undertow.servlet.predicate.DirectoryPredicate"/>
<Class name="io.undertow.servlet.predicate.FilePredicate"/>
</Or>
<Method name="resolve"/>
</And>
<And>
<Class name="io.undertow.servlet.spec.HttpServletRequestImpl"/>
<Or>
<Method name="upgrade"/>
<Method name="parseFormData"/>
</Or>
</And>
<And>
<Class name="io.undertow.servlet.spec.HttpServletResponseImpl"/>
<Or>
<Method name="doErrorDispatch"/>
<Method name="resetBuffer"/>
</Or>
</And>
<And>
<Class name="io.undertow.servlet.spec.PartImpl"/>
<Method name="getSize"/>
</And>
<And>
<Class name="io.undertow.servlet.spec.RequestDispatcherImpl"/>
<Or>
<Method name="forward"/>
<Method name="forwardImpl"/>
<Method name="include"/>
<Method name="includeImpl"/>
<Method name="error"/>
</Or>
</And>
<And>
<Class name="io.undertow.servlet.spec.ServletContextImpl"/>
<Or>
<Method name="addServlet"/>
<Method name="addFilter"/>
<Method name="invokeAction"/>
<Method name="invokeOnDataAvailable"/>
<Method name="invokeOnAllDataRead"/>
<Method name="invokeOnWritePossible"/>
<Method name="invokeRunnable"/>
</Or>
</And>
<And>
<Class name="io.undertow.servlet.spec.ServletPrintWriterDelegate"/>
<Or>
<Method name="newInstance"/>
<Method name="getUnsafe0"/>
</Or>
</And>
<And>
<Class name="io.undertow.servlet.core.SessionListenerBridge"/>
<Method name="sessionDestroyed"/>
</And>
<And>
<!-- TODO: figure out lambda ref? -->
<Class name="io.undertow.servlet.spec.ServletContextImpl"/>
</And>
<And>
<Class name="io.undertow.websockets.jsr.Bootstrap"/>
<Method name="handleDeployment"/>
</And>
<And>
<Class name="io.undertow.websockets.jsr.DefaultContainerConfigurator"/>
<Method name="getEndpointInstance"/>
</And>
<And>
<Class name="io.undertow.websockets.jsr.EncodingFactory"/>
<Method name="createEncoding"/>
</And>
<And>
<Class name="io.undertow.websockets.jsr.ServerWebSocketContainer"/>
<Or>
<Method name="connectToServer"/>
<Method name="invokeEndpointMethod"/>
<Method name="getClientEndpoint"/>
<Method name="validateDeployment"/>
</Or>
</And>
<And>
<!-- java.util.function.Supplier does not have any exception in interface def -->
<Class name="io.undertow.websockets.jsr.UndertowContainerProvider$2"/>
<Method name="get"/>
</And>
<And>
<!-- java.lang.Runnable does not have any exception in interface def -->
<Class name="io.undertow.websockets.jsr.annotated.AnnotatedEndpoint$5"/>
<Method name="run"/>
</And>
<And>
<Class name="io.undertow.websockets.jsr.annotated.BoundMethod"/>
<Method name="invoke"/>
</And>
<And>
<Or>
<!-- TODO: figure out static{} block reference -->
<Class name="io.undertow.client.http.HttpResponseParser"/>
<!-- TODO: figure constructor reference -->
<Class name="io.undertow.protocols.http2.Http2Channel"/>
<!-- TODO: figure constructor reference -->
<Class name="io.undertow.protocols.ssl.ALPNHackServerByteArrayOutputStream"/>
<!-- TODO: figure static reference -->
<Class name="io.undertow.security.impl.GSSAPIAuthenticationMechanism"/>
<!-- TODO: figure constructor reference -->
<Class name="io.undertow.server.handlers.proxy.mod_cluster.MCMPAdvertiseTask"/>
<!-- TODO: figure constructor reference -->
<Class name="io.undertow.server.handlers.resource.PathResourceManager"/>
<!-- TODO: figure static reference -->
<Class name="io.undertow.server.protocol.http.HttpRequestParser"/>
<!-- TODO: figure static reference -->
<Class name="io.undertow.server.session.SecureRandomSessionIdGenerator"/>
</Or>
</And>
</Or>
</Match>
<Match>
<Bug pattern="THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION"/>
<Or>
<And>
<Or>
<Class name="io.undertow.predicate.PredicatesHandler$DoneHandlerBuilder$1$1"/>
<Class name="io.undertow.predicate.PredicatesHandler$RestartHandlerBuilder$1$1"/>
<!-- False positive? -->
<Class name="io.undertow.security.impl.GSSAPIAuthenticationMechanism$AcceptSecurityContext"/>
<Class name="io.undertow.util.FlexBase64$1"/>
</Or>
</And>
<!-- HttpHandler.handleEvent throws Exception, and so do all of its subclasses
(there are tons of those) - as well as JDK classes -->
<And>
<Or>
<Class name="io.undertow.server.HttpHandler"/>
<Class name="io.undertow.io.AsyncReceiverImpl$2$1"/>
<Class name="io.undertow.io.AsyncReceiverImpl$2$2"/>
<Class name="io.undertow.io.AsyncReceiverImpl$2$3"/>
<Class name="io.undertow.io.AsyncReceiverImpl$3$1"/>
<Class name="io.undertow.io.AsyncReceiverImpl$3$2"/>
<Class name="io.undertow.io.AsyncReceiverImpl$3$3"/>
<Class name="io.undertow.io.AsyncReceiverImpl$4$1"/>
<Class name="io.undertow.io.AsyncReceiverImpl$4$2"/>
<Class name="io.undertow.io.AsyncReceiverImpl$4$3"/>
<Class name="io.undertow.io.AsyncReceiverImpl$5$1"/>
<Class name="io.undertow.io.AsyncReceiverImpl$5$2"/>
<Class name="io.undertow.io.AsyncReceiverImpl$5$3"/>
<Class name="io.undertow.predicate.PredicatesHandler"/>
<Class name="io.undertow.predicate.PredicatesHandler$DoneHandlerBuilder$1$1"/>
<Class name="io.undertow.predicate.PredicatesHandler$RestartHandlerBuilder$1$1"/>
<Class name="io.undertow.security.handlers.AbstractConfidentialityHandler"/>
<Class name="io.undertow.security.handlers.AbstractSecurityContextAssociationHandler"/>
<Class name="io.undertow.security.handlers.AuthenticationCallHandler"/>
<Class name="io.undertow.security.handlers.AuthenticationConstraintHandler"/>
<Class name="io.undertow.security.handlers.AuthenticationMechanismsHandler"/>
<Class name="io.undertow.security.handlers.CachedAuthenticatedSessionHandler"/>
<Class name="io.undertow.security.handlers.NotificationReceiverHandler"/>
<Class name="io.undertow.server.JvmRouteHandler"/>
<Class name="io.undertow.server.RoutingHandler"/>
<Class name="~io.undertow.server.handlers.*"/>
<Class name="io.undertow.server.handlers.resource.ResourceHandler"/>
<Class name="io.undertow.server.protocol.http.HttpContinue$3$1"/>
<Class name="io.undertow.server.protocol.http.HttpContinue$4$1"/>
<Class name="io.undertow.server.protocol.http2.Http2UpgradeHandler"/>
<Class name="io.undertow.server.protocol.http2.Http2UpgradeHandler$4$1"/>
<Class name="io.undertow.server.session.SessionAttachmentHandler"/>
<Class name="io.undertow.websockets.WebSocketProtocolHandshakeHandler"/>
<Class name="io.undertow.servlet.compat.rewrite.RewriteHandler"/>
<Class name="io.undertow.servlet.core.MetricsChainHandler"/>
<Class name="io.undertow.servlet.handlers.CrawlerSessionManagerHandler"/>
<Class name="io.undertow.servlet.handlers.FilterHandler"/>
<Class name="io.undertow.servlet.handlers.MarkSecureHandler"/>
<Class name="io.undertow.servlet.handlers.RedirectDirHandler"/>
<Class name="io.undertow.servlet.handlers.SendErrorPageHandler"/>
<Class name="io.undertow.servlet.handlers.ServletDispatchingHandler"/>
<Class name="io.undertow.servlet.handlers.ServletInitialHandler"/>
<Class name="io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler"/>
<Class name="io.undertow.servlet.handlers.security.SSLInformationAssociationHandler"/>
<Class name="io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler"/>
<Class name="io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler"/>
<Class name="io.undertow.servlet.handlers.security.ServletSecurityRoleHandler"/>
<Class name="io.undertow.servlet.handlers.ServletChain$1"/>
<Class name="io.undertow.servlet.handlers.ServletInitialHandler$1"/>
<Class name="io.undertow.servlet.handlers.SessionRestoringHandler"/>
<Class name="io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler"/>
<Class name="io.undertow.servlet.spec.AsyncContextImpl$2$1"/>
<Class name="io.undertow.servlet.spec.AsyncContextImpl$TimeoutTask$1$1$1"/>
</Or>
<Method name="handleRequest"/>
</And>
<And>
<Class name="io.undertow.server.protocol.http2.Http2UpgradeHandler"/>
<Method name="handleUpgradeBody"/>
</And>
<And>
<Class name="io.undertow.server.RoutingHandler"/>
<Method name="handleNoMatch"/>
</And>
<And>
<Or>
<Class name="io.undertow.server.handlers.form.FormDataParser"/>
<Class name="io.undertow.server.handlers.form.FormEncodedDataDefinition$FormEncodedDataParser"/>
<Class name="io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartUploadHandler"/>
</Or>
<Method name="parse"/>
</And>
<And>
<Class name="io.undertow.server.handlers.resource.ResourceHandler"/>
<Method name="serveResource"/>
</And>
<!-- io.undertow.servlet.api.ThreadsetupHandler.Action interface and impl -->
<And>
<Or>
<Class name="io.undertow.servlet.api.ThreadSetupHandler$Action"/>
<Class name="io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1"/>
<Class name="io.undertow.servlet.core.ContextClassLoaderSetupAction$1"/>
<Class name="io.undertow.servlet.core.DeploymentManagerImpl$1"/>
<Class name="io.undertow.servlet.core.DeploymentManagerImpl$2"/>
<Class name="io.undertow.servlet.core.DeploymentManagerImpl$3"/>
<Class name="io.undertow.servlet.core.DeploymentManagerImpl$4"/>
<Class name="io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1"/>
<Class name="io.undertow.servlet.core.ServletUpgradeListener$1"/>
<Class name="io.undertow.servlet.core.ServletUpgradeListener$2"/>
<Class name="io.undertow.servlet.core.SessionListenerBridge$1"/>
<Class name="io.undertow.servlet.handlers.ServletInitialHandler$2"/>
<Class name="io.undertow.servlet.spec.RequestDispatcherImpl$2"/>
<Class name="io.undertow.servlet.spec.RequestDispatcherImpl$4"/>
<Class name="io.undertow.servlet.spec.ServletContextImpl$1"/>
<Class name="io.undertow.servlet.spec.ServletContextImpl$2"/>
<Class name="io.undertow.servlet.spec.ServletContextImpl$3"/>
<Class name="io.undertow.servlet.spec.ServletContextImpl$4"/>
<Class name="io.undertow.servlet.spec.ServletContextImpl$5"/>
<Class name="io.undertow.websockets.jsr.ServerWebSocketContainer$1"/>
</Or>
<Method name="call"/>
</And>
<And>
<Class name="io.undertow.servlet.api.ServletDispatcher"/>
<Or>
<Method name="dispatchToPath"/>
<Method name="dispatchToServlet"/>
</Or>
</And>
<And>
<Class name="io.undertow.servlet.handlers.ServletInitialHandler"/>
<Or>
<Method name="dispatchToPath"/>
<Method name="dispatchToServlet"/>
<Method name="handleFirstRequest"/>
<Method name="dispatchRequest"/>
</Or>
</And>
<And>
<!-- java.security.PrivilegedExceptionAction -->
<Or>
<Class name="io.undertow.servlet.handlers.ServletInitialHandler$1$1"/>
<Class name="io.undertow.servlet.spec.RequestDispatcherImpl$1"/>
<Class name="io.undertow.servlet.spec.RequestDispatcherImpl$3"/>
</Or>
<Method name="run"/>
</And>
<And>
<Class name="io.undertow.servlet.spec.WebConnectionImpl"/>
<Method name="close"/>
</And>
<And>
<!-- TODO: figure out lambda ref? -->
<Class name="io.undertow.servlet.spec.ServletContextImpl"/>
</And>
<And>
<Class name="io.undertow.websockets.jsr.annotated.BoundMethod"/>
<Method name="invoke"/>
</And>
</Or>
</Match>
<Match>
<Or>
<!-- apparently a false positive associated with the try with resources -->
<!-- see https://github.com/spotbugs/spotbugs/issues/647 -->
<Bug pattern="NP_LOAD_OF_KNOWN_NULL_VALUE"/>
<!-- apparently a false positive associated with the try with resources -->
<!-- see https://github.com/spotbugs/spotbugs/issues/647 -->
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE"/>
</Or>
<Class name="io.undertow.security.impl.SingleSignOnAuthenticationMechanism"/>
<Method name="authenticate"/>
</Match>
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
<Or>
<And>
<Class name="io.undertow.client.http.HttpClientConnection$ClientReadListener"/>
<Method name="handleEvent"/>
</And>
<Class name="io.undertow.servlet.spec.ServletOutputStreamImpl"/>
</Or>
</Match>
<!-- ignore benchmarks -->
<Match>
<Package name="io.undertow.benchmarks"/>
</Match>
</FindBugsFilter>
|