fix(R-1218, R-1219): stage the off-site password when its file exists; no recovery ceremony during a recovery offer
R-1218: escrowStart stages when OffboxRepoPasswordOnBox() (not OffboxConfigured()). R-1219: the top bar hides during an offer; the start handler answers 409 (api.escrow.recovery_offer_open, hu+en) before staging. Red-proved. Commit only.
This commit is contained in:
@@ -53,6 +53,11 @@ func (s *Server) escrowBannerVisible(r *http.Request) bool {
|
||||
if r == nil || !s.hasAdminSession(r) || !s.escrowPaused() {
|
||||
return false
|
||||
}
|
||||
// R-1219: during a recovery offer a NEW code would replace the key that opens the old off-site copy (R-199) — the
|
||||
// backups page hides the ceremony then, and so does this bar. Pinned by TestR1219_NoCeremonyDuringARecoveryOffer.
|
||||
if s.recoveryOffer() {
|
||||
return false
|
||||
}
|
||||
// R-546: while the agent says the ceremony cannot run yet, do not urge the household into it.
|
||||
// Unknown readiness keeps the bar (fail loud).
|
||||
if ready, known := s.escrowReadiness(r.Context(), false); known && !ready {
|
||||
|
||||
Reference in New Issue
Block a user