[jboss-jira] [JBoss JIRA] (ELY-1521) Coverity, SpnegoContext is Serializable; consider declaring a serialVersionUID

Martin Choma (JIRA) issues at jboss.org
Wed Feb 21 02:02:00 EST 2018


Martin Choma created ELY-1521:
---------------------------------

             Summary: Coverity, SpnegoContext is Serializable; consider declaring a serialVersionUID
                 Key: ELY-1521
                 URL: https://issues.jboss.org/browse/ELY-1521
             Project: WildFly Elytron
          Issue Type: Bug
          Components: Authentication Mechanisms
    Affects Versions: 1.2.1.Final, 1.3.0.CR1
            Reporter: Martin Choma


New class SpnegoContext is Serializable, but does not define serialVersionUID explicitely.

{code}
/src/main/java/org/wildfly/security/http/impl/SpnegoAuthenticationMechanism.java: 466 in ()
460             } catch (AuthenticationMechanismException e) {
461                 throw e.toHttpAuthenticationException();
462             } catch (UnsupportedCallbackException ignored) {
463             }
464         }
465
>>>     CID 1465386:  FindBugs: Bad practice  (FB.SE_NO_SERIALVERSIONID)
>>>     org.wildfly.security.http.impl.SpnegoAuthenticationMechanism$SpnegoContext is Serializable; consider declaring a serialVersionUID.
466         private static class SpnegoContext implements Serializable {
467             transient GSSContext gssContext;
468             transient KerberosTicket kerberosTicket;
469         }
470
{code}


[1] https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRYZquIFszCcwQkbx6rX2y-2BU3cXaE6CARUgniXZ7-2Bnr5WUQSJUaqvnVjrZTiOPiZUjE4gHFruUvUWirJK4uYfLLJ_2fPkMU1miRf-2FtjnMal9VVM35TqEfZozw4WTtk2YIMAIQ7ZX-2FrqN52DKamGWKkc-2BZ03nPXlDJ8513Hxh3bIGgozWV-2Br58G9cuPIcBSTZ0sZKFnBORW-2FVQq-2FlhVvsXloi5sz0yTu3g4X7ubZS16dIlMfNaHUR5ruCrctY-2B3N8QkrhuWYcGTEnDzc6FCrtIbD-2FEv9t7uYGSACfKYaHRPZEUVQ-3D-3D



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


More information about the jboss-jira mailing list