Project

General

Profile

Actions

Bug #6950

closed

Auto Config Backup always reports success

Added by Steve Wheeler over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
AutoConfigBackup
Target version:
Start date:
11/22/2016
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Affected Version:
All
Affected Plus Version:
Affected Architecture:
All

Description

The 'Backup Now' function always reports 'Backup completed successfully.' even if the backup to the server failed. If the login credentials are bad for example.

It would be better to report the actual logged output there since that function is really only used for diagnostic purposes. Incorrectly reporting success is just confusing.

Actions #1

Updated by Jim Thompson over 7 years ago

  • Assignee set to Anonymous
Actions #2

Updated by Kill Bill over 7 years ago

I just removed the misleading "success" noise as part of https://github.com/pfsense/FreeBSD-ports/pull/234 - as noted there, there's nothing relevant to check for success in the code there. Any status reporting would need to be done elsewhere.

Actions #3

Updated by Kill Bill over 7 years ago

Well, actually there's some output needed no matter what, to provide some indication that the Backup button works. Redid the thing checking for write_config() result, that should at least report a failure for users with user-config-readonly priv.

Actions #4

Updated by Renato Botelho over 7 years ago

  • Status changed from New to Feedback
  • Assignee changed from Anonymous to Renato Botelho
  • % Done changed from 0 to 100

PR has been merged. Thanks!

Actions #5

Updated by Kill Bill about 7 years ago

Works (at least for cases where write_config() returns false, and there's not really much else that could be done here.)

Actions #6

Updated by Renato Botelho about 7 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF