Skip to content

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

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

juliusknorr merged 19 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
  • Files outside the 9.4 pin (3) get their last upstream header back verbatim (tooling keepHeader list); our notice dropped where the file now equals upstream (3)
  • 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)
  • Header generators emit upstream's 9.4 header
  • Third-party: ship the licence texts listed in 3DPARTY.md
  • README: ONLYOFFICE attribution and licence terms

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: build/test/3dparty-licences.test.cjs. The Licence notices check fails until Euro-Office/.github#41 lands.

Land together with: Euro-Office/core#536, 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
juliusknorr force-pushed the licence/9.4 branch 2 times, most recently from 9a7aa00 to 7865e6e Compare December 3, 2026 14:56
@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:44
@juliusknorr
juliusknorr requested a review from a team as a code owner December 3, 2026 18:44
@juliusknorr
juliusknorr requested review from rikled and removed request for a team December 3, 2026 18:44

@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?

@juliusknorr

Copy link
Copy Markdown
Member Author

Not intended, switched to ubuntu-latest, thanks.

juliusknorr and others added 7 commits December 4, 2026 10:53
Revert the Section 7 header strip from 9ea562a on the files that
still exist upstream, so upstream's header update applies on top
unchanged.

Kept as they are: files we deleted since (build/Gruntfile.js and the
build/deserializer scripts) and the custom-text-annotator files, which
upstream no longer has.

This reverts part of commit 9ea562a.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Julius Knorr <jus@bitgrid.net>
(cherry picked from commit ef4bcc6)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
not_our_header=0 replaced=744 no_header=2 vendor=3 already_new=0 errors=0

(cherry picked from commit 8088a11)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
tools/update_color_schemes.py and common/bidi/generate-types.py still
wrote the pre-9.4 header with the Section 7(b) logo clause, so a
regenerated common/Shapes/ColorSchemes.js or common/bidi/unicode-data.js
would bring the old terms back. Both now write the header those files
carry since upstream's header update.

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
Our own files build/dummy.js, tests/common/api/api-compiled.js,
tests/word/drawings/groupShapeTables.js, tests/word/styles/tableStylesWrite.js
and the test pages tests/common/api/api-slide.html and api-visio.html get the
SPDX pair in place of the header they were written with, or none.
tests/cell/spreadsheet-calculation/CheckboxTests.js and OpenRecalcTests.js,
adapted from upstream tests, get Ascensio's 9.4 header verbatim plus our block.

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
New files get the SPDX pair, changed upstream files keep upstream's
header and get our "Modified by" block. The note that the fork removed
LV-1050 from every header is no longer true with the 9.4 headers.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: agent guidance only
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: docs only
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
Each 3DPARTY.md entry links its text in LICENSES/, taken from the upstream licence file at the tag the vendored copy matches, or for copies of unknown version at the commit the licence file had when it was vendored. jquery_native.js is gone, so its entry goes too. A build test checks every entry links an existing text.

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
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
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
It was added here, not changed from an upstream file, so it carries the SPDX pair instead of the modification notice.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: licence notice only, checked by the licence gate
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: README change only
@juliusknorr
juliusknorr merged commit b723ecd into main Dec 4, 2026
7 checks passed
@juliusknorr
juliusknorr deleted the licence/9.4 branch December 4, 2026 14:44
@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 upstream Also affects ONLYOFFICE upstream, or comes from an upstream change

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

3 participants