Skip to content

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

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

juliusknorr wants to merge 24 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 upstream's LICENSE text before applying the 9.4 terms
  • 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)
  • Packaging: ship LICENSE, LICENSE-CC, NOTICE (with the written source offer), the combined MODIFICATIONS.txt and the third-party notices; debian/copyright names the 9.4 terms and gives our logos their own stanza
  • Windows installer licence generated from LICENSE; LICENSE also ships as web-apps/LICENSE.txt for the About

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: 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/desktop-apps#158, 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 12:52
Revert the Section 7 strip from 95b9e58 on LICENSE so upstream's
licence commit applies on top unchanged.

deb/template/copyright.m4 keeps our version: it has been rewritten
since and no longer carries upstream's header block.

This reverts part of commit 95b9e58.

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 97b8ca1)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
(cherry picked from commit 93f5a7c)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
The installer showed the old AGPL text. Upstream's RTF carries their branding and an SLA link, so the RTF is now LICENSE as monospace text, including the additional terms and the CC BY-SA term.

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
The documentserver recipe combines the records of core, sdkjs, web-apps,
server, sdkjs-forms and this repo (SOURCE_ROOT, default ..) into one
MODIFICATIONS.txt in the home directory, so deb, rpm and exe ship it.
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 and still rejects the dropped logo term.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
The documentserver bundle appends core's 3DPARTY.md to 3rd-Party.txt and
copies core's LICENSES/ to license/core/, so the libraries x2t links get
their notices in the deb, rpm, exe and the images built from them.

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
…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
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
Our AdminPanel logos still fell under Ascensio's CC BY-SA stanza, and
the welcome logo's licence differed from the brand repository's. Both
now get the brand repository's expression, AGPL-3.0-only AND
Apache-2.0, since branded builds replace them with logos that contain
a Material Symbols glyph. The metadata test checks the stanza.

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

The stanza points to the Material Symbols stanza for the Apache-2.0 text.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
test/licence-metadata.sh ran in no workflow. It now runs on pull requests and pushes to main that touch the packaging files.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
No-test: CI config, the test it runs passes locally
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
Dev and nightly packages ship the MODIFICATIONS.txt note, only release builds the full dated record. NOTICE and debian/copyright now say so, as the About does.

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

nginx already serves web-apps/ (ds-docservice.conf), so the About can link the licence on air-gapped installs. The .txt name gets a text/plain type from mime.types.

Signed-off-by: Julius Knorr <jus@bitgrid.net>
Assisted-by: ClaudeCode:claude-opus-5-5
… server's npm packages

3rd-Party.txt held only the server's hand-kept list and core's. It now also gets the lists of web-apps and sdkjs with their texts in license/web-apps/ and license/sdkjs/, and the list of the npm packages the server build bundles, whose texts the server build puts in license/server/.

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

3DPARTY.md links LICENSES/ in its repository; the packages install those texts in license/<repo>/.

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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants