Skip to content

webui becomes unresponsive when trying to restore when a deleted client exists #1851

@sebsura

Description

@sebsura

Bareos component version

24.0.0 (master)

Steps to reproduce

  1. Run a backup job on client 1
  2. change name of client 1 to client 2 in the configuration
  3. reload the configuration
  4. in webui restore select client 2

Expected results

I can select both client 1 and client 2 as source client, and selecting them does what one expects (i.e. you can select jobs)

Actual results

You can only select client 2 and doing so causes the webui to become unresponsive.
Screenshots_59
trace.zip

Environment

No response

Relevant log output

Firefox console:

NS_ERROR_NOT_IMPLEMENTED: Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIAppStartup.secondsSinceLastOSRestart]
    _collectStartupConditionsTelemetry resource:///modules/BrowserGlue.sys.mjs:1772
    BG__onFirstWindowLoaded resource:///modules/BrowserGlue.sys.mjs:1880
    BG_observe resource:///modules/BrowserGlue.sys.mjs:1102
    _delayedStartup chrome://browser/content/browser.js:2116
BrowserGlue.sys.mjs:1781:15
    _collectStartupConditionsTelemetry resource:///modules/BrowserGlue.sys.mjs:1781
    BG__onFirstWindowLoaded resource:///modules/BrowserGlue.sys.mjs:1880
    BG_observe resource:///modules/BrowserGlue.sys.mjs:1102
    _delayedStartup chrome://browser/content/browser.js:2116
TypeError: linkMap is undefined
    Links_onLinkChanged resource://gre/modules/NewTabUtils.sys.mjs:2003
    PlacesProvider__callObservers resource://gre/modules/NewTabUtils.sys.mjs:697
    handlePlacesEvents resource://gre/modules/NewTabUtils.sys.mjs:679
NewTabUtils.sys.mjs:699:19
    PlacesProvider__callObservers resource://gre/modules/NewTabUtils.sys.mjs:699
    handlePlacesEvents resource://gre/modules/NewTabUtils.sys.mjs:679
update.locale  file doesn't exist in either the application or GRE directories UpdateUtils.sys.mjs:143:13
    getLocale resource://gre/modules/UpdateUtils.sys.mjs:143
LoginManagerPrompter: Couldn't process supplied URIString: http://localhost:30036 6 LoginManagerPrompter.sys.mjs:999:16
Missing resource in locale de: devtools/client/toolbox.ftl

I created a trace and uploaded it as a zip in the results section (i cannot do so here)
The webui link ended in:

restore/?jobid=&client=bareosfd2&restoreclient=&restorejob=&where=&pluginoptions=&fileset=&mergefilesets=1&mergejobs=1&limit=2000

Relevant traces output

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugThis addresses a bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions