Skip to content

chore(license): adopt the upstream 9.4 licence and per-file modification notices - #158

Merged
juliusknorr merged 46 commits into
mainfrom
licence/9.4
Dec 4, 2026
Merged

juliusknorr merged 46 commits into
mainfrom
licence/9.4

Conversation

@juliusknorr

@juliusknorr juliusknorr commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Upstream ONLYOFFICE relicensed with 9.4: AGPL-3.0-only with new additional terms. The logo clause is dropped, modified versions must say so and keep a record of changes, and the About must show the notices. This PR moves the repo to that licence and adds the required notices.

  • Restore Ascensio's original file headers that an earlier commit had stripped
  • Cherry-pick upstream's 9.4 licence commits (-x, licence files and headers only, no code)
  • Mark every file we changed with "Modified by Euro-Office contributors, see MODIFICATIONS.txt" and SPDX-FileCopyrightText: Euro-Office contributors after the upstream header; files we added get the SPDX pair only
  • REUSE.toml for files that can't hold a notice (vendored, generated)
  • MODIFICATIONS.txt: a note linking the git history. Release builds generate the full dated record
  • .github/workflows/licence.yml: gate PRs and default-branch pushes (missing or broken notices, changed licence files)
  • Packaging: ship LICENSE, LICENSE-CC, NOTICE, the combined MODIFICATIONS.txt and the third-party notices, Chromium credits, CEF/Qt/FFmpeg source offers
  • NOTICE names the exact source of a build when given BUILD_COMMITS: version, product repo commit and each component commit; the CEF/Qt/FFmpeg offers refer to that version. Without it (local builds) the generic org link stays
  • About: the start page shows the Qt and FFmpeg notices and licence locations
  • Windows version info and macOS copyright string use the NOTICE wording
  • macOS About copyright (NSHumanReadableCopyright, all locales): one English string that keeps Ascensio's copyright, "Copyright © Ascensio System SIA, Euro-Office contributors. Based on the original ONLYOFFICE software developed by Ascensio System SIA."
  • README: ONLYOFFICE attribution and licence terms

Attribution wording: "based on the original ONLYOFFICE software developed by Ascensio System SIA".

Tests: the licence gate and modrecord --note --check pass. Repo licence tests: package/test/licence-metadata.sh (CI package-licence.yml). The Licence notices check fails until Euro-Office/.github#41 lands.

Land together with: Euro-Office/core#536, Euro-Office/sdkjs#312, Euro-Office/web-apps#524, Euro-Office/server#96, Euro-Office/sdkjs-forms#9, Euro-Office/desktop-sdk#69, Euro-Office/document-server-package#41, Euro-Office/document-server-proxy#3, Euro-Office/Docker-DocumentServer#2, Euro-Office/DesktopEditors#434, Euro-Office/DocumentServer#641

juliusknorr and others added 30 commits December 3, 2026 12:52
Revert the Section 7 header strip from 321b405 on the files that
still exist upstream, so upstream's header update applies on top
unchanged. Files under macos/Euro-Office count by their upstream path
under macos/ONLYOFFICE.

Kept as they are: files we deleted, and the Linux platform files we
split out of upstream files (linux_window_utils, platformbackendfactory,
cplatformdecoration), which upstream doesn't have.

This reverts part of commit 321b405.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Co-authored-by: Alexander Trofimov <alexander.trofimov@onlyoffice.com>
Co-committed-by: Alexander Trofimov <alexander.trofimov@onlyoffice.com>
(cherry picked from commit ebc6195)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
(cherry picked from commit f2cb956)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
…source LICENSE.rtf

(cherry picked from commit e5304c5)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
(cherry picked from commit ced682d)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
(cherry picked from commit 39d92db)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Co-authored-by: Alexander Trofimov <alexander.trofimov@onlyoffice.com>
Co-committed-by: Alexander Trofimov <alexander.trofimov@onlyoffice.com>
(cherry picked from commit 6339985)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
linux_window_utils and cplatformdecoration started as renames of
upstream files (xcbutils.h, cx11caption.cpp, cx11decoration.*), and
platformbackendfactory.cpp carries the same Ascensio header. Upstream's
header update reached them only as a conflict, so give them the 9.4
header their upstream sources now have. Code is unchanged.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Declares the licence of files that must not get our notices: vendored and generated code and file types that can't hold a comment. The header gates skip annotated paths.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
macos/apply-branding.sh is ours: it gets the SPDX pair, not the block.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Linux packages get the combined record of core, sdkjs, web-apps,
sdkjs-forms, desktop-sdk, desktop-apps and DesktopEditors (SOURCE_ROOT,
default ../..) next to NOTICE. The notices target renders both for the
Windows and macOS payload, and the macOS app copies them into
Contents/Resources. A missing record fails the build. NOTICE and
debian/copyright point to it.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
The 9.4 LICENSE carries the 7(b) notice and 7(e) trademark terms again, so the check that they are absent failed. It now requires both in debian/copyright and the shipped LICENSE.txt and still rejects the dropped logo term.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
The notices target also emits LICENSE, LICENSE-CC.txt and 3DPARTYLICENSE, so the Windows zip, Inno installer and MSI get all five files from the payload root, and the macOS app copies them into Contents/Resources. Inno, the MSI and the Linux /opt tree no longer add their own LICENSE.txt next to the payload's LICENSE; Inno removes the one an older install left. The licence metadata test checks the notices output, every list of the payload files and that no package installs a second licence copy.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
(cherry picked from commit 478768b)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
(cherry picked from commit 07aef27)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
(cherry picked from commit f93230c)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
…RTYLICENSE

3DPARTYLICENSE in the Linux packages and the Windows and macOS payload now
appends core's 3DPARTY.md and LICENSES/ to the desktop list, so the
libraries the converter links get their notices too.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
- AGPL-3.0-only with the Section 7 additional terms of the LICENSE file
- the CC BY-SA 4.0 legal code URL next to LICENSE-CC.txt
- contributor copyright from 2025, when our changes start
The source pointer stays the org link: the m4 does not know whether a build
is a tagged release.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
…n't parse

The .ps1, .spec, .m4 and .iss files we changed carry no upstream header, so
the stamp skips them. Add our block in their own comment syntax: dnl in m4,
so the generated files stay the same, // in the [Code] include, ; in the
other Inno files, # elsewhere. The licence metadata test checks them.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Runs the header gates of licence-modification-tooling through the organization's licence action (workflow template licence.yml) on pull requests to and pushes of main.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: CI config, proven by running the gate commands locally
CEF's CREDITS.html lists the licences of the Chromium components in libcef. Install it as LICENSES.chromium.html next to 3DPARTYLICENSE: the CMake install for the Windows installers, zip and Linux /opt, /usr/share/licenses in the Linux packages, and Contents/Resources in the macOS app (staged by desktop-sdk). NOTICE points to it.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: CI path filter
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
NOTICE names the CEF and Chromium version and offers the corresponding source of the LGPL-2.1 and MPL-2.0 components listed in LICENSES.chromium.html. The test checks the offer and, with a core checkout, that the version matches core's CEF pin.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
The Makefile reads cef_version from core's Common/3dParty/cef/nc-build.py and passes the CEF and Chromium versions to m4, so the source offer follows a CEF bump. A missing version fails the build.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
…ight

The 9.4 LICENSE has no Section 7(a) term any more, so debian/copyright
no longer repeats the old non-infringement sentence. The metadata test
now fails if it comes back.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
NSHumanReadableCopyright now says "based on the original ONLYOFFICE
software developed by Ascensio System SIA", as NOTICE and term 2 of the
9.4 LICENSE do. The English strings change; the 42 translations keep
their wording until they are retranslated. The metadata test checks the
English wording.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
The CompanyName field of editors.exe, DesktopEditors.exe and the update
service named Ascensio System SIA as publisher. It now says Euro-Office,
as the installer's sCompanyName does. The copyright string keeps
Ascensio System SIA next to Euro-Office contributors. The metadata test
checks the company name.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
The CC BY-SA stanza for images named Ascensio System SIA for all
images, our own logos included. A later stanza now names Euro-Office
contributors as holder of our logos, under their real licence. The
metadata test checks the stanza and that it follows the CC BY-SA one.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Same wording as the DocumentServer and DesktopEditors READMEs: the attribution to Ascensio System SIA, the Section 7 additional terms in LICENSE and a pointer to MODIFICATIONS.txt.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: README text only
Stamped with licence-modification-tooling 624f487 (relicence.sh).

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
@juliusknorr juliusknorr changed the title chore(license): adopt the ONLYOFFICE 9.4 licence and per-file modification notices chore(license): adopt the upstream 9.4 licence and per-file modification notices Dec 3, 2026
@juliusknorr
juliusknorr marked this pull request as ready for review December 3, 2026 18:45

@rikled rikled left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Only question: licence.yml runs fork PRs on [self-hosted, ubuntu-latest] while our other PR workflows use GitHub-hosted runners. Intended?

The gate only needs git and Python 3.11+, so it does not need the few
self-hosted runners, and fork PRs then don't run on them.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: CI config, proven by the licence check on this PR
@juliusknorr

Copy link
Copy Markdown
Member Author

Not intended, switched to ubuntu-latest, thanks.

The rebrand replaced NSHumanReadableCopyright in Info.plist and the
InfoPlist.strings of every locale with a translated "Euro-Office is based
on ONLYOFFICE by Ascensio System SIA", which dropped Ascensio's copyright
notice from the About window. Use one English string everywhere that keeps
it and names the Euro-Office contributors.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Follows the new NSHumanReadableCopyright wording and checks Info.plist and
every InfoPlist.strings that sets the key, so a translated string without
Ascensio's copyright fails the test.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
With BUILD_COMMITS ("DesktopEditors=<sha> core=<sha> ...", product repo
first), NOTICE names the version, the product repo commit and the commit of
each component, and ties the written offers to that version. Without it,
as in local Windows and macOS builds, NOTICE keeps the generic org link.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: README change only
@juliusknorr
juliusknorr merged commit 7b634b0 into main Dec 4, 2026
7 checks passed
@juliusknorr
juliusknorr deleted the licence/9.4 branch December 4, 2026 14:45
@juliusknorr juliusknorr added the upstream Also affects ONLYOFFICE upstream, or comes from an upstream change label Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore desktop Desktop apps on all operating systems packages upstream Also affects ONLYOFFICE upstream, or comes from an upstream change

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

4 participants