Skip to content

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

Draft
juliusknorr wants to merge 21 commits into
mainfrom
licence/9.4
Draft

juliusknorr wants to merge 21 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, clean-room)
  • 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)
  • Third-party: licence texts in LICENSES/ for every library in 3DPARTY.md, entries point at the pinned versions

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

Tests: the licence gate passes on this branch, modrecord --note --check passes. Repo licence tests: scripts/test_3dparty_licences.py. The Licence notices check fails until Euro-Office/.github#41 lands.

Land together with: 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/desktop-apps#158, 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 21 commits December 3, 2026 13:38
Revert the Section 7 header strip from e452ace on the files that
still exist upstream, so upstream's header update applies on top
unchanged. Also drop the SPDX lines we put in front of upstream's
header in xlsx_numFmts.cpp and odf_number_styles_context.cpp.

Kept as they are: files we deleted since, files upstream no longer has
(the fontengine, hunspell, hyphen, xmlsec and zlib wasm sources), and
PdfFile/test/test.cpp, which we rewrote with our own tests.

This reverts part of commit e452ace.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Julius Knorr <jus@bitgrid.net>
(cherry picked from commit df08ed4)
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 76ee07f)
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, clean-room lanes 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
Common/js/stringserialize.js, copied from sdkjs, gets sdkjs's 9.4 header
plus our block. The CxImage and libpsd files we changed keep our block,
although REUSE.toml declares their own licences, so the stamp skips them.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Each text comes untouched from the library's own repository at the version the build scripts fetch, so it carries the project's copyright lines. 3DPARTY.md links every library to its text and to that source; the personal fork links pointed to a GitHub account that does not exist, the build fetches upstream. mdds is MIT, hunspell and hyphen are MPL-1.1/GPL/LGPL tri-licensed.

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
The default branch pins hyphen to c281a33 in nc-build.py. Its COPYING and the licence
files are unchanged since 3fb46d9, so LICENSES/LicenseRef-hyphen.txt stays.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: docs link only, the 3DPARTY test checks the text exists
… they are

FTL.txt comes from freetype 37515cf docs/FTL.TXT, libtiff.txt from libtiff v4.7.2 LICENSE.md, the refs the build uses.

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

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
nc-build.py fetches hyphen at the pinned commit; nothing calls nc-fetch.sh.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
The organization licence action no longer takes a token: the tooling is public. The workflow matches the .github template again.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
Our SPDX pair names no year, as the stamp writes it.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
No-test: header text only, the licence gate covers the SPDX pair
Assisted-by: ClaudeCode:claude-opus-5-5
A merge left its path in the input_sheets_macro annotation, so REUSE.toml had two path keys in one table and no longer parsed.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: REUSE.toml data, the licence gate parses it
The socket.io replacement put its SPDX lines above the upstream header of socketio_internal.h, socketio_internal_private.h and socketio_internal_private_no_tls.h. Move them below it, unchanged, so the upstream header leads again.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: header order only, the licence gate's retention check covers it
harfbuzz/nc-build.py now builds tag 8.5.0. COPYING at 8.5.0 is identical to the text in LICENSES/. The test checks that every linked version is pinned by an nc-build.py; all other entries already match.

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: header-only change; the relicence.sh header gates check the upstream headers and our block

#420 added SPDX lines with Ascensio's 2010-2023 years to the socketio sources. In the three headers they now follow upstream's 9.4 header and our block, so they only contradict upstream's 2009-2026. socketio_internal_private.cpp, code #420 moved out of upstream's header, gets upstream's 9.4 header in place of the pre-9.4 one (with the dropped Section 7(a) clause) and our block.
A substring match let a short version such as 8.5 pass for 8.5.0. The version now has to be a whole quoted string in an nc-build.py, or the start of a pinned commit hash or of CEF's version.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
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

This branch was previously deployed

1 inactive deployment
build-cache — 3f027393 Deployed Dec 3, 2026 by juliusknorr via publish / publish #1364
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants