[jboss-jira] [JBoss JIRA] (ELY-1479) Coverity, Missing call to superclass in AbstractGssapiMechanism

Martin Choma (JIRA) issues at jboss.org
Thu Jan 4 02:51:00 EST 2018


Martin Choma created ELY-1479:
---------------------------------

             Summary: Coverity, Missing call to superclass in AbstractGssapiMechanism
                 Key: ELY-1479
                 URL: https://issues.jboss.org/browse/ELY-1479
             Project: WildFly Elytron
          Issue Type: Bug
          Components: Authentication Mechanisms
    Affects Versions: 1.2.0.Beta11
            Reporter: Martin Choma


super.getNegotiatedProperty() is not called in AbstractGssapiMechanism#getNegotiatedProperty, although it is called in similar cases in Gs2SaslServer, DigestSaslServer, AnonymousSaslClient.

{code:java|title=AbstractGssapiMechanism.java}
    @Override
    public Object getNegotiatedProperty(String propName) {
        assertComplete();

        switch (propName) {
            case Sasl.QOP:
                return selectedQop.getName();
            case Sasl.MAX_BUFFER:
                return Integer.toString(actualMaxReceiveBuffer != 0 ? actualMaxReceiveBuffer : configuredMaxReceiveBuffer);
            case Sasl.RAW_SEND_SIZE:
                return Integer.toString(maxBuffer);
        }

        return null;
    }
{code}

This coverity report is not caused by recent change in AbstractGssapiMechanism but rather Gs2SaslServer and DigestSaslServer

[1] https://scan7.coverity.com/reports.htm#v23632/p11778/fileInstanceId=44847684&defectInstanceId=9457508&mergedDefectId=1463150



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list