Skip to content
Snippets Groups Projects
  1. Aug 30, 2020
  2. Aug 21, 2020
  3. Dec 24, 2019
  4. Oct 01, 2019
  5. Sep 24, 2019
  6. Sep 16, 2019
    • Jaime Pérez Crespo's avatar
      Remove superfluous log message · 512b9cf3
      Jaime Pérez Crespo authored
      If we reach this point, we're likely already logging the error somewhere else (i.e. the session handler in use), so there's no point on logging the exception's message again.
      512b9cf3
  7. Aug 31, 2019
  8. Aug 29, 2019
    • Jaime Pérez Crespo's avatar
      Make sure we respect log message order · 014992c8
      Jaime Pérez Crespo authored
      When we are logging something and the logger hasn't been initialized, the messages are deferred and flushed by a shutdown handler. However, when we initialize a session, we set the track ID in the logger, effectively initializing it with everything we need. When we log something and then load the session (or create it), any subsequent logs will be dumped, but the deferred logs will wait until shutdown, changing the order in which they were emitted.
      
      This patch makes sure we flush the deferred logs as soon as we have a track ID (can either be set manually or by, most typically, loading a session). That way, we get those logs out as soon as we can, and subsequent logs entries will be dumped afterwards, keeping their relative order.
      
      This closes #1107
      Unverified
      014992c8
  9. Aug 28, 2019
  10. Jun 06, 2019
  11. Feb 03, 2019
  12. Jan 10, 2019
  13. Oct 17, 2018
  14. May 31, 2018
  15. May 22, 2018
  16. Apr 13, 2018
  17. Dec 08, 2017
  18. Oct 25, 2017
  19. Oct 19, 2017
  20. Nov 03, 2016
  21. Jul 04, 2016
    • Jaime Pérez's avatar
      bugfix: Make sure SimpleSAML_Session::getSessionFromRequest() always raises an... · 52c6bf04
      Jaime Pérez authored
      bugfix: Make sure SimpleSAML_Session::getSessionFromRequest() always raises an exception when a transient session is used due to a misconfiguration or a temporary failure fetching an existing session.
      
      Transient sessions are just an exceptional event, and they shouldn't be treated as regular sessions. Therefore, if we are trying to get the current session and end up with a transient one, that's because an error occurred and we should raise an exception. Since exceptions due to secure cookies trying to be set via an insecure channel are likely to be misconfigurations, we treat them like that, raising a SimpleSAML\Error\CriticalConfigurationError.
      
      Additionally, we capture exceptions in the SimpleSAML\Logger::flush() method, ensuring the error reported in #413 doesn't happen again.
      
      This resolves #356.
      52c6bf04
  22. May 20, 2016
  23. Apr 04, 2016
  24. Apr 01, 2016
  25. Mar 31, 2016
  26. Feb 26, 2016
  27. Nov 06, 2015
  28. Oct 27, 2015
    • Jaime Perez Crespo's avatar
      Prevent the SimpleSAML_Logger class from creating loops while trying to get... · 3466f176
      Jaime Perez Crespo authored
      Prevent the SimpleSAML_Logger class from creating loops while trying to get the track ID from the session. It must now be set manually by calling SimpleSAML_Logger::setTrackID(). Also allow SimpleSAML_Memcache to differentiate between a key not found in memcache and a request to memcache failed. If all servers are down, an exception is thrown and the user informed about the internal error. This hopefully resolves #264.
      3466f176
  29. Aug 05, 2015
  30. Jul 31, 2015
  31. Jul 08, 2014
Loading