dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
3fe42d7
)
Merge "[FileBackend] Made Swift clear the auth cache on certain HTTP errors."
author
Catrope
<roan.kattouw@gmail.com>
Tue, 28 Aug 2012 21:13:05 +0000
(21:13 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Tue, 28 Aug 2012 21:13:05 +0000
(21:13 +0000)
includes/filebackend/SwiftFileBackend.php
patch
|
blob
|
history
diff --git
a/includes/filebackend/SwiftFileBackend.php
b/includes/filebackend/SwiftFileBackend.php
index
960d71c
..
9c111c9
100644
(file)
--- a/
includes/filebackend/SwiftFileBackend.php
+++ b/
includes/filebackend/SwiftFileBackend.php
@@
-1297,6
+1297,9
@@
class SwiftFileBackend extends FileBackendStore {
if ( $e->getMessage() ) {
trigger_error( "$func: " . $e->getMessage(), E_USER_WARNING );
}
+ if ( $e instanceof InvalidResponseException ) { // possibly a stale token
+ $this->srvCache->delete( $this->getCredsCacheKey( $this->auth->username ) );
+ }
wfDebugLog( 'SwiftBackend',
get_class( $e ) . " in '{$func}' (given '" . FormatJson::encode( $params ) . "')" .
( $e->getMessage() ? ": {$e->getMessage()}" : "" )