VirtualBox

Changeset 94736 in vbox


Ignore:
Timestamp:
Apr 28, 2022 1:26:10 PM (3 years ago)
Author:
vboxsync
Message:

Main/Update check: Prevent overwriting the agent's default repo URL on loading settings when XML settings are empty. bugref:7983

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/UpdateAgentImpl.cpp

    r94730 r94736  
    651651    m->enmChannel        = data.enmChannel;
    652652    m->uCheckFreqSeconds = data.uCheckFreqSeconds;
    653     m->strRepoUrl        = data.strRepoUrl;
     653    if (data.strRepoUrl.isNotEmpty()) /* Prevent overwriting the agent's default URL when XML settings are empty. */
     654        m->strRepoUrl    = data.strRepoUrl;
    654655    m->enmProxyMode      = data.enmProxyMode;
    655656    m->strProxyUrl       = data.strProxyUrl;
     
    867868{
    868869    RT_NOREF(pTask);
     870
     871    AssertReturn(m->strRepoUrl.isNotEmpty(), E_INVALIDARG);
    869872
    870873    // Following the sequence of steps in UIUpdateStepVirtualBox::sltStartStep()
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette