Skip to content

rollback_allowed breaks the server (lacks support for protocol V3.1?) #51

@thebabush

Description

@thebabush

I'm testing some of the update-related policies for Brave, and in order to do that I tried to downgrade.

However, the server returns a "Bad Request" when rollback_allowed="true" in <updatecheck/>.

Example:

curl --verbose \
  'https://updates.bravesoftware.com/service/update2' \
  --data '<?xml version="1.0" encoding="UTF-8"?><request protocol="3.0" updater="Omaha" updaterversion="1.3.361.111" shell_version="1.3.361.111" ismachine="1" sessionid="XXX" installsource="update3web-ondemand" testsource="auto" requestid="XXX" periodoverridesec="1920" dedup="cr" domainjoined="1"><hw physmemory="8" sse="1" sse2="1" sse3="1" ssse3="1" sse41="1" sse42="1" avx="1"/><os platform="win" version="XXX" sp="" arch="x64"/><app appid="{AFE6A462-C574-4B8A-AF43-4CC60DF4563B}" version="99.1.36.122" nextversion="" ap="x64-rel" lang="" brand="GGLS" client="" installage="0" installdate="5565"><updatecheck rollback_allowed="true" targetversionprefix="99.1.36.122"/><ping rd="5566" ping_freshness="XXX"/></app></request>'

^ This fails

curl --verbose \
  'https://updates.bravesoftware.com/service/update2' \
  --data '<?xml version="1.0" encoding="UTF-8"?><request protocol="3.0" updater="Omaha" updaterversion="1.3.361.111" shell_version="1.3.361.111" ismachine="1" sessionid="XXX" installsource="update3web-ondemand" testsource="auto" requestid="XXX" periodoverridesec="1920" dedup="cr" domainjoined="1"><hw physmemory="8" sse="1" sse2="1" sse3="1" ssse3="1" sse41="1" sse42="1" avx="1"/><os platform="win" version="XXX" sp="" arch="x64"/><app appid="{AFE6A462-C574-4B8A-AF43-4CC60DF4563B}" version="99.1.36.122" nextversion="" ap="x64-rel" lang="" brand="GGLS" client="" installage="0" installdate="5565"><updatecheck targetversionprefix="99.1.36.122"/><ping rd="5566" ping_freshness="XXX"/></app></request>'

^ This works

Updater protocol reference: LINK

P.S.: I would gladly avoid rollbacks, but instances of brave installed from a standalone installer don't seem to be able to update correctly. (EDIT: I might have downloaded a non-release setup.exe, so this might be on me)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions