From 050c598dda24e403b8410f1ea1ed8f353dd469ad Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Wed, 11 Nov 2026 18:06:26 +0100 Subject: [PATCH 01/28] chore(license): restore upstream licence text before the 9.4 terms Revert the Section 7 strip from 95b9e588ae 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 95b9e588ae84f18408ab0c99babc1a100dae76e3. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Julius Knorr --- LICENSE | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/LICENSE b/LICENSE index 7efedc1..870ad61 100644 --- a/LICENSE +++ b/LICENSE @@ -645,10 +645,18 @@ the "copyright" line and a pointer to where the full notice is found. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . + You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish + street, Riga, Latvia, EU, LV-1050. + The interactive user interfaces in modified source and object code version of the Program must display Appropriate Legal Notices, as required under Section 5 of the GNU AGPL version 3. + Pursuant to Section 7(b) of the License you must retain the original + Product logo when distributing the program. Pursuant to Section 7(e) we + decline to grant you any rights under trademark law for use of our + trademarks. + Also add information on how to contact you by electronic and paper mail. If your software can interact with users remotely through a computer From 5118f8e43906122736964c5198ea0204682f500c Mon Sep 17 00:00:00 2001 From: Alexander Trofimov Date: Wed, 6 May 2026 19:38:06 +0000 Subject: [PATCH 02/28] chore(license): update LICENSE with restructured AGPLv3 additional terms Co-authored-by: Alexander Trofimov Co-committed-by: Alexander Trofimov (cherry picked from commit 97b8ca12c2cc80a8345b361e0b051c9751c2b9fa) Signed-off-by: Julius Knorr --- LICENSE | 83 +++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 69 insertions(+), 14 deletions(-) diff --git a/LICENSE b/LICENSE index 870ad61..465d3e4 100644 --- a/LICENSE +++ b/LICENSE @@ -629,8 +629,8 @@ to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - ONLYOFFICE Docs Community Edition - Copyright (C) 2010-2026 Ascensio System SIA + + Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -645,18 +645,6 @@ the "copyright" line and a pointer to where the full notice is found. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . - You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish - street, Riga, Latvia, EU, LV-1050. - - The interactive user interfaces in modified source and object code - version of the Program must display Appropriate Legal Notices, as required - under Section 5 of the GNU AGPL version 3. - - Pursuant to Section 7(b) of the License you must retain the original - Product logo when distributing the program. Pursuant to Section 7(e) we - decline to grant you any rights under trademark law for use of our - trademarks. - Also add information on how to contact you by electronic and paper mail. If your software can interact with users remotely through a computer @@ -671,3 +659,70 @@ specific requirements. if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see . + +Copyright (C) 2009-2026 Ascensio System SIA + + This Program is licensed under the GNU Affero General Public +License v3.0 (AGPLv3), as supplemented by the terms set forth below. These +terms form an integral part of this License and shall be included in all +copies and distributions of the Program. They define conditions for the +exercise of rights granted under the License, including use, modification, +and distribution of the Program. + Pursuant to Section 7 of the License, the following terms supplement and +clarify the application of these conditions. Failure to comply with these +terms constitutes a violation of the License and may result in termination +of rights under Section 8 of the License. + + Additional Terms + + 1. Retention of Notices and Attribution. + Pursuant to Sections 4, 5, and 7(b) of the License, you must retain all +applicable copyright notices, license notices, warranty disclaimers, and +attribution or origin notices included in the Program. + + 2. Modification Notice Requirement. + + Modified versions of the Program must carry prominent notices stating that +they have been modified, including the date (or dates) of such modification, +and must clearly indicate that they are based on the original ONLYOFFICE +software developed by Ascensio System SIA. + + 3. Appropriate Legal Notices in User Interfaces. + Where the Program, or any modified version thereof, includes interactive +user interfaces, the required notices shall be displayed through a clearly +accessible and prominently visible user interface feature, in accordance +with the requirement to present Appropriate Legal Notices under Section 5 +of the License. Such notices must enable users to: + + (i) identify ONLYOFFICE as the original developer; + + (ii) understand that the version in use may be a modified version; and + + (iii) access the applicable license information. + + 4. No Trademark License. + + In accordance with Section 7(e) this License does not grant any rights to +use the trademarks, service marks, trade names, logos, or branding of the +Licensor. Any use of such trademarks is governed by the Licensor's +Trademark Policy, available at: + + + 5. Non-Code Content Licensing. + + Certain non-code elements included in the Program or its distribution, +including but not limited to illustrations, icon sets, and technical writing +or documentation content, are licensed under the Creative Commons +Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0). For the +avoidance of doubt, this license applies solely to such non-code content +and does not modify or replace the licensing terms applicable to the +Program's source code, which remains subject to the GNU Affero General +Public License v3.0 (AGPLv3). Nothing in this section limits any +obligation to retain copyright notices, attribution, origin information, or +Appropriate Legal Notices under the AGPLv3 and the additional terms +applicable to the Program. The full license text is available at: + + + You can contact Ascensio System SIA by electronic mail at: +info@onlyoffice.com and by postal mail at: 20A-6 Ernesta Birznieka-Upīša +Street, Riga, LV-1050, Latvia, European Union. From 6a7b4d097f25038ef7f13c9ae8d0d263c54dcc48 Mon Sep 17 00:00:00 2001 From: Alexander Trofimov Date: Wed, 13 May 2026 19:44:32 +0300 Subject: [PATCH 03/28] =?UTF-8?q?chore(license):=20use=20en=20Up=C4=AB?= =?UTF-8?q?=C5=A1a=20->=20Upisha?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 93f5a7c27e63ca5e92d4058ea4c2d9550f58df69) Signed-off-by: Julius Knorr --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 465d3e4..53bc62c 100644 --- a/LICENSE +++ b/LICENSE @@ -724,5 +724,5 @@ applicable to the Program. The full license text is available at: You can contact Ascensio System SIA by electronic mail at: -info@onlyoffice.com and by postal mail at: 20A-6 Ernesta Birznieka-Upīša +info@onlyoffice.com and by postal mail at: 20A-6 Ernesta Birznieka-Upisha Street, Riga, LV-1050, Latvia, European Union. From 8f3678d3e86016a6117d25b0b584a7ab8a4bd1f9 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Wed, 11 Nov 2026 21:26:17 +0100 Subject: [PATCH 04/28] chore(exe): generate the Windows installer licence from LICENSE 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 --- exe/license/community/LICENSE.rtf | 857 +++++++++++++++++++++++++----- 1 file changed, 730 insertions(+), 127 deletions(-) diff --git a/exe/license/community/LICENSE.rtf b/exe/license/community/LICENSE.rtf index 1120601..f4b68ff 100644 --- a/exe/license/community/LICENSE.rtf +++ b/exe/license/community/LICENSE.rtf @@ -1,128 +1,731 @@ -{\rtf1\ansi\ansicpg1252\deff0\nouicompat{\fonttbl{\f0\froman\fcharset128 Helvetica;}{\f1\froman\fcharset128 Liberation Serif;}{\f2\froman\fcharset0 Helvetica;}{\f3\froman\fcharset128 Courier;}} -{\colortbl ;\red0\green0\blue0;\red0\green0\blue255;} -{\*\generator Riched20 10.0.17763}\viewkind4\uc1 -\pard\nowidctlpar\sa180\cf1\kerning1\b\f0\fs28\lang1033 GNU AFFERO GENERAL PUBLIC LICENSE\b0\f1\fs24\par -\f0 Version 3, 19 November 2007\f1\par -\f0 Copyright \f2\'a9 2007 Free Software Foundation, Inc. <{\cf0\f0\lang255{\field{\*\fldinst{HYPERLINK "https://fsf.org/"}}{\fldrslt{https://fsf.org/\ul0\cf0}}}}\f0\fs24 >\f1\par -\f0 Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\f1\par -\b\f0\fs28 Preamble\b0\f1\fs24\par -\f0 The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.\f1\par -\f0 The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users.\f1\par -\f0 When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\f1\par -\f0 Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software.\f1\par -\f0 A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public.\f1\par -\f0 The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version.\f1\par -\f0 An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license.\f1\par -\f0 The precise terms and conditions for copying, distribution and modification follow.\f1\par -\b\f0\fs28 TERMS AND CONDITIONS\b0\f1\fs24\par -\b\f0 0. Definitions.\b0\f1\par -\f0 "This License" refers to version 3 of the GNU Affero General Public License.\f1\par -\f0 "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\f1\par -\f0 "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.\f1\par -\f0 To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.\f1\par -\f0 A "covered work" means either the unmodified Program or a work based on the Program.\f1\par -\f0 To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\f1\par -\f0 To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\f1\par -\f0 An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\f1\par -\b\f0 1. Source Code.\b0\f1\par -\f0 The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.\f1\par -\f0 A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\f1\par -\f0 The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\f1\par -\f0 The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\f1\par -\f0 The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\f1\par -\f0 The Corresponding Source for a work in source code form is that same work.\f1\par -\b\f0 2. Basic Permissions.\b0\f1\par -\f0 All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\f1\par -\f0 You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\f1\par -\f0 Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\f1\par -\b\f0 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\b0\f1\par -\f0 No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\f1\par -\f0 When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\f1\par -\b\f0 4. Conveying Verbatim Copies.\b0\f1\par -\f0 You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\f1\par -\f0 You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\f1\par -\b\f0 5. Conveying Modified Source Versions.\b0\f1\par -\f0 You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\f1\par - -\pard\nowidctlpar\fi-360\li360\f0\bullet\tab a) The work must carry prominent notices stating that you modified it, and giving a relevant date.\f1\par -\f0\bullet\tab b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".\f1\par -\f0\bullet\tab c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\f1\par -\f0\bullet\tab d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\f1\par - -\pard\nowidctlpar\sa180\f0 A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\f1\par -\b\f0 6. Conveying Non-Source Forms.\b0\f1\par -\f0 You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\f1\par - -\pard\nowidctlpar\fi-360\li360\f0\bullet\tab a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\f1\par -\f0\bullet\tab b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\f1\par -\f0\bullet\tab c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\f1\par -\f0\bullet\tab d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\f1\par -\f0\bullet\tab e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\f1\par - -\pard\nowidctlpar\sa180\f0 A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\f1\par -\f0 A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\f1\par -\f0 "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\f1\par -\f0 If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\f1\par -\f0 The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\f1\par -\f0 Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\f1\par -\b\f0 7. Additional Terms.\b0\f1\par -\f0 "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\f1\par -\f0 When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\f1\par -\f0 Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\f1\par - -\pard\nowidctlpar\fi-360\li360\f0\bullet\tab a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\f1\par -\f0\bullet\tab b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\f1\par -\f0\bullet\tab c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\f1\par -\f0\bullet\tab d) Limiting the use for publicity purposes of names of licensors or authors of the material; or\f1\par -\f0\bullet\tab e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\f1\par -\f0\bullet\tab f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\f1\par - -\pard\nowidctlpar\sa180\f0 All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\f1\par -\f0 If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\f1\par -\f0 Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\f1\par -\b\f0 8. Termination.\b0\f1\par -\f0 You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\f1\par -\f0 However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\f1\par -\f0 Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\f1\par -\f0 Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\f1\par -\b\f0 9. Acceptance Not Required for Having Copies.\b0\f1\par -\f0 You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\f1\par -\b\f0 10. Automatic Licensing of Downstream Recipients.\b0\f1\par -\f0 Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\f1\par -\f0 An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\f1\par -\f0 You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\f1\par -\b\f0 11. Patents.\b0\f1\par -\f0 A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".\f1\par -\f0 A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\f1\par -\f0 Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\f1\par -\f0 In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\f1\par -\f0 If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\f1\par -\f0 If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\f1\par -\f0 A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\f1\par -\f0 Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\f1\par -\b\f0 12. No Surrender of Others' Freedom.\b0\f1\par -\f0 If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\f1\par -\b\f0 13. Remote Network Interaction; Use with the GNU General Public License.\b0\f1\par -\f0 Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph.\f1\par -\f0 Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.\f1\par -\b\f0 14. Revised Versions of this License.\b0\f1\par -\f0 The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\f1\par -\f0 Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.\f1\par -\f0 If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\f1\par -\f0 Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\f1\par -\b\f0 15. Disclaimer of Warranty.\b0\f1\par -\f0 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\f1\par -\b\f0 16. Limitation of Liability.\b0\f1\par -\f0 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\f1\par -\b\f0 17. Interpretation of Sections 15 and 16.\b0\f1\par -\f0 If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\f1\par -\f0 END OF TERMS AND CONDITIONS\f1\par -\b\f0\fs28 How to Apply These Terms to Your New Programs\b0\f1\fs24\par -\f0 If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\f1\par -\f0 To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.\f1\par -\f3 ONLYOFFICE Docs Community Edition\line Copyright (C) 2010-2023 Ascensio System SIA\line\line This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\line\line This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.\line\line You should have received a copy of the GNU Affero General Public License along with this program. If not, see <{\cf0{\field{\*\fldinst{HYPERLINK "https://www.gnu.org/licenses/"}}{\fldrslt{https://www.gnu.org/licenses/\ul0\cf0}}}}\f3\fs24 >.\line\line You can contact Ascensio System SIA at 20A-6 Ernesta Birznieka-Upish street, Riga, Latvia, EU, LV-1050.\line\line The interactive user interfaces in modified source and object code version of the Program must display Appropriate Legal Notices, as required under Section 5 of the GNU AGPL version 3.\par -\f0 Also add information on how to contact you by electronic and paper mail.\f1\par -\f0 If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements.\f1\par -\f0 You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <{\cf0\lang255{\field{\*\fldinst{HYPERLINK "https://www.gnu.org/licenses/"}}{\fldrslt{https://www.gnu.org/licenses/\ul0\cf0}}}}\f0\fs24 >.\f1\par +{\rtf1\ansi\ansicpg1252\deff0\uc1{\fonttbl{\f0\fmodern\fcharset0 Courier New;}} +\pard\f0\fs18 + GNU AFFERO GENERAL PUBLIC LICENSE\par + Version 3, 19 November 2007\par +\par + Copyright (C) 2007 Free Software Foundation, Inc. \par + Everyone is permitted to copy and distribute verbatim copies\par + of this license document, but changing it is not allowed.\par +\par + Preamble\par +\par + The GNU Affero General Public License is a free, copyleft license for\par +software and other kinds of works, specifically designed to ensure\par +cooperation with the community in the case of network server software.\par +\par + The licenses for most software and other practical works are designed\par +to take away your freedom to share and change the works. By contrast,\par +our General Public Licenses are intended to guarantee your freedom to\par +share and change all versions of a program--to make sure it remains free\par +software for all its users.\par +\par + When we speak of free software, we are referring to freedom, not\par +price. Our General Public Licenses are designed to make sure that you\par +have the freedom to distribute copies of free software (and charge for\par +them if you wish), that you receive source code or can get it if you\par +want it, that you can change the software or use pieces of it in new\par +free programs, and that you know you can do these things.\par +\par + Developers that use our General Public Licenses protect your rights\par +with two steps: (1) assert copyright on the software, and (2) offer\par +you this License which gives you legal permission to copy, distribute\par +and/or modify the software.\par +\par + A secondary benefit of defending all users' freedom is that\par +improvements made in alternate versions of the program, if they\par +receive widespread use, become available for other developers to\par +incorporate. Many developers of free software are heartened and\par +encouraged by the resulting cooperation. However, in the case of\par +software used on network servers, this result may fail to come about.\par +The GNU General Public License permits making a modified version and\par +letting the public access it on a server without ever releasing its\par +source code to the public.\par +\par + The GNU Affero General Public License is designed specifically to\par +ensure that, in such cases, the modified source code becomes available\par +to the community. It requires the operator of a network server to\par +provide the source code of the modified version running there to the\par +users of that server. Therefore, public use of a modified version, on\par +a publicly accessible server, gives the public access to the source\par +code of the modified version.\par +\par + An older license, called the Affero General Public License and\par +published by Affero, was designed to accomplish similar goals. This is\par +a different license, not a version of the Affero GPL, but Affero has\par +released a new version of the Affero GPL which permits relicensing under\par +this license.\par +\par + The precise terms and conditions for copying, distribution and\par +modification follow.\par +\par + TERMS AND CONDITIONS\par +\par + 0. Definitions.\par +\par + "This License" refers to version 3 of the GNU Affero General Public License.\par +\par + "Copyright" also means copyright-like laws that apply to other kinds of\par +works, such as semiconductor masks.\par +\par + "The Program" refers to any copyrightable work licensed under this\par +License. Each licensee is addressed as "you". "Licensees" and\par +"recipients" may be individuals or organizations.\par +\par + To "modify" a work means to copy from or adapt all or part of the work\par +in a fashion requiring copyright permission, other than the making of an\par +exact copy. The resulting work is called a "modified version" of the\par +earlier work or a work "based on" the earlier work.\par +\par + A "covered work" means either the unmodified Program or a work based\par +on the Program.\par +\par + To "propagate" a work means to do anything with it that, without\par +permission, would make you directly or secondarily liable for\par +infringement under applicable copyright law, except executing it on a\par +computer or modifying a private copy. Propagation includes copying,\par +distribution (with or without modification), making available to the\par +public, and in some countries other activities as well.\par +\par + To "convey" a work means any kind of propagation that enables other\par +parties to make or receive copies. Mere interaction with a user through\par +a computer network, with no transfer of a copy, is not conveying.\par +\par + An interactive user interface displays "Appropriate Legal Notices"\par +to the extent that it includes a convenient and prominently visible\par +feature that (1) displays an appropriate copyright notice, and (2)\par +tells the user that there is no warranty for the work (except to the\par +extent that warranties are provided), that licensees may convey the\par +work under this License, and how to view a copy of this License. If\par +the interface presents a list of user commands or options, such as a\par +menu, a prominent item in the list meets this criterion.\par +\par + 1. Source Code.\par +\par + The "source code" for a work means the preferred form of the work\par +for making modifications to it. "Object code" means any non-source\par +form of a work.\par +\par + A "Standard Interface" means an interface that either is an official\par +standard defined by a recognized standards body, or, in the case of\par +interfaces specified for a particular programming language, one that\par +is widely used among developers working in that language.\par +\par + The "System Libraries" of an executable work include anything, other\par +than the work as a whole, that (a) is included in the normal form of\par +packaging a Major Component, but which is not part of that Major\par +Component, and (b) serves only to enable use of the work with that\par +Major Component, or to implement a Standard Interface for which an\par +implementation is available to the public in source code form. A\par +"Major Component", in this context, means a major essential component\par +(kernel, window system, and so on) of the specific operating system\par +(if any) on which the executable work runs, or a compiler used to\par +produce the work, or an object code interpreter used to run it.\par +\par + The "Corresponding Source" for a work in object code form means all\par +the source code needed to generate, install, and (for an executable\par +work) run the object code and to modify the work, including scripts to\par +control those activities. However, it does not include the work's\par +System Libraries, or general-purpose tools or generally available free\par +programs which are used unmodified in performing those activities but\par +which are not part of the work. For example, Corresponding Source\par +includes interface definition files associated with source files for\par +the work, and the source code for shared libraries and dynamically\par +linked subprograms that the work is specifically designed to require,\par +such as by intimate data communication or control flow between those\par +subprograms and other parts of the work.\par +\par + The Corresponding Source need not include anything that users\par +can regenerate automatically from other parts of the Corresponding\par +Source.\par +\par + The Corresponding Source for a work in source code form is that\par +same work.\par +\par + 2. Basic Permissions.\par +\par + All rights granted under this License are granted for the term of\par +copyright on the Program, and are irrevocable provided the stated\par +conditions are met. This License explicitly affirms your unlimited\par +permission to run the unmodified Program. The output from running a\par +covered work is covered by this License only if the output, given its\par +content, constitutes a covered work. This License acknowledges your\par +rights of fair use or other equivalent, as provided by copyright law.\par +\par + You may make, run and propagate covered works that you do not\par +convey, without conditions so long as your license otherwise remains\par +in force. You may convey covered works to others for the sole purpose\par +of having them make modifications exclusively for you, or provide you\par +with facilities for running those works, provided that you comply with\par +the terms of this License in conveying all material for which you do\par +not control copyright. Those thus making or running the covered works\par +for you must do so exclusively on your behalf, under your direction\par +and control, on terms that prohibit them from making any copies of\par +your copyrighted material outside their relationship with you.\par +\par + Conveying under any other circumstances is permitted solely under\par +the conditions stated below. Sublicensing is not allowed; section 10\par +makes it unnecessary.\par +\par + 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\par +\par + No covered work shall be deemed part of an effective technological\par +measure under any applicable law fulfilling obligations under article\par +11 of the WIPO copyright treaty adopted on 20 December 1996, or\par +similar laws prohibiting or restricting circumvention of such\par +measures.\par +\par + When you convey a covered work, you waive any legal power to forbid\par +circumvention of technological measures to the extent such circumvention\par +is effected by exercising rights under this License with respect to\par +the covered work, and you disclaim any intention to limit operation or\par +modification of the work as a means of enforcing, against the work's\par +users, your or third parties' legal rights to forbid circumvention of\par +technological measures.\par +\par + 4. Conveying Verbatim Copies.\par +\par + You may convey verbatim copies of the Program's source code as you\par +receive it, in any medium, provided that you conspicuously and\par +appropriately publish on each copy an appropriate copyright notice;\par +keep intact all notices stating that this License and any\par +non-permissive terms added in accord with section 7 apply to the code;\par +keep intact all notices of the absence of any warranty; and give all\par +recipients a copy of this License along with the Program.\par +\par + You may charge any price or no price for each copy that you convey,\par +and you may offer support or warranty protection for a fee.\par +\par + 5. Conveying Modified Source Versions.\par +\par + You may convey a work based on the Program, or the modifications to\par +produce it from the Program, in the form of source code under the\par +terms of section 4, provided that you also meet all of these conditions:\par +\par + a) The work must carry prominent notices stating that you modified\par + it, and giving a relevant date.\par +\par + b) The work must carry prominent notices stating that it is\par + released under this License and any conditions added under section\par + 7. This requirement modifies the requirement in section 4 to\par + "keep intact all notices".\par +\par + c) You must license the entire work, as a whole, under this\par + License to anyone who comes into possession of a copy. This\par + License will therefore apply, along with any applicable section 7\par + additional terms, to the whole of the work, and all its parts,\par + regardless of how they are packaged. This License gives no\par + permission to license the work in any other way, but it does not\par + invalidate such permission if you have separately received it.\par +\par + d) If the work has interactive user interfaces, each must display\par + Appropriate Legal Notices; however, if the Program has interactive\par + interfaces that do not display Appropriate Legal Notices, your\par + work need not make them do so.\par +\par + A compilation of a covered work with other separate and independent\par +works, which are not by their nature extensions of the covered work,\par +and which are not combined with it such as to form a larger program,\par +in or on a volume of a storage or distribution medium, is called an\par +"aggregate" if the compilation and its resulting copyright are not\par +used to limit the access or legal rights of the compilation's users\par +beyond what the individual works permit. Inclusion of a covered work\par +in an aggregate does not cause this License to apply to the other\par +parts of the aggregate.\par +\par + 6. Conveying Non-Source Forms.\par +\par + You may convey a covered work in object code form under the terms\par +of sections 4 and 5, provided that you also convey the\par +machine-readable Corresponding Source under the terms of this License,\par +in one of these ways:\par +\par + a) Convey the object code in, or embodied in, a physical product\par + (including a physical distribution medium), accompanied by the\par + Corresponding Source fixed on a durable physical medium\par + customarily used for software interchange.\par +\par + b) Convey the object code in, or embodied in, a physical product\par + (including a physical distribution medium), accompanied by a\par + written offer, valid for at least three years and valid for as\par + long as you offer spare parts or customer support for that product\par + model, to give anyone who possesses the object code either (1) a\par + copy of the Corresponding Source for all the software in the\par + product that is covered by this License, on a durable physical\par + medium customarily used for software interchange, for a price no\par + more than your reasonable cost of physically performing this\par + conveying of source, or (2) access to copy the\par + Corresponding Source from a network server at no charge.\par +\par + c) Convey individual copies of the object code with a copy of the\par + written offer to provide the Corresponding Source. This\par + alternative is allowed only occasionally and noncommercially, and\par + only if you received the object code with such an offer, in accord\par + with subsection 6b.\par +\par + d) Convey the object code by offering access from a designated\par + place (gratis or for a charge), and offer equivalent access to the\par + Corresponding Source in the same way through the same place at no\par + further charge. You need not require recipients to copy the\par + Corresponding Source along with the object code. If the place to\par + copy the object code is a network server, the Corresponding Source\par + may be on a different server (operated by you or a third party)\par + that supports equivalent copying facilities, provided you maintain\par + clear directions next to the object code saying where to find the\par + Corresponding Source. Regardless of what server hosts the\par + Corresponding Source, you remain obligated to ensure that it is\par + available for as long as needed to satisfy these requirements.\par +\par + e) Convey the object code using peer-to-peer transmission, provided\par + you inform other peers where the object code and Corresponding\par + Source of the work are being offered to the general public at no\par + charge under subsection 6d.\par +\par + A separable portion of the object code, whose source code is excluded\par +from the Corresponding Source as a System Library, need not be\par +included in conveying the object code work.\par +\par + A "User Product" is either (1) a "consumer product", which means any\par +tangible personal property which is normally used for personal, family,\par +or household purposes, or (2) anything designed or sold for incorporation\par +into a dwelling. In determining whether a product is a consumer product,\par +doubtful cases shall be resolved in favor of coverage. For a particular\par +product received by a particular user, "normally used" refers to a\par +typical or common use of that class of product, regardless of the status\par +of the particular user or of the way in which the particular user\par +actually uses, or expects or is expected to use, the product. A product\par +is a consumer product regardless of whether the product has substantial\par +commercial, industrial or non-consumer uses, unless such uses represent\par +the only significant mode of use of the product.\par +\par + "Installation Information" for a User Product means any methods,\par +procedures, authorization keys, or other information required to install\par +and execute modified versions of a covered work in that User Product from\par +a modified version of its Corresponding Source. The information must\par +suffice to ensure that the continued functioning of the modified object\par +code is in no case prevented or interfered with solely because\par +modification has been made.\par +\par + If you convey an object code work under this section in, or with, or\par +specifically for use in, a User Product, and the conveying occurs as\par +part of a transaction in which the right of possession and use of the\par +User Product is transferred to the recipient in perpetuity or for a\par +fixed term (regardless of how the transaction is characterized), the\par +Corresponding Source conveyed under this section must be accompanied\par +by the Installation Information. But this requirement does not apply\par +if neither you nor any third party retains the ability to install\par +modified object code on the User Product (for example, the work has\par +been installed in ROM).\par +\par + The requirement to provide Installation Information does not include a\par +requirement to continue to provide support service, warranty, or updates\par +for a work that has been modified or installed by the recipient, or for\par +the User Product in which it has been modified or installed. Access to a\par +network may be denied when the modification itself materially and\par +adversely affects the operation of the network or violates the rules and\par +protocols for communication across the network.\par +\par + Corresponding Source conveyed, and Installation Information provided,\par +in accord with this section must be in a format that is publicly\par +documented (and with an implementation available to the public in\par +source code form), and must require no special password or key for\par +unpacking, reading or copying.\par +\par + 7. Additional Terms.\par +\par + "Additional permissions" are terms that supplement the terms of this\par +License by making exceptions from one or more of its conditions.\par +Additional permissions that are applicable to the entire Program shall\par +be treated as though they were included in this License, to the extent\par +that they are valid under applicable law. If additional permissions\par +apply only to part of the Program, that part may be used separately\par +under those permissions, but the entire Program remains governed by\par +this License without regard to the additional permissions.\par +\par + When you convey a copy of a covered work, you may at your option\par +remove any additional permissions from that copy, or from any part of\par +it. (Additional permissions may be written to require their own\par +removal in certain cases when you modify the work.) You may place\par +additional permissions on material, added by you to a covered work,\par +for which you have or can give appropriate copyright permission.\par +\par + Notwithstanding any other provision of this License, for material you\par +add to a covered work, you may (if authorized by the copyright holders of\par +that material) supplement the terms of this License with terms:\par +\par + a) Disclaiming warranty or limiting liability differently from the\par + terms of sections 15 and 16 of this License; or\par +\par + b) Requiring preservation of specified reasonable legal notices or\par + author attributions in that material or in the Appropriate Legal\par + Notices displayed by works containing it; or\par +\par + c) Prohibiting misrepresentation of the origin of that material, or\par + requiring that modified versions of such material be marked in\par + reasonable ways as different from the original version; or\par +\par + d) Limiting the use for publicity purposes of names of licensors or\par + authors of the material; or\par +\par + e) Declining to grant rights under trademark law for use of some\par + trade names, trademarks, or service marks; or\par +\par + f) Requiring indemnification of licensors and authors of that\par + material by anyone who conveys the material (or modified versions of\par + it) with contractual assumptions of liability to the recipient, for\par + any liability that these contractual assumptions directly impose on\par + those licensors and authors.\par +\par + All other non-permissive additional terms are considered "further\par +restrictions" within the meaning of section 10. If the Program as you\par +received it, or any part of it, contains a notice stating that it is\par +governed by this License along with a term that is a further\par +restriction, you may remove that term. If a license document contains\par +a further restriction but permits relicensing or conveying under this\par +License, you may add to a covered work material governed by the terms\par +of that license document, provided that the further restriction does\par +not survive such relicensing or conveying.\par +\par + If you add terms to a covered work in accord with this section, you\par +must place, in the relevant source files, a statement of the\par +additional terms that apply to those files, or a notice indicating\par +where to find the applicable terms.\par +\par + Additional terms, permissive or non-permissive, may be stated in the\par +form of a separately written license, or stated as exceptions;\par +the above requirements apply either way.\par +\par + 8. Termination.\par +\par + You may not propagate or modify a covered work except as expressly\par +provided under this License. Any attempt otherwise to propagate or\par +modify it is void, and will automatically terminate your rights under\par +this License (including any patent licenses granted under the third\par +paragraph of section 11).\par +\par + However, if you cease all violation of this License, then your\par +license from a particular copyright holder is reinstated (a)\par +provisionally, unless and until the copyright holder explicitly and\par +finally terminates your license, and (b) permanently, if the copyright\par +holder fails to notify you of the violation by some reasonable means\par +prior to 60 days after the cessation.\par +\par + Moreover, your license from a particular copyright holder is\par +reinstated permanently if the copyright holder notifies you of the\par +violation by some reasonable means, this is the first time you have\par +received notice of violation of this License (for any work) from that\par +copyright holder, and you cure the violation prior to 30 days after\par +your receipt of the notice.\par +\par + Termination of your rights under this section does not terminate the\par +licenses of parties who have received copies or rights from you under\par +this License. If your rights have been terminated and not permanently\par +reinstated, you do not qualify to receive new licenses for the same\par +material under section 10.\par +\par + 9. Acceptance Not Required for Having Copies.\par +\par + You are not required to accept this License in order to receive or\par +run a copy of the Program. Ancillary propagation of a covered work\par +occurring solely as a consequence of using peer-to-peer transmission\par +to receive a copy likewise does not require acceptance. However,\par +nothing other than this License grants you permission to propagate or\par +modify any covered work. These actions infringe copyright if you do\par +not accept this License. Therefore, by modifying or propagating a\par +covered work, you indicate your acceptance of this License to do so.\par +\par + 10. Automatic Licensing of Downstream Recipients.\par +\par + Each time you convey a covered work, the recipient automatically\par +receives a license from the original licensors, to run, modify and\par +propagate that work, subject to this License. You are not responsible\par +for enforcing compliance by third parties with this License.\par +\par + An "entity transaction" is a transaction transferring control of an\par +organization, or substantially all assets of one, or subdividing an\par +organization, or merging organizations. If propagation of a covered\par +work results from an entity transaction, each party to that\par +transaction who receives a copy of the work also receives whatever\par +licenses to the work the party's predecessor in interest had or could\par +give under the previous paragraph, plus a right to possession of the\par +Corresponding Source of the work from the predecessor in interest, if\par +the predecessor has it or can get it with reasonable efforts.\par +\par + You may not impose any further restrictions on the exercise of the\par +rights granted or affirmed under this License. For example, you may\par +not impose a license fee, royalty, or other charge for exercise of\par +rights granted under this License, and you may not initiate litigation\par +(including a cross-claim or counterclaim in a lawsuit) alleging that\par +any patent claim is infringed by making, using, selling, offering for\par +sale, or importing the Program or any portion of it.\par +\par + 11. Patents.\par +\par + A "contributor" is a copyright holder who authorizes use under this\par +License of the Program or a work on which the Program is based. The\par +work thus licensed is called the contributor's "contributor version".\par +\par + A contributor's "essential patent claims" are all patent claims\par +owned or controlled by the contributor, whether already acquired or\par +hereafter acquired, that would be infringed by some manner, permitted\par +by this License, of making, using, or selling its contributor version,\par +but do not include claims that would be infringed only as a\par +consequence of further modification of the contributor version. For\par +purposes of this definition, "control" includes the right to grant\par +patent sublicenses in a manner consistent with the requirements of\par +this License.\par +\par + Each contributor grants you a non-exclusive, worldwide, royalty-free\par +patent license under the contributor's essential patent claims, to\par +make, use, sell, offer for sale, import and otherwise run, modify and\par +propagate the contents of its contributor version.\par +\par + In the following three paragraphs, a "patent license" is any express\par +agreement or commitment, however denominated, not to enforce a patent\par +(such as an express permission to practice a patent or covenant not to\par +sue for patent infringement). To "grant" such a patent license to a\par +party means to make such an agreement or commitment not to enforce a\par +patent against the party.\par +\par + If you convey a covered work, knowingly relying on a patent license,\par +and the Corresponding Source of the work is not available for anyone\par +to copy, free of charge and under the terms of this License, through a\par +publicly available network server or other readily accessible means,\par +then you must either (1) cause the Corresponding Source to be so\par +available, or (2) arrange to deprive yourself of the benefit of the\par +patent license for this particular work, or (3) arrange, in a manner\par +consistent with the requirements of this License, to extend the patent\par +license to downstream recipients. "Knowingly relying" means you have\par +actual knowledge that, but for the patent license, your conveying the\par +covered work in a country, or your recipient's use of the covered work\par +in a country, would infringe one or more identifiable patents in that\par +country that you have reason to believe are valid.\par +\par + If, pursuant to or in connection with a single transaction or\par +arrangement, you convey, or propagate by procuring conveyance of, a\par +covered work, and grant a patent license to some of the parties\par +receiving the covered work authorizing them to use, propagate, modify\par +or convey a specific copy of the covered work, then the patent license\par +you grant is automatically extended to all recipients of the covered\par +work and works based on it.\par +\par + A patent license is "discriminatory" if it does not include within\par +the scope of its coverage, prohibits the exercise of, or is\par +conditioned on the non-exercise of one or more of the rights that are\par +specifically granted under this License. You may not convey a covered\par +work if you are a party to an arrangement with a third party that is\par +in the business of distributing software, under which you make payment\par +to the third party based on the extent of your activity of conveying\par +the work, and under which the third party grants, to any of the\par +parties who would receive the covered work from you, a discriminatory\par +patent license (a) in connection with copies of the covered work\par +conveyed by you (or copies made from those copies), or (b) primarily\par +for and in connection with specific products or compilations that\par +contain the covered work, unless you entered into that arrangement,\par +or that patent license was granted, prior to 28 March 2007.\par +\par + Nothing in this License shall be construed as excluding or limiting\par +any implied license or other defenses to infringement that may\par +otherwise be available to you under applicable patent law.\par +\par + 12. No Surrender of Others' Freedom.\par +\par + If conditions are imposed on you (whether by court order, agreement or\par +otherwise) that contradict the conditions of this License, they do not\par +excuse you from the conditions of this License. If you cannot convey a\par +covered work so as to satisfy simultaneously your obligations under this\par +License and any other pertinent obligations, then as a consequence you may\par +not convey it at all. For example, if you agree to terms that obligate you\par +to collect a royalty for further conveying from those to whom you convey\par +the Program, the only way you could satisfy both those terms and this\par +License would be to refrain entirely from conveying the Program.\par +\par + 13. Remote Network Interaction; Use with the GNU General Public License.\par +\par + Notwithstanding any other provision of this License, if you modify the\par +Program, your modified version must prominently offer all users\par +interacting with it remotely through a computer network (if your version\par +supports such interaction) an opportunity to receive the Corresponding\par +Source of your version by providing access to the Corresponding Source\par +from a network server at no charge, through some standard or customary\par +means of facilitating copying of software. This Corresponding Source\par +shall include the Corresponding Source for any work covered by version 3\par +of the GNU General Public License that is incorporated pursuant to the\par +following paragraph.\par +\par + Notwithstanding any other provision of this License, you have\par +permission to link or combine any covered work with a work licensed\par +under version 3 of the GNU General Public License into a single\par +combined work, and to convey the resulting work. The terms of this\par +License will continue to apply to the part which is the covered work,\par +but the work with which it is combined will remain governed by version\par +3 of the GNU General Public License.\par +\par + 14. Revised Versions of this License.\par +\par + The Free Software Foundation may publish revised and/or new versions of\par +the GNU Affero General Public License from time to time. Such new versions\par +will be similar in spirit to the present version, but may differ in detail to\par +address new problems or concerns.\par +\par + Each version is given a distinguishing version number. If the\par +Program specifies that a certain numbered version of the GNU Affero General\par +Public License "or any later version" applies to it, you have the\par +option of following the terms and conditions either of that numbered\par +version or of any later version published by the Free Software\par +Foundation. If the Program does not specify a version number of the\par +GNU Affero General Public License, you may choose any version ever published\par +by the Free Software Foundation.\par +\par + If the Program specifies that a proxy can decide which future\par +versions of the GNU Affero General Public License can be used, that proxy's\par +public statement of acceptance of a version permanently authorizes you\par +to choose that version for the Program.\par +\par + Later license versions may give you additional or different\par +permissions. However, no additional obligations are imposed on any\par +author or copyright holder as a result of your choosing to follow a\par +later version.\par +\par + 15. Disclaimer of Warranty.\par +\par + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\par +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\par +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY\par +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\par +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\par +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\par +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\par +ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\par +\par + 16. Limitation of Liability.\par +\par + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\par +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\par +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\par +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\par +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\par +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\par +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\par +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\par +SUCH DAMAGES.\par +\par + 17. Interpretation of Sections 15 and 16.\par +\par + If the disclaimer of warranty and limitation of liability provided\par +above cannot be given local legal effect according to their terms,\par +reviewing courts shall apply local law that most closely approximates\par +an absolute waiver of all civil liability in connection with the\par +Program, unless a warranty or assumption of liability accompanies a\par +copy of the Program in return for a fee.\par +\par + END OF TERMS AND CONDITIONS\par +\par + How to Apply These Terms to Your New Programs\par +\par + If you develop a new program, and you want it to be of the greatest\par +possible use to the public, the best way to achieve this is to make it\par +free software which everyone can redistribute and change under these terms.\par +\par + To do so, attach the following notices to the program. It is safest\par +to attach them to the start of each source file to most effectively\par +state the exclusion of warranty; and each file should have at least\par +the "copyright" line and a pointer to where the full notice is found.\par +\par + \par + Copyright (C) \par +\par + This program is free software: you can redistribute it and/or modify\par + it under the terms of the GNU Affero General Public License as published by\par + the Free Software Foundation, either version 3 of the License, or\par + (at your option) any later version.\par +\par + This program is distributed in the hope that it will be useful,\par + but WITHOUT ANY WARRANTY; without even the implied warranty of\par + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\par + GNU Affero General Public License for more details.\par +\par + You should have received a copy of the GNU Affero General Public License\par + along with this program. If not, see .\par +\par +Also add information on how to contact you by electronic and paper mail.\par +\par + If your software can interact with users remotely through a computer\par +network, you should also make sure that it provides a way for users to\par +get its source. For example, if your program is a web application, its\par +interface could display a "Source" link that leads users to an archive\par +of the code. There are many ways you could offer source, and different\par +solutions will be better for different programs; see section 13 for the\par +specific requirements.\par +\par + You should also get your employer (if you work as a programmer) or school,\par +if any, to sign a "copyright disclaimer" for the program, if necessary.\par +For more information on this, and how to apply and follow the GNU AGPL, see\par +.\par +\par +Copyright (C) 2009-2026 Ascensio System SIA\par +\par + This Program is licensed under the GNU Affero General Public\par +License v3.0 (AGPLv3), as supplemented by the terms set forth below. These\par +terms form an integral part of this License and shall be included in all\par +copies and distributions of the Program. They define conditions for the\par +exercise of rights granted under the License, including use, modification,\par +and distribution of the Program.\par + Pursuant to Section 7 of the License, the following terms supplement and\par +clarify the application of these conditions. Failure to comply with these\par +terms constitutes a violation of the License and may result in termination\par +of rights under Section 8 of the License.\par +\par + Additional Terms\par +\par + 1. Retention of Notices and Attribution.\par + Pursuant to Sections 4, 5, and 7(b) of the License, you must retain all\par +applicable copyright notices, license notices, warranty disclaimers, and\par +attribution or origin notices included in the Program.\par +\par + 2. Modification Notice Requirement.\par +\par + Modified versions of the Program must carry prominent notices stating that\par +they have been modified, including the date (or dates) of such modification,\par +and must clearly indicate that they are based on the original ONLYOFFICE\par +software developed by Ascensio System SIA.\par +\par + 3. Appropriate Legal Notices in User Interfaces.\par + Where the Program, or any modified version thereof, includes interactive\par +user interfaces, the required notices shall be displayed through a clearly\par +accessible and prominently visible user interface feature, in accordance\par +with the requirement to present Appropriate Legal Notices under Section 5\par +of the License. Such notices must enable users to:\par +\par + (i) identify ONLYOFFICE as the original developer;\par +\par + (ii) understand that the version in use may be a modified version; and\par +\par + (iii) access the applicable license information.\par +\par + 4. No Trademark License.\par +\par + In accordance with Section 7(e) this License does not grant any rights to\par +use the trademarks, service marks, trade names, logos, or branding of the\par +Licensor. Any use of such trademarks is governed by the Licensor's\par +Trademark Policy, available at:\par +\par +\par + 5. Non-Code Content Licensing.\par +\par + Certain non-code elements included in the Program or its distribution,\par +including but not limited to illustrations, icon sets, and technical writing\par +or documentation content, are licensed under the Creative Commons\par +Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0). For the\par +avoidance of doubt, this license applies solely to such non-code content\par +and does not modify or replace the licensing terms applicable to the\par +Program's source code, which remains subject to the GNU Affero General\par +Public License v3.0 (AGPLv3). Nothing in this section limits any\par +obligation to retain copyright notices, attribution, origin information, or\par +Appropriate Legal Notices under the AGPLv3 and the additional terms\par +applicable to the Program. The full license text is available at:\par +\par +\par + You can contact Ascensio System SIA by electronic mail at:\par +info@onlyoffice.com and by postal mail at: 20A-6 Ernesta Birznieka-Upisha\par +Street, Riga, LV-1050, Latvia, European Union.\par } - \ No newline at end of file From bd9e063f81dc1df59bef439521922409f0ff03ca Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Fri, 20 Nov 2026 19:59:12 +0100 Subject: [PATCH 05/28] chore(license): add REUSE.toml annotations 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 Assisted-by: ClaudeCode:claude-opus-5-5 --- REUSE.toml | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 REUSE.toml diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000..6061d3d --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# SPDX-FileCopyrightText: Euro-Office contributors + +version = 1 + +# Files that can't hold our notice (.ps1, .hcl, .cfg, .m4, .spec, .iss, bake Dockerfiles): unchanged upstream +[[annotations]] +path = [ + "apt-rpm/bin/documentserver-configure.sh.m4", + "apt-rpm/package.spec.m4", + "apt-rpm/requires.spec", + "apt-rpm/vars.spec", + "common/documentserver-example/nginx/includes/ds-example.conf.m4", + "common/documentserver-example/systemd/ds-example.service.m4", + "common/documentserver/bin/documentserver-flush-cache.sh.m4", + "common/documentserver/bin/documentserver-jwt-status.sh.m4", + "common/documentserver/bin/documentserver-letsencrypt.ps1", + "common/documentserver/bin/documentserver-letsencrypt.sh.m4", + "common/documentserver/bin/documentserver-log-rotate.ps1", + "common/documentserver/bin/documentserver-pluginsmanager.sh.m4", + "common/documentserver/bin/documentserver-prepare4shutdown.ps1", + "common/documentserver/bin/documentserver-prepare4shutdown.sh.m4", + "common/documentserver/bin/documentserver-static-gzip.sh.m4", + "common/documentserver/bin/documentserver-update-securelink.sh.m4", + "common/documentserver/logrotate/ds.conf.m4", + "common/documentserver/nginx/ds-ssl.conf.tmpl.m4", + "common/documentserver/nginx/ds.conf.tmpl.m4", + "common/documentserver/nginx/includes/ds-adminpanel.conf.m4", + "common/documentserver/nginx/includes/ds-common.conf.m4", + "common/documentserver/nginx/includes/ds-letsencrypt.conf.m4", + "common/documentserver/nginx/includes/http-common.conf.m4", + "common/documentserver/systemd/ds-adminpanel.service.m4", + "common/documentserver/systemd/ds-converter.service.m4", + "common/documentserver/systemd/ds-docservice.service.m4", + "common/documentserver/systemd/ds-metrics.service.m4", + "deb/template/changelog.m4", + "deb/template/config.m4", + "deb/template/package.dirs.m4", + "deb/template/package.install.m4", + "deb/template/package.links.m4", + "deb/template/postrm.m4", + "deb/template/prerm.m4", + "deb/template/templates.m4", + "exe/admin.iss", + "exe/common.iss", + "exe/defines.iss", + "exe/example.iss", + "exe/prerequisites.iss", + "exe/products.iss", + "rpm/bin/documentserver-configure.sh.m4", + "rpm/vars.spec", + "variables.m4", +] +SPDX-FileCopyrightText = "Ascensio System SIA" +SPDX-License-Identifier = "AGPL-3.0-only" + +# Files that can't hold our notice (.ps1, .hcl, .cfg, .m4, .spec, .iss, bake Dockerfiles): upstream, changed by us +[[annotations]] +path = [ + "common/documentserver/bin/documentserver-generate-allfonts.sh.m4", + "common/documentserver/nginx/includes/ds-docservice.conf.m4", + "deb/template/control.m4", + "deb/template/copyright.m4", + "deb/template/postinst.m4", + "deb/template/rules.m4", + "rpm/common.spec", + "rpm/package.spec.m4", + "rpm/requires.spec", +] +SPDX-FileCopyrightText = ["Ascensio System SIA", "Euro-Office contributors"] +SPDX-License-Identifier = "AGPL-3.0-only" + +# Files that can't hold our notice (.ps1, .hcl, .cfg, .m4, .spec, .iss, bake Dockerfiles): ours +[[annotations]] +path = [ + "NOTICE.m4", + "common/documentserver/bin/documentserver-restart.sh.m4", +] +SPDX-FileCopyrightText = "Euro-Office contributors" +SPDX-License-Identifier = "AGPL-3.0-only" From ddbc7d6ab7d443fbe00b0e596f288d8031f917ba Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Fri, 20 Nov 2026 23:47:51 +0100 Subject: [PATCH 06/28] feat(package): ship a combined MODIFICATIONS.txt next to NOTICE 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 Assisted-by: ClaudeCode:claude-opus-5-5 --- Makefile | 6 ++++++ NOTICE.m4 | 3 +++ combine-modifications.sh | 15 +++++++++++++++ deb/template/copyright.m4 | 4 ++++ test/licence-metadata.sh | 37 ++++++++++++++++++++++++++++++++++++- 5 files changed, 64 insertions(+), 1 deletion(-) create mode 100755 combine-modifications.sh diff --git a/Makefile b/Makefile index 4786dca..094764c 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,11 @@ DOCUMENTSERVER_FILES += $(DOCUMENTSERVER)/sdkjs-plugins 3RD_PARTY_LICENSE_FILES += $(DOCUMENTSERVER)/server/3rd-Party.txt 3RD_PARTY_LICENSE_FILES += $(DOCUMENTSERVER)/server/license +# Records of the repos whose code the documentserver bundle ships, in the +# DocumentServer checkout layout (SOURCE_ROOT holds the sibling submodules). +SOURCE_ROOT ?= .. +MODIFICATIONS_PARTS ?= $(foreach repo,core sdkjs web-apps server sdkjs-forms,$(SOURCE_ROOT)/$(repo)/MODIFICATIONS.txt) MODIFICATIONS.txt + LICENSE_FILE := $(firstword $(wildcard $(BRANDING_DIR)/common/documentserver/license/$(PACKAGE_NAME)/LICENSE.txt) LICENSE) HTMLFILEINTERNAL = $(DOCUMENTSERVER)/server/FileConverter/bin/HtmlFileInternal/HtmlFileInternal @@ -399,6 +404,7 @@ endif cp -f -t $(DOCUMENTSERVER) $(LICENSE_FILE) LICENSE-CC.txt m4 $(M4_PARAMS) NOTICE.m4 > $(DOCUMENTSERVER)/NOTICE + ./combine-modifications.sh $(MODIFICATIONS_PARTS) > $(DOCUMENTSERVER)/MODIFICATIONS.txt chmod u+x $(DOCUMENTSERVER)/server/FileConverter/bin/x2t$(EXEC_EXT) #chmod u+x $(DOCUMENTSERVER)/server/FileConverter/bin/docbuilder$(EXEC_EXT) diff --git a/NOTICE.m4 b/NOTICE.m4 index b6823ae..41330d1 100644 --- a/NOTICE.m4 +++ b/NOTICE.m4 @@ -6,6 +6,9 @@ Ascensio System SIA. M4_COMPANY_NAME is not affiliated with, endorsed by, or sponsored by Ascensio System SIA. ONLYOFFICE is a trademark of Ascensio System SIA. +The changes Euro-Office contributors made to the original software are +listed, with their dates, in MODIFICATIONS.txt. + This program is free software, licensed under the GNU Affero General Public License version 3 (AGPL-3.0-only), see the LICENSE file. Bundled third-party components and their licences are listed in 3rd-Party.txt and license/. diff --git a/combine-modifications.sh b/combine-modifications.sh new file mode 100755 index 0000000..41f4340 --- /dev/null +++ b/combine-modifications.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# SPDX-License-Identifier: AGPL-3.0-only +# SPDX-FileCopyrightText: Euro-Office contributors + +# Prints one MODIFICATIONS.txt for a bundle: the preamble of the first part, +# then each part from its "Modifications to " line on, separated by a blank +# line. Fails if a part is missing or has no "Modifications to " line. +set -eu +first=1 +for part in "$@"; do + grep -qs '^Modifications to ' "$part" || { echo "error: $part is missing or has no 'Modifications to' line" >&2; exit 1; } + if [ $first = 1 ]; then sed '/^Modifications to /,$d' "$part"; else echo; fi + sed -n '/^Modifications to /,$p' "$part" + first=0 +done diff --git a/deb/template/copyright.m4 b/deb/template/copyright.m4 index 4129b30..7f40ad0 100644 --- a/deb/template/copyright.m4 +++ b/deb/template/copyright.m4 @@ -12,6 +12,10 @@ Comment: Bundled third-party components are listed with their licences in In accordance with Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect that Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights. + . + The changes Euro-Office contributors made to the original software are + listed, with their dates, in MODIFICATIONS.txt, installed next to NOTICE + in M4_DS_ROOT. License: AGPL-3.0-only Files: *.gif *.ico *.jpg *.png *.svg diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index 8d2ba8b..be75da7 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -2,7 +2,8 @@ # Renders debian/copyright and fails if upstream additional terms come back # or the Section 7(a) warranty term goes missing, and renders NOTICE with the # documentserver recipe's m4 call and fails if it lacks the ONLYOFFICE origin -# notice for the brand. +# notice for the brand, and checks the combined MODIFICATIONS.txt the +# recipe writes and the pointers to it. set -eu cd "$(dirname "$0")/.." make -B deb/build/debian/copyright @@ -19,3 +20,37 @@ for brand in 'Euro-Office' 'Nextcloud Office'; do eval "$render" | tr -s ' \n' ' ' | grep -qF "$brand is based on the original ONLYOFFICE software developed by Ascensio System SIA. $brand is not affiliated with" \ || { echo "::error::$brand NOTICE lacks the ONLYOFFICE origin notice"; exit 1; } done +# The documentserver recipe combines the records of the shipped repos into +# one MODIFICATIONS.txt next to NOTICE; the exe ships that whole directory. +tr -s ' \n' ' ' < "$copyright" | grep -qF 'listed, with their dates, in MODIFICATIONS.txt' \ + || { echo "::error::debian/copyright does not point to MODIFICATIONS.txt"; exit 1; } +eval "$render" | grep -qF 'MODIFICATIONS.txt' || { echo "::error::NOTICE does not point to MODIFICATIONS.txt"; exit 1; } +grep -qF 'Source: ..\common\documentserver\home\*;' exe/common.iss || { echo "::error::the exe no longer ships the documentserver home with NOTICE and MODIFICATIONS.txt"; exit 1; } +parts=$(mktemp -d) +trap 'rm -rf "$parts"' EXIT +repos='core sdkjs web-apps server sdkjs-forms' +for repo in $repos; do + mkdir "$parts/$repo" + printf 'This program is based on the original ONLYOFFICE software developed by Ascensio System SIA.\nSee LICENSE for the licence terms.\n\nModifications to %s\nentry\n' "$repo" > "$parts/$repo/MODIFICATIONS.txt" +done +combine=$(make -n documentserver SOURCE_ROOT="$parts" | sed -n 's/^\(.*combine-modifications\.sh .*\) > common\/documentserver\/home\/MODIFICATIONS\.txt$/\1/p') +[ -n "$combine" ] || { echo "::error::the documentserver recipe no longer writes MODIFICATIONS.txt"; exit 1; } +combined=$(eval "$combine") +[ "$(grep -c '^This program is based on the original ONLYOFFICE software' <<<"$combined")" = 1 ] \ + || { echo "::error::the combined MODIFICATIONS.txt does not have the preamble exactly once"; exit 1; } +for repo in $repos document-server-package; do + [ "$(grep -cx "Modifications to $repo" <<<"$combined")" = 1 ] \ + || { echo "::error::the combined MODIFICATIONS.txt lacks one section for $repo"; exit 1; } +done +[ "$(grep -c '^Modifications to ' <<<"$combined")" = 6 ] || { echo "::error::the combined MODIFICATIONS.txt has unexpected sections"; exit 1; } +echo 'entry' > "$parts/server/MODIFICATIONS.txt" +if (eval "$combine") >/dev/null 2>&1; then + echo "::error::combining MODIFICATIONS.txt succeeds with a part that has no section" + exit 1 +fi +rm "$parts/server/MODIFICATIONS.txt" +if (eval "$combine") >/dev/null 2>&1; then + echo "::error::combining MODIFICATIONS.txt succeeds with a missing part" + exit 1 +fi +echo "licence metadata OK" From 9b6689efed70fa2b320803a17dac303ab1adf2d3 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Fri, 20 Nov 2026 23:57:00 +0100 Subject: [PATCH 07/28] test(package): check the 9.4 additional terms in debian/copyright 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 Assisted-by: ClaudeCode:claude-opus-5-5 --- test/licence-metadata.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index be75da7..92e82e1 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -1,17 +1,20 @@ #!/usr/bin/env bash -# Renders debian/copyright and fails if upstream additional terms come back -# or the Section 7(a) warranty term goes missing, and renders NOTICE with the -# documentserver recipe's m4 call and fails if it lacks the ONLYOFFICE origin -# notice for the brand, and checks the combined MODIFICATIONS.txt the -# recipe writes and the pointers to it. +# Renders debian/copyright and fails if the dropped logo term comes back or +# the 9.4 additional terms (7(a) warranty, 7(b) notices, 7(e) trademarks) go +# missing, and renders NOTICE with the documentserver recipe's m4 call and +# fails if it lacks the ONLYOFFICE origin notice for the brand, and checks +# the combined MODIFICATIONS.txt the recipe writes and the pointers to it. set -eu cd "$(dirname "$0")/.." make -B deb/build/debian/copyright copyright=deb/build/debian/copyright -if grep -nE 'Product logo|7\(b\)|7\(e\)' "$copyright"; then - echo "::error::upstream additional terms are back in debian/copyright" +if grep -nF 'Product logo' "$copyright"; then + echo "::error::the dropped logo term is back in debian/copyright" exit 1 fi +for term in 'Pursuant to Sections 4, 5, and 7(b) of the License, you must retain all' 'In accordance with Section 7(e) this License does not grant any rights to'; do + tr -s ' \n' ' ' < "$copyright" | grep -qF "$term" || { echo "::error::debian/copyright lacks the 9.4 term '$term'"; exit 1; } +done tr -s ' \n' ' ' < "$copyright" | grep -qF 'In accordance with Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect that Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights.' \ || { echo "::error::debian/copyright lacks the Section 7(a) warranty term"; exit 1; } for brand in 'Euro-Office' 'Nextcloud Office'; do From ffd23c1067ecceb5c02f67eaec77ddd65d80e328 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 13:19:19 +0100 Subject: [PATCH 08/28] feat(package): ship core's third-party list and licence texts 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 Assisted-by: ClaudeCode:claude-opus-5-5 --- Makefile | 5 +++++ test/licence-metadata.sh | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 094764c..35f2ac3 100644 --- a/Makefile +++ b/Makefile @@ -402,6 +402,11 @@ ifeq ($(PLATFORM),win) cat exe/license/3rd-Party.txt >> $(DOCUMENTSERVER)/3rd-Party.txt endif + # core's third-party list and the licence texts it ships + { echo; cat $(SOURCE_ROOT)/core/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt + mkdir -p $(DOCUMENTSERVER)/license/core + cp -f -t $(DOCUMENTSERVER)/license/core $(SOURCE_ROOT)/core/LICENSES/* + cp -f -t $(DOCUMENTSERVER) $(LICENSE_FILE) LICENSE-CC.txt m4 $(M4_PARAMS) NOTICE.m4 > $(DOCUMENTSERVER)/NOTICE ./combine-modifications.sh $(MODIFICATIONS_PARTS) > $(DOCUMENTSERVER)/MODIFICATIONS.txt diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index 92e82e1..c1abfee 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -56,4 +56,11 @@ if (eval "$combine") >/dev/null 2>&1; then echo "::error::combining MODIFICATIONS.txt succeeds with a missing part" exit 1 fi +# core's third-party list joins 3rd-Party.txt, its licence texts license/core/; +# the packages and the image ship both. +recipe=$(make -n documentserver SOURCE_ROOT="$parts") +grep -qxF "{ echo; cat $parts/core/3DPARTY.md; } >> common/documentserver/home/3rd-Party.txt" <<<"$recipe" \ + || { echo "::error::the documentserver recipe does not add core's third-party list to 3rd-Party.txt"; exit 1; } +grep -qxF "cp -f -t common/documentserver/home/license/core $parts/core/LICENSES/*" <<<"$recipe" \ + || { echo "::error::the documentserver recipe does not ship core's licence texts"; exit 1; } echo "licence metadata OK" From 8d233f70df511177843014fd5284193972b4630c Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 13:23:18 +0100 Subject: [PATCH 09/28] fix(package): name the additional terms and the CC BY-SA URL in NOTICE - 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 Assisted-by: ClaudeCode:claude-opus-5-5 --- Makefile | 2 +- NOTICE.m4 | 12 ++++++++---- test/licence-metadata.sh | 3 +++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 35f2ac3..125e091 100644 --- a/Makefile +++ b/Makefile @@ -303,7 +303,7 @@ M4_PARAMS += -D M4_DEV_NULL='$(DEV_NULL)' M4_PARAMS += -D M4_PACKAGE_SERVICES='$(PACKAGE_SERVICES)' CURRENT_YEAR := $(shell date +"%Y") M4_PARAMS += -D M4_CURRENT_YEAR=$(CURRENT_YEAR) -M4_PARAMS += -D M4_CONTRIBUTORS_YEARS=$(if $(filter 2026,$(CURRENT_YEAR)),2026,2026-$(CURRENT_YEAR)) +M4_PARAMS += -D M4_CONTRIBUTORS_YEARS=2025-$(CURRENT_YEAR) RPMBUILD_BINARY_PAYLOAD ?= w9T$(shell nproc).xzdio diff --git a/NOTICE.m4 b/NOTICE.m4 index 41330d1..2a42744 100644 --- a/NOTICE.m4 +++ b/NOTICE.m4 @@ -10,13 +10,17 @@ The changes Euro-Office contributors made to the original software are listed, with their dates, in MODIFICATIONS.txt. This program is free software, licensed under the GNU Affero General Public -License version 3 (AGPL-3.0-only), see the LICENSE file. Bundled third-party -components and their licences are listed in 3rd-Party.txt and license/. +License version 3 (AGPL-3.0-only) with the additional terms under its +Section 7: retention of notices and attribution, modification notices, legal +notices in user interfaces, no trademark licence, and CC BY-SA 4.0 for +non-code content. See the LICENSE file. Bundled third-party components and +their licences are listed in 3rd-Party.txt and license/. Illustrations, icon sets and documentation content are licensed under the Creative Commons Attribution-ShareAlike 4.0 International licence -(CC BY-SA 4.0), see LICENSE-CC.txt. Licensor: Ascensio System SIA, with -modifications by Euro-Office contributors. +(CC BY-SA 4.0), see LICENSE-CC.txt and +https://creativecommons.org/licenses/by-sa/4.0/legalcode. Licensor: Ascensio +System SIA, with modifications by Euro-Office contributors. Fonts in core-fonts/ and dictionaries in dictionaries/ are third-party works under their own licences, see the licence files in those directories where diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index c1abfee..f5cb12e 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -23,6 +23,9 @@ for brand in 'Euro-Office' 'Nextcloud Office'; do eval "$render" | tr -s ' \n' ' ' | grep -qF "$brand is based on the original ONLYOFFICE software developed by Ascensio System SIA. $brand is not affiliated with" \ || { echo "::error::$brand NOTICE lacks the ONLYOFFICE origin notice"; exit 1; } done +for t in 'Copyright (C) 2025-' '(AGPL-3.0-only) with the additional terms under its Section 7' 'https://creativecommons.org/licenses/by-sa/4.0/legalcode'; do + eval "$render" | tr -s ' \n' ' ' | grep -qF -e "$t" || { echo "::error::NOTICE lacks '$t'"; exit 1; } +done # The documentserver recipe combines the records of the shipped repos into # one MODIFICATIONS.txt next to NOTICE; the exe ships that whole directory. tr -s ' \n' ' ' < "$copyright" | grep -qF 'listed, with their dates, in MODIFICATIONS.txt' \ From 19a20996d38e920564e69250649d376cb287ac4e Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 13:27:41 +0100 Subject: [PATCH 10/28] chore(license): add our notice to changed upstream files the stamp can'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 Assisted-by: ClaudeCode:claude-opus-5-5 --- REUSE.toml | 4 +++- .../bin/documentserver-generate-allfonts.sh.m4 | 2 ++ common/documentserver/nginx/includes/ds-docservice.conf.m4 | 2 ++ deb/template/control.m4 | 2 ++ deb/template/copyright.m4 | 2 ++ deb/template/postinst.m4 | 2 ++ deb/template/rules.m4 | 2 ++ rpm/common.spec | 3 +++ rpm/package.spec.m4 | 2 ++ rpm/requires.spec | 3 +++ test/licence-metadata.sh | 6 ++++++ 11 files changed, 29 insertions(+), 1 deletion(-) diff --git a/REUSE.toml b/REUSE.toml index 6061d3d..2e7a539 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -54,7 +54,8 @@ path = [ SPDX-FileCopyrightText = "Ascensio System SIA" SPDX-License-Identifier = "AGPL-3.0-only" -# Files that can't hold our notice (.ps1, .hcl, .cfg, .m4, .spec, .iss, bake Dockerfiles): upstream, changed by us +# Upstream files the stamp has no comment style for (.m4, .spec): changed by us, our notice added by hand (`dnl`, `#`) +# aggregate: REUSE keeps Ascensio's copyright next to the in-file notice [[annotations]] path = [ "common/documentserver/bin/documentserver-generate-allfonts.sh.m4", @@ -69,6 +70,7 @@ path = [ ] SPDX-FileCopyrightText = ["Ascensio System SIA", "Euro-Office contributors"] SPDX-License-Identifier = "AGPL-3.0-only" +precedence = "aggregate" # Files that can't hold our notice (.ps1, .hcl, .cfg, .m4, .spec, .iss, bake Dockerfiles): ours [[annotations]] diff --git a/common/documentserver/bin/documentserver-generate-allfonts.sh.m4 b/common/documentserver/bin/documentserver-generate-allfonts.sh.m4 index 94153cb..2aa8677 100644 --- a/common/documentserver/bin/documentserver-generate-allfonts.sh.m4 +++ b/common/documentserver/bin/documentserver-generate-allfonts.sh.m4 @@ -1,4 +1,6 @@ #!/bin/sh +dnl SPDX-FileCopyrightText: Euro-Office contributors +dnl Modified by Euro-Office contributors, see MODIFICATIONS.txt ONLYOFFICE_DATA_CONTAINER=false if [ "$1" != "" ]; then diff --git a/common/documentserver/nginx/includes/ds-docservice.conf.m4 b/common/documentserver/nginx/includes/ds-docservice.conf.m4 index 9c28822..608ee38 100644 --- a/common/documentserver/nginx/includes/ds-docservice.conf.m4 +++ b/common/documentserver/nginx/includes/ds-docservice.conf.m4 @@ -1,3 +1,5 @@ +dnl SPDX-FileCopyrightText: Euro-Office contributors +dnl Modified by Euro-Office contributors, see MODIFICATIONS.txt #welcome page location = / { return 302 $the_scheme://$the_host$the_prefix/welcome/; } diff --git a/deb/template/control.m4 b/deb/template/control.m4 index 9ae0835..2eca455 100644 --- a/deb/template/control.m4 +++ b/deb/template/control.m4 @@ -1,3 +1,5 @@ +dnl SPDX-FileCopyrightText: Euro-Office contributors +dnl Modified by Euro-Office contributors, see MODIFICATIONS.txt include(variables.m4) Source: M4_PACKAGE_NAME Section: web diff --git a/deb/template/copyright.m4 b/deb/template/copyright.m4 index 7f40ad0..62a925e 100644 --- a/deb/template/copyright.m4 +++ b/deb/template/copyright.m4 @@ -1,3 +1,5 @@ +dnl SPDX-FileCopyrightText: Euro-Office contributors +dnl Modified by Euro-Office contributors, see MODIFICATIONS.txt Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: M4_PUBLISHER_NAME Upstream-Contact: M4_PUBLISHER_NAME diff --git a/deb/template/postinst.m4 b/deb/template/postinst.m4 index f85920e..2308c3a 100644 --- a/deb/template/postinst.m4 +++ b/deb/template/postinst.m4 @@ -1,4 +1,6 @@ #!/bin/bash +dnl SPDX-FileCopyrightText: Euro-Office contributors +dnl Modified by Euro-Office contributors, see MODIFICATIONS.txt # postinst script for M4_ONLYOFFICE_VALUE # # see: dh_installdeb(1) diff --git a/deb/template/rules.m4 b/deb/template/rules.m4 index 21d9611..7a9959f 100644 --- a/deb/template/rules.m4 +++ b/deb/template/rules.m4 @@ -1,5 +1,7 @@ #!/usr/bin/make -f # -*- makefile -*- +dnl SPDX-FileCopyrightText: Euro-Office contributors +dnl Modified by Euro-Office contributors, see MODIFICATIONS.txt export DH_VERBOSE=1 diff --git a/rpm/common.spec b/rpm/common.spec index 4ac0255..9df392c 100644 --- a/rpm/common.spec +++ b/rpm/common.spec @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Euro-Office contributors +# Modified by Euro-Office contributors, see MODIFICATIONS.txt + Summary: %{_package_summary} Name: %{_package_name} Version: %{_product_version} diff --git a/rpm/package.spec.m4 b/rpm/package.spec.m4 index 132d94b..c5189c5 100644 --- a/rpm/package.spec.m4 +++ b/rpm/package.spec.m4 @@ -1,3 +1,5 @@ +dnl SPDX-FileCopyrightText: Euro-Office contributors +dnl Modified by Euro-Office contributors, see MODIFICATIONS.txt include(variables.m4) License: AGPL-3.0-only AND CC-BY-SA-4.0 AND Apache-2.0 diff --git a/rpm/requires.spec b/rpm/requires.spec index 5f82461..28f35be 100644 --- a/rpm/requires.spec +++ b/rpm/requires.spec @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Euro-Office contributors +# Modified by Euro-Office contributors, see MODIFICATIONS.txt + Requires: nginx >= 1.3.13, /usr/bin/psql, curl, wget, libstdc++ >= 4.8.4, libcurl, libxml2, zlib, libselinux-utils, liberation-mono-fonts, liberation-sans-fonts, liberation-serif-fonts, logrotate, ca-certificates, certbot, openssl, vim-common # Not in any Fedora/RHEL repository, so the Liberation fonts above stand in for it Recommends: msttcore-fonts-installer diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index f5cb12e..ae2cdd2 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -66,4 +66,10 @@ grep -qxF "{ echo; cat $parts/core/3DPARTY.md; } >> common/documentserver/home/3 || { echo "::error::the documentserver recipe does not add core's third-party list to 3rd-Party.txt"; exit 1; } grep -qxF "cp -f -t common/documentserver/home/license/core $parts/core/LICENSES/*" <<<"$recipe" \ || { echo "::error::the documentserver recipe does not ship core's licence texts"; exit 1; } +# Upstream files the stamp can't parse carry our notice by hand; REUSE.toml lists them. +hand=$(sed -n '/our notice added by hand/,/^]/s/^ *"\(.*\)",*$/\1/p' REUSE.toml) +[ -n "$hand" ] || { echo "::error::REUSE.toml lists no hand-noticed files"; exit 1; } +for f in $hand; do + grep -qF 'Modified by Euro-Office contributors, see MODIFICATIONS.txt' "$f" || { echo "::error::$f lacks our notice"; exit 1; } +done echo "licence metadata OK" From d5a2bb6df29df42c5bb3c4aaba007706def418cf Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 13:35:30 +0100 Subject: [PATCH 11/28] ci: check the licence notices on pull requests 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 Assisted-by: ClaudeCode:claude-opus-5-5 No-test: CI config, proven by running the gate commands locally --- .github/workflows/licence.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/licence.yml diff --git a/.github/workflows/licence.yml b/.github/workflows/licence.yml new file mode 100644 index 0000000..bd3a9f3 --- /dev/null +++ b/.github/workflows/licence.yml @@ -0,0 +1,42 @@ +# This workflow is provided via the organization template repository +# +# https://github.com/Euro-Office/.github +# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization +# +# Checks the ONLYOFFICE licence notices (upstream headers, our block on +# upstream files we changed, the SPDX pair on new files, the licence files) +# with the header gates of licence-modification-tooling, on pull requests to +# and pushes of the default branch only (older stable branches predate the +# notices). Only for the component repositories listed in its relicence.conf. +# Details: +# https://github.com/Euro-Office/.github/blob/main/actions/licence/action.yml +# +# SPDX-FileCopyrightText: 2026 Euro-Office contributors +# SPDX-License-Identifier: MIT + +name: Licence notices + +on: + pull_request: + branches: [main] + push: + branches: [main] + +permissions: + contents: read + +concurrency: + group: licence-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + licence: + runs-on: [self-hosted, ubuntu-latest] + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 + persist-credentials: false + - uses: Euro-Office/.github/actions/licence@main # zizmor: ignore[unpinned-uses] organization action, pins the tooling itself + with: + token: ${{ secrets.LICENCE_TOOLING_TOKEN }} From b0e2773493d7dcf3a51dc10cd358bef31b19a9f1 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 21:02:50 +0100 Subject: [PATCH 12/28] fix(license): drop the Section 7(a) warranty clause from debian/copyright 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 Assisted-by: ClaudeCode:claude-opus-5-5 --- deb/template/copyright.m4 | 4 ---- test/licence-metadata.sh | 15 +++++++++------ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/deb/template/copyright.m4 b/deb/template/copyright.m4 index 62a925e..08db166 100644 --- a/deb/template/copyright.m4 +++ b/deb/template/copyright.m4 @@ -11,10 +11,6 @@ Copyright: (c) Copyright Ascensio System SIA, 2009-M4_CURRENT_YEAR Comment: Bundled third-party components are listed with their licences in 3rd-Party.txt and license/. . - In accordance with Section 7(a) of the GNU AGPL its Section 15 shall - be amended to the effect that Ascensio System SIA expressly excludes the - warranty of non-infringement of any third-party rights. - . The changes Euro-Office contributors made to the original software are listed, with their dates, in MODIFICATIONS.txt, installed next to NOTICE in M4_DS_ROOT. diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index ae2cdd2..19abcfa 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -1,8 +1,9 @@ #!/usr/bin/env bash -# Renders debian/copyright and fails if the dropped logo term comes back or -# the 9.4 additional terms (7(a) warranty, 7(b) notices, 7(e) trademarks) go -# missing, and renders NOTICE with the documentserver recipe's m4 call and -# fails if it lacks the ONLYOFFICE origin notice for the brand, and checks +# Renders debian/copyright and fails if the dropped logo term or the old +# Section 7(a) warranty clause (not in the 9.4 terms) comes back or the 9.4 +# additional terms (7(b) notices, 7(e) trademarks) go missing, and renders +# NOTICE with the documentserver recipe's m4 call and fails if it lacks the +# ONLYOFFICE origin notice for the brand, and checks # the combined MODIFICATIONS.txt the recipe writes and the pointers to it. set -eu cd "$(dirname "$0")/.." @@ -15,8 +16,10 @@ fi for term in 'Pursuant to Sections 4, 5, and 7(b) of the License, you must retain all' 'In accordance with Section 7(e) this License does not grant any rights to'; do tr -s ' \n' ' ' < "$copyright" | grep -qF "$term" || { echo "::error::debian/copyright lacks the 9.4 term '$term'"; exit 1; } done -tr -s ' \n' ' ' < "$copyright" | grep -qF 'In accordance with Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect that Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights.' \ - || { echo "::error::debian/copyright lacks the Section 7(a) warranty term"; exit 1; } +if tr -s ' \n' ' ' < "$copyright" | grep -qF -e 'Section 7(a)' -e 'warranty of non-infringement'; then + echo "::error::the old Section 7(a) warranty clause is back in debian/copyright" + exit 1 +fi for brand in 'Euro-Office' 'Nextcloud Office'; do render=$(make -n documentserver COMPANY_NAME="$brand" | sed -n 's/^\(m4 .* NOTICE\.m4\) > .*/\1/p') [ -n "$render" ] || { echo "::error::the documentserver recipe no longer renders NOTICE"; exit 1; } From 07adeb651caf6f6e87af31d8d677236cf01e30e5 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 21:11:51 +0100 Subject: [PATCH 13/28] fix(license): give our logos their own stanza in debian/copyright 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 Assisted-by: ClaudeCode:claude-opus-5-5 --- deb/template/copyright.m4 | 18 ++++++++++++++++++ test/licence-metadata.sh | 9 +++++++++ 2 files changed, 27 insertions(+) diff --git a/deb/template/copyright.m4 b/deb/template/copyright.m4 index 08db166..1e59d9d 100644 --- a/deb/template/copyright.m4 +++ b/deb/template/copyright.m4 @@ -35,3 +35,21 @@ License: Apache-2.0 Material Symbols by Google, recoloured. On Debian systems, the full text of the Apache License 2.0 can be found in /usr/share/common-licenses/Apache-2.0. + +Files: */web-apps/apps/*/resources/img/header/header-logo_s.svg + */web-apps/apps/*/resources/img/header/dark-logo_s.svg + */web-apps/apps/*/resources/img/header/eo_logo_*.svg + */web-apps/apps/*/resources/img/about/logo.svg + */web-apps/apps/*/resources/img/embed/logo.svg + */web-apps/apps/documenteditor/embed/resources/img/logo.svg + */web-apps/apps/spreadsheeteditor/embed/resources/img/logo.svg + */web-apps/apps/presentationeditor/embed/resources/img/logo.svg + */web-apps/apps/visioeditor/embed/resources/img/logo.svg + */welcome/css/logo.svg +Copyright: Euro-Office contributors +Comment: The Euro-Office logos of the web-apps theme and the welcome page, + and the AdminPanel logos bundled under a content hash. They are not + Ascensio's CC BY-SA images. Branded builds replace the welcome page logo + and favicons with the brand's logos (Euro-Office contributors and Google + LLC, AGPL-3.0-only AND Apache-2.0, see the Apache-2.0 stanza above). +License: AGPL-3.0-only diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index 19abcfa..a4bea4c 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -20,6 +20,15 @@ if tr -s ' \n' ' ' < "$copyright" | grep -qF -e 'Section 7(a)' -e 'warranty of echo "::error::the old Section 7(a) warranty clause is back in debian/copyright" exit 1 fi +# Our logos get their own stanza after the CC BY-SA images one (the last +# matching stanza wins), so Ascensio's CC BY-SA stanza no longer covers them. +brand_stanza=$(awk -v f='*/web-apps/apps/*/resources/img/header/header-logo_s.svg' 'index($0, "Files: " f) == 1 { p = 1 } p && /^$/ { exit } p' "$copyright") +cc_line=$(grep -n '^Files: \*.gif ' "$copyright" | cut -d: -f1) +brand_line=$(grep -nF "Files: "'*/web-apps/apps/*/resources/img/header/header-logo_s.svg' "$copyright" | cut -d: -f1) +[ -n "$brand_stanza" ] && [ "$brand_line" -gt "$cc_line" ] || { echo "::error::debian/copyright lacks the brand stanza after the CC BY-SA one"; exit 1; } +for want in ' */web-apps/apps/*/resources/img/about/logo.svg' ' */web-apps/apps/documenteditor/embed/resources/img/logo.svg' ' */welcome/css/logo.svg' 'Copyright: Euro-Office contributors' 'License: AGPL-3.0-only'; do + grep -qxF -e "$want" <<<"$brand_stanza" || { echo "::error::the brand stanza lacks '$want'"; exit 1; } +done for brand in 'Euro-Office' 'Nextcloud Office'; do render=$(make -n documentserver COMPANY_NAME="$brand" | sed -n 's/^\(m4 .* NOTICE\.m4\) > .*/\1/p') [ -n "$render" ] || { echo "::error::the documentserver recipe no longer renders NOTICE"; exit 1; } From 70dac5b67aecf43e3e6fe31f3fd270582634fdf4 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 21:18:14 +0100 Subject: [PATCH 14/28] fix(license): cover the welcome and AdminPanel logos in debian/copyright 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 Assisted-by: ClaudeCode:claude-opus-5-5 --- deb/template/copyright.m4 | 22 ++++++++++++++++------ test/licence-metadata.sh | 9 ++++++++- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/deb/template/copyright.m4 b/deb/template/copyright.m4 index 1e59d9d..0183be1 100644 --- a/deb/template/copyright.m4 +++ b/deb/template/copyright.m4 @@ -45,11 +45,21 @@ Files: */web-apps/apps/*/resources/img/header/header-logo_s.svg */web-apps/apps/spreadsheeteditor/embed/resources/img/logo.svg */web-apps/apps/presentationeditor/embed/resources/img/logo.svg */web-apps/apps/visioeditor/embed/resources/img/logo.svg - */welcome/css/logo.svg Copyright: Euro-Office contributors -Comment: The Euro-Office logos of the web-apps theme and the welcome page, - and the AdminPanel logos bundled under a content hash. They are not - Ascensio's CC BY-SA images. Branded builds replace the welcome page logo - and favicons with the brand's logos (Euro-Office contributors and Google - LLC, AGPL-3.0-only AND Apache-2.0, see the Apache-2.0 stanza above). +Comment: The Euro-Office logos of the web-apps theme. They are not + Ascensio's CC BY-SA images. License: AGPL-3.0-only + +Files: */welcome/css/logo.svg + */server/AdminPanel/client/build/static/logo.svg + */server/AdminPanel/client/build/static/dark-logo_s.svg +Copyright: Euro-Office contributors + Google LLC +Comment: Our logos of the welcome page and the AdminPanel (which also + bundles them under a content hash in static/). They are not Ascensio's + CC BY-SA images. Branded builds replace them with the brand's logos, + which contain the "description" glyph of Material Symbols by Google + (Apache-2.0), as in the brand repository's REUSE.toml. On Debian systems, + the full text of the Apache License 2.0 can be found in + /usr/share/common-licenses/Apache-2.0. +License: AGPL-3.0-only AND Apache-2.0 diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index a4bea4c..8fb9c89 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -26,9 +26,16 @@ brand_stanza=$(awk -v f='*/web-apps/apps/*/resources/img/header/header-logo_s.sv cc_line=$(grep -n '^Files: \*.gif ' "$copyright" | cut -d: -f1) brand_line=$(grep -nF "Files: "'*/web-apps/apps/*/resources/img/header/header-logo_s.svg' "$copyright" | cut -d: -f1) [ -n "$brand_stanza" ] && [ "$brand_line" -gt "$cc_line" ] || { echo "::error::debian/copyright lacks the brand stanza after the CC BY-SA one"; exit 1; } -for want in ' */web-apps/apps/*/resources/img/about/logo.svg' ' */web-apps/apps/documenteditor/embed/resources/img/logo.svg' ' */welcome/css/logo.svg' 'Copyright: Euro-Office contributors' 'License: AGPL-3.0-only'; do +for want in ' */web-apps/apps/*/resources/img/about/logo.svg' ' */web-apps/apps/documenteditor/embed/resources/img/logo.svg' 'Copyright: Euro-Office contributors' 'License: AGPL-3.0-only'; do grep -qxF -e "$want" <<<"$brand_stanza" || { echo "::error::the brand stanza lacks '$want'"; exit 1; } done +# Logos the brand build replaces: the brand repository's REUSE.toml expression. +logo_stanza=$(awk 'index($0, "Files: */welcome/css/logo.svg") == 1 { p = 1 } p && /^$/ { exit } p' "$copyright") +logo_line=$(grep -nF 'Files: */welcome/css/logo.svg' "$copyright" | cut -d: -f1) +[ -n "$logo_stanza" ] && [ "$logo_line" -gt "$cc_line" ] || { echo "::error::debian/copyright lacks the welcome and AdminPanel logo stanza after the CC BY-SA one"; exit 1; } +for want in ' */server/AdminPanel/client/build/static/logo.svg' ' */server/AdminPanel/client/build/static/dark-logo_s.svg' 'Copyright: Euro-Office contributors' ' Google LLC' 'License: AGPL-3.0-only AND Apache-2.0'; do + grep -qxF -e "$want" <<<"$logo_stanza" || { echo "::error::the welcome and AdminPanel logo stanza lacks '$want'"; exit 1; } +done for brand in 'Euro-Office' 'Nextcloud Office'; do render=$(make -n documentserver COMPANY_NAME="$brand" | sed -n 's/^\(m4 .* NOTICE\.m4\) > .*/\1/p') [ -n "$render" ] || { echo "::error::the documentserver recipe no longer renders NOTICE"; exit 1; } From 14d99b542bf1dbd9581e7df86fe9951fd49d2c89 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 21:20:11 +0100 Subject: [PATCH 15/28] fix(license): use the copyright format's lower-case 'and' for the logo licence The stanza points to the Material Symbols stanza for the Apache-2.0 text. Signed-off-by: Julius Knorr Assisted-by: ClaudeCode:claude-opus-5-5 --- deb/template/copyright.m4 | 7 +++---- test/licence-metadata.sh | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/deb/template/copyright.m4 b/deb/template/copyright.m4 index 0183be1..97bc422 100644 --- a/deb/template/copyright.m4 +++ b/deb/template/copyright.m4 @@ -59,7 +59,6 @@ Comment: Our logos of the welcome page and the AdminPanel (which also bundles them under a content hash in static/). They are not Ascensio's CC BY-SA images. Branded builds replace them with the brand's logos, which contain the "description" glyph of Material Symbols by Google - (Apache-2.0), as in the brand repository's REUSE.toml. On Debian systems, - the full text of the Apache License 2.0 can be found in - /usr/share/common-licenses/Apache-2.0. -License: AGPL-3.0-only AND Apache-2.0 + (Apache-2.0), as in the brand repository's REUSE.toml. Apache-2.0: see + the Material Symbols stanza above. +License: AGPL-3.0-only and Apache-2.0 diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index 8fb9c89..680fa00 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -33,7 +33,7 @@ done logo_stanza=$(awk 'index($0, "Files: */welcome/css/logo.svg") == 1 { p = 1 } p && /^$/ { exit } p' "$copyright") logo_line=$(grep -nF 'Files: */welcome/css/logo.svg' "$copyright" | cut -d: -f1) [ -n "$logo_stanza" ] && [ "$logo_line" -gt "$cc_line" ] || { echo "::error::debian/copyright lacks the welcome and AdminPanel logo stanza after the CC BY-SA one"; exit 1; } -for want in ' */server/AdminPanel/client/build/static/logo.svg' ' */server/AdminPanel/client/build/static/dark-logo_s.svg' 'Copyright: Euro-Office contributors' ' Google LLC' 'License: AGPL-3.0-only AND Apache-2.0'; do +for want in ' */server/AdminPanel/client/build/static/logo.svg' ' */server/AdminPanel/client/build/static/dark-logo_s.svg' 'Copyright: Euro-Office contributors' ' Google LLC' 'License: AGPL-3.0-only and Apache-2.0'; do grep -qxF -e "$want" <<<"$logo_stanza" || { echo "::error::the welcome and AdminPanel logo stanza lacks '$want'"; exit 1; } done for brand in 'Euro-Office' 'Nextcloud Office'; do From ff188cfae549390a211adabd7138a36936d6937b Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 21:20:11 +0100 Subject: [PATCH 16/28] ci: run the licence metadata test on packaging changes 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 Assisted-by: ClaudeCode:claude-opus-5-5 No-test: CI config, the test it runs passes locally --- .github/workflows/package-licence.yml | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/package-licence.yml diff --git a/.github/workflows/package-licence.yml b/.github/workflows/package-licence.yml new file mode 100644 index 0000000..1a6dcb9 --- /dev/null +++ b/.github/workflows/package-licence.yml @@ -0,0 +1,41 @@ +# SPDX-FileCopyrightText: Euro-Office contributors +# SPDX-License-Identifier: AGPL-3.0-only + +name: Package licence metadata + +on: + pull_request: + paths: + - 'Makefile' + - '*.m4' + - 'combine-modifications.sh' + - 'deb/**' + - 'exe/**' + - 'test/**' + - 'LICENSE*' + - '.github/workflows/package-licence.yml' + push: + branches: + - main + paths: + - 'Makefile' + - '*.m4' + - 'combine-modifications.sh' + - 'deb/**' + - 'exe/**' + - 'test/**' + - 'LICENSE*' + - '.github/workflows/package-licence.yml' + +permissions: + contents: read + +jobs: + check: + runs-on: [self-hosted, ubuntu-latest] + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Render debian/copyright and NOTICE and check the licence notices + run: test/licence-metadata.sh From b59c14f720461e31417f2d18ce7ed34e7479a3e8 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 21:28:24 +0100 Subject: [PATCH 17/28] ci(licence): drop the removed token input 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 Assisted-by: ClaudeCode:claude-opus-5-5 --- .github/workflows/licence.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/licence.yml b/.github/workflows/licence.yml index bd3a9f3..de30565 100644 --- a/.github/workflows/licence.yml +++ b/.github/workflows/licence.yml @@ -7,7 +7,8 @@ # upstream files we changed, the SPDX pair on new files, the licence files) # with the header gates of licence-modification-tooling, on pull requests to # and pushes of the default branch only (older stable branches predate the -# notices). Only for the component repositories listed in its relicence.conf. +# notices), forks included. Only for the component repositories listed in its +# relicence.conf. # Details: # https://github.com/Euro-Office/.github/blob/main/actions/licence/action.yml # @@ -38,5 +39,3 @@ jobs: fetch-depth: 0 persist-credentials: false - uses: Euro-Office/.github/actions/licence@main # zizmor: ignore[unpinned-uses] organization action, pins the tooling itself - with: - token: ${{ secrets.LICENCE_TOOLING_TOKEN }} From 6cddbd9dd1ef1a31755a4c94c6012b80775125af Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 22:46:15 +0100 Subject: [PATCH 18/28] fix(license): say which builds carry the full modification record 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 Assisted-by: ClaudeCode:claude-opus-5-5 --- NOTICE.m4 | 3 ++- deb/template/copyright.m4 | 5 +++-- test/licence-metadata.sh | 9 ++++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/NOTICE.m4 b/NOTICE.m4 index 2a42744..6c9a374 100644 --- a/NOTICE.m4 +++ b/NOTICE.m4 @@ -7,7 +7,8 @@ sponsored by Ascensio System SIA. ONLYOFFICE is a trademark of Ascensio System SIA. The changes Euro-Office contributors made to the original software are -listed, with their dates, in MODIFICATIONS.txt. +listed in MODIFICATIONS.txt: release builds carry the full dated record, +other builds point to the git history. This program is free software, licensed under the GNU Affero General Public License version 3 (AGPL-3.0-only) with the additional terms under its diff --git a/deb/template/copyright.m4 b/deb/template/copyright.m4 index 97bc422..bbf3906 100644 --- a/deb/template/copyright.m4 +++ b/deb/template/copyright.m4 @@ -12,8 +12,9 @@ Comment: Bundled third-party components are listed with their licences in 3rd-Party.txt and license/. . The changes Euro-Office contributors made to the original software are - listed, with their dates, in MODIFICATIONS.txt, installed next to NOTICE - in M4_DS_ROOT. + listed in MODIFICATIONS.txt, installed next to NOTICE in M4_DS_ROOT. + Release builds carry the full dated record, other builds point to the git + history. License: AGPL-3.0-only Files: *.gif *.ico *.jpg *.png *.svg diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index 680fa00..55d2944 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -47,9 +47,12 @@ for t in 'Copyright (C) 2025-' '(AGPL-3.0-only) with the additional terms under done # The documentserver recipe combines the records of the shipped repos into # one MODIFICATIONS.txt next to NOTICE; the exe ships that whole directory. -tr -s ' \n' ' ' < "$copyright" | grep -qF 'listed, with their dates, in MODIFICATIONS.txt' \ - || { echo "::error::debian/copyright does not point to MODIFICATIONS.txt"; exit 1; } -eval "$render" | grep -qF 'MODIFICATIONS.txt' || { echo "::error::NOTICE does not point to MODIFICATIONS.txt"; exit 1; } +# Only release builds carry the full dated record; other builds ship the note. +builds='builds carry the full dated record, other builds point to the git history' +tr -s ' \n' ' ' < "$copyright" | grep -qF "listed in MODIFICATIONS.txt, installed next to NOTICE in /var/www/euro-office/documentserver/. Release $builds" \ + || { echo "::error::debian/copyright does not point to MODIFICATIONS.txt or says every build carries the dated record"; exit 1; } +eval "$render" | tr -s ' \n' ' ' | grep -qF "listed in MODIFICATIONS.txt: release $builds" \ + || { echo "::error::NOTICE does not point to MODIFICATIONS.txt or says every build carries the dated record"; exit 1; } grep -qF 'Source: ..\common\documentserver\home\*;' exe/common.iss || { echo "::error::the exe no longer ships the documentserver home with NOTICE and MODIFICATIONS.txt"; exit 1; } parts=$(mktemp -d) trap 'rm -rf "$parts"' EXIT From 9772ed30c0443d803187ee54ee96cd2174496366 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 22:46:28 +0100 Subject: [PATCH 19/28] feat(license): ship LICENSE as web-apps/LICENSE.txt for the editors' 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 Assisted-by: ClaudeCode:claude-opus-5-5 --- Makefile | 2 ++ test/licence-metadata.sh | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 125e091..8c378ae 100644 --- a/Makefile +++ b/Makefile @@ -408,6 +408,8 @@ endif cp -f -t $(DOCUMENTSERVER)/license/core $(SOURCE_ROOT)/core/LICENSES/* cp -f -t $(DOCUMENTSERVER) $(LICENSE_FILE) LICENSE-CC.txt + # nginx serves web-apps/, so the editors' About links the licence offline + cp -f $(LICENSE_FILE) $(DOCUMENTSERVER)/web-apps/LICENSE.txt m4 $(M4_PARAMS) NOTICE.m4 > $(DOCUMENTSERVER)/NOTICE ./combine-modifications.sh $(MODIFICATIONS_PARTS) > $(DOCUMENTSERVER)/MODIFICATIONS.txt diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index 55d2944..b4b804b 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -88,6 +88,12 @@ grep -qxF "{ echo; cat $parts/core/3DPARTY.md; } >> common/documentserver/home/3 || { echo "::error::the documentserver recipe does not add core's third-party list to 3rd-Party.txt"; exit 1; } grep -qxF "cp -f -t common/documentserver/home/license/core $parts/core/LICENSES/*" <<<"$recipe" \ || { echo "::error::the documentserver recipe does not ship core's licence texts"; exit 1; } +# The editors' About links web-apps/LICENSE.txt (web-apps build/about-html.mjs +# LOCAL_LICENCE_URL), served by the web-apps location in ds-docservice.conf. +grep -qxF 'cp -f LICENSE common/documentserver/home/web-apps/LICENSE.txt' <<<"$recipe" \ + || { echo "::error::the documentserver recipe does not ship LICENSE as web-apps/LICENSE.txt"; exit 1; } +grep -qF '(web-apps|sdkjs|sdkjs-plugins|fonts|dictionaries)(\/.*)$' common/documentserver/nginx/includes/ds-docservice.conf.m4 \ + || { echo "::error::nginx no longer serves web-apps/LICENSE.txt"; exit 1; } # Upstream files the stamp can't parse carry our notice by hand; REUSE.toml lists them. hand=$(sed -n '/our notice added by hand/,/^]/s/^ *"\(.*\)",*$/\1/p' REUSE.toml) [ -n "$hand" ] || { echo "::error::REUSE.toml lists no hand-noticed files"; exit 1; } From 36cfa89cfc981481bcdcd35ac7d350168613e8cf Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 22:50:31 +0100 Subject: [PATCH 20/28] build(license): ship the third-party lists of web-apps, sdkjs and the 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 Assisted-by: ClaudeCode:claude-opus-5-5 --- Makefile | 10 +++++++++- test/licence-metadata.sh | 17 +++++++++++------ 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 8c378ae..3f28034 100644 --- a/Makefile +++ b/Makefile @@ -402,10 +402,18 @@ ifeq ($(PLATFORM),win) cat exe/license/3rd-Party.txt >> $(DOCUMENTSERVER)/3rd-Party.txt endif - # core's third-party list and the licence texts it ships + # The third-party lists of core, web-apps and sdkjs and the licence texts they ship { echo; cat $(SOURCE_ROOT)/core/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt mkdir -p $(DOCUMENTSERVER)/license/core cp -f -t $(DOCUMENTSERVER)/license/core $(SOURCE_ROOT)/core/LICENSES/* + { echo; cat $(SOURCE_ROOT)/web-apps/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt + mkdir -p $(DOCUMENTSERVER)/license/web-apps + cp -f -t $(DOCUMENTSERVER)/license/web-apps $(SOURCE_ROOT)/web-apps/LICENSES/* + { echo; cat $(SOURCE_ROOT)/sdkjs/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt + mkdir -p $(DOCUMENTSERVER)/license/sdkjs + cp -f -t $(DOCUMENTSERVER)/license/sdkjs $(SOURCE_ROOT)/sdkjs/LICENSES/* + # The npm packages in the server binaries: list and texts from the server build + { echo; cat $(DOCUMENTSERVER)/license/server/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt cp -f -t $(DOCUMENTSERVER) $(LICENSE_FILE) LICENSE-CC.txt # nginx serves web-apps/, so the editors' About links the licence offline diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index b4b804b..c1a1e79 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -81,13 +81,18 @@ if (eval "$combine") >/dev/null 2>&1; then echo "::error::combining MODIFICATIONS.txt succeeds with a missing part" exit 1 fi -# core's third-party list joins 3rd-Party.txt, its licence texts license/core/; -# the packages and the image ship both. +# The third-party lists of core, web-apps and sdkjs join 3rd-Party.txt, their +# licence texts license//; the packages and the image ship both. recipe=$(make -n documentserver SOURCE_ROOT="$parts") -grep -qxF "{ echo; cat $parts/core/3DPARTY.md; } >> common/documentserver/home/3rd-Party.txt" <<<"$recipe" \ - || { echo "::error::the documentserver recipe does not add core's third-party list to 3rd-Party.txt"; exit 1; } -grep -qxF "cp -f -t common/documentserver/home/license/core $parts/core/LICENSES/*" <<<"$recipe" \ - || { echo "::error::the documentserver recipe does not ship core's licence texts"; exit 1; } +for repo in core web-apps sdkjs; do + grep -qxF "{ echo; cat $parts/$repo/3DPARTY.md; } >> common/documentserver/home/3rd-Party.txt" <<<"$recipe" \ + || { echo "::error::the documentserver recipe does not add the third-party list of $repo to 3rd-Party.txt"; exit 1; } + grep -qxF "cp -f -t common/documentserver/home/license/$repo $parts/$repo/LICENSES/*" <<<"$recipe" \ + || { echo "::error::the documentserver recipe does not ship the licence texts of $repo"; exit 1; } +done +# The server build lists its npm packages in license/server/ (server npm-licences.js). +grep -qxF "{ echo; cat common/documentserver/home/license/server/3DPARTY.md; } >> common/documentserver/home/3rd-Party.txt" <<<"$recipe" \ + || { echo "::error::the documentserver recipe does not add the server's npm packages to 3rd-Party.txt"; exit 1; } # The editors' About links web-apps/LICENSE.txt (web-apps build/about-html.mjs # LOCAL_LICENCE_URL), served by the web-apps location in ds-docservice.conf. grep -qxF 'cp -f LICENSE common/documentserver/home/web-apps/LICENSE.txt' <<<"$recipe" \ From c9c986e6e62af6656aed1d5a5a7b5403ee2dd001 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Sat, 21 Nov 2026 23:06:00 +0100 Subject: [PATCH 21/28] fix(license): point the third-party lists to the licence texts' installed paths 3DPARTY.md links LICENSES/ in its repository; the packages install those texts in license//. Signed-off-by: Julius Knorr Assisted-by: ClaudeCode:claude-opus-5-5 --- Makefile | 8 ++++---- test/licence-metadata.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 3f28034..861ddc1 100644 --- a/Makefile +++ b/Makefile @@ -402,14 +402,14 @@ ifeq ($(PLATFORM),win) cat exe/license/3rd-Party.txt >> $(DOCUMENTSERVER)/3rd-Party.txt endif - # The third-party lists of core, web-apps and sdkjs and the licence texts they ship - { echo; cat $(SOURCE_ROOT)/core/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt + # The third-party lists of core, web-apps and sdkjs, linking the licence texts they ship + { echo; sed 's|LICENSES/|license/core/|g' $(SOURCE_ROOT)/core/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt mkdir -p $(DOCUMENTSERVER)/license/core cp -f -t $(DOCUMENTSERVER)/license/core $(SOURCE_ROOT)/core/LICENSES/* - { echo; cat $(SOURCE_ROOT)/web-apps/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt + { echo; sed 's|LICENSES/|license/web-apps/|g' $(SOURCE_ROOT)/web-apps/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt mkdir -p $(DOCUMENTSERVER)/license/web-apps cp -f -t $(DOCUMENTSERVER)/license/web-apps $(SOURCE_ROOT)/web-apps/LICENSES/* - { echo; cat $(SOURCE_ROOT)/sdkjs/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt + { echo; sed 's|LICENSES/|license/sdkjs/|g' $(SOURCE_ROOT)/sdkjs/3DPARTY.md; } >> $(DOCUMENTSERVER)/3rd-Party.txt mkdir -p $(DOCUMENTSERVER)/license/sdkjs cp -f -t $(DOCUMENTSERVER)/license/sdkjs $(SOURCE_ROOT)/sdkjs/LICENSES/* # The npm packages in the server binaries: list and texts from the server build diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index c1a1e79..cf8d4a5 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -85,7 +85,7 @@ fi # licence texts license//; the packages and the image ship both. recipe=$(make -n documentserver SOURCE_ROOT="$parts") for repo in core web-apps sdkjs; do - grep -qxF "{ echo; cat $parts/$repo/3DPARTY.md; } >> common/documentserver/home/3rd-Party.txt" <<<"$recipe" \ + grep -qxF "{ echo; sed 's|LICENSES/|license/$repo/|g' $parts/$repo/3DPARTY.md; } >> common/documentserver/home/3rd-Party.txt" <<<"$recipe" \ || { echo "::error::the documentserver recipe does not add the third-party list of $repo to 3rd-Party.txt"; exit 1; } grep -qxF "cp -f -t common/documentserver/home/license/$repo $parts/$repo/LICENSES/*" <<<"$recipe" \ || { echo "::error::the documentserver recipe does not ship the licence texts of $repo"; exit 1; } From 121355c6d4140eb7f0581a2517ef5d4f50a2a656 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Thu, 3 Dec 2026 13:52:24 +0100 Subject: [PATCH 22/28] test(package): accept the Linux DS_ROOT without a trailing slash Signed-off-by: Julius Knorr Assisted-by: ClaudeCode:claude-opus-5-5 --- test/licence-metadata.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index cf8d4a5..70e700a 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -49,7 +49,8 @@ done # one MODIFICATIONS.txt next to NOTICE; the exe ships that whole directory. # Only release builds carry the full dated record; other builds ship the note. builds='builds carry the full dated record, other builds point to the git history' -tr -s ' \n' ' ' < "$copyright" | grep -qF "listed in MODIFICATIONS.txt, installed next to NOTICE in /var/www/euro-office/documentserver/. Release $builds" \ +# DS_ROOT ends in a slash on macOS only. +tr -s ' \n' ' ' < "$copyright" | grep -qE "listed in MODIFICATIONS\.txt, installed next to NOTICE in /var/www/euro-office/documentserver/?\. Release $builds" \ || { echo "::error::debian/copyright does not point to MODIFICATIONS.txt or says every build carries the dated record"; exit 1; } eval "$render" | tr -s ' \n' ' ' | grep -qF "listed in MODIFICATIONS.txt: release $builds" \ || { echo "::error::NOTICE does not point to MODIFICATIONS.txt or says every build carries the dated record"; exit 1; } From 47733390e2f975fb2c0d599d8b9c037fc108b627 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Thu, 3 Dec 2026 15:34:43 +0100 Subject: [PATCH 23/28] docs: name the ONLYOFFICE origin and the licence terms in the README 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 Assisted-by: ClaudeCode:claude-opus-5-5 No-test: README text only --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 789ce98..e17c22b 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,8 @@ This repo contains packaging data for [Euro-Office Document Server](https://github.com/Euro-Office/DocumentServer). -This module is released under an GNU AGPL v3.0 license. See the LICENSE file for more information. +## Origin and licence + +document-server-package is based on the original ONLYOFFICE software developed by Ascensio System SIA ([ONLYOFFICE/document-server-package](https://github.com/ONLYOFFICE/document-server-package)). Euro-Office is not affiliated with, endorsed by, or sponsored by Ascensio System SIA. ONLYOFFICE is a trademark of Ascensio System SIA. + +document-server-package is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only) with the additional terms under its Section 7 in [LICENSE](LICENSE): retention of notices and attribution, modification notices, legal notices in user interfaces, no trademark licence, and CC BY-SA 4.0 for non-code content. The changes made by the Euro-Office contributors are tracked in the git history, see `MODIFICATIONS.txt`. From 2e63cf70bd5c3c53d547afa2c4a76f7399474445 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Thu, 3 Dec 2026 16:19:25 +0100 Subject: [PATCH 24/28] feat(license): combine DocumentServer's own modification record DocumentServer now has a MODIFICATIONS.txt of its own (files changed there point to it), so the documentserver recipe adds it as a part, from SOURCE_ROOT itself. licence-metadata.sh expects its section. Signed-off-by: Julius Knorr Assisted-by: ClaudeCode:claude-opus-5-5 --- Makefile | 5 +++-- test/licence-metadata.sh | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 861ddc1..ff42d6a 100644 --- a/Makefile +++ b/Makefile @@ -68,9 +68,10 @@ DOCUMENTSERVER_FILES += $(DOCUMENTSERVER)/sdkjs-plugins 3RD_PARTY_LICENSE_FILES += $(DOCUMENTSERVER)/server/license # Records of the repos whose code the documentserver bundle ships, in the -# DocumentServer checkout layout (SOURCE_ROOT holds the sibling submodules). +# DocumentServer checkout layout (SOURCE_ROOT is DocumentServer itself and holds +# the sibling submodules). SOURCE_ROOT ?= .. -MODIFICATIONS_PARTS ?= $(foreach repo,core sdkjs web-apps server sdkjs-forms,$(SOURCE_ROOT)/$(repo)/MODIFICATIONS.txt) MODIFICATIONS.txt +MODIFICATIONS_PARTS ?= $(foreach repo,core sdkjs web-apps server sdkjs-forms,$(SOURCE_ROOT)/$(repo)/MODIFICATIONS.txt) $(SOURCE_ROOT)/MODIFICATIONS.txt MODIFICATIONS.txt LICENSE_FILE := $(firstword $(wildcard $(BRANDING_DIR)/common/documentserver/license/$(PACKAGE_NAME)/LICENSE.txt) LICENSE) HTMLFILEINTERNAL = $(DOCUMENTSERVER)/server/FileConverter/bin/HtmlFileInternal/HtmlFileInternal diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index 70e700a..5ce0cf6 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -62,16 +62,18 @@ for repo in $repos; do mkdir "$parts/$repo" printf 'This program is based on the original ONLYOFFICE software developed by Ascensio System SIA.\nSee LICENSE for the licence terms.\n\nModifications to %s\nentry\n' "$repo" > "$parts/$repo/MODIFICATIONS.txt" done +# DocumentServer's own part, at SOURCE_ROOT itself +printf 'Modifications to DocumentServer\nentry\n' > "$parts/MODIFICATIONS.txt" combine=$(make -n documentserver SOURCE_ROOT="$parts" | sed -n 's/^\(.*combine-modifications\.sh .*\) > common\/documentserver\/home\/MODIFICATIONS\.txt$/\1/p') [ -n "$combine" ] || { echo "::error::the documentserver recipe no longer writes MODIFICATIONS.txt"; exit 1; } combined=$(eval "$combine") [ "$(grep -c '^This program is based on the original ONLYOFFICE software' <<<"$combined")" = 1 ] \ || { echo "::error::the combined MODIFICATIONS.txt does not have the preamble exactly once"; exit 1; } -for repo in $repos document-server-package; do +for repo in $repos DocumentServer document-server-package; do [ "$(grep -cx "Modifications to $repo" <<<"$combined")" = 1 ] \ || { echo "::error::the combined MODIFICATIONS.txt lacks one section for $repo"; exit 1; } done -[ "$(grep -c '^Modifications to ' <<<"$combined")" = 6 ] || { echo "::error::the combined MODIFICATIONS.txt has unexpected sections"; exit 1; } +[ "$(grep -c '^Modifications to ' <<<"$combined")" = 7 ] || { echo "::error::the combined MODIFICATIONS.txt has unexpected sections"; exit 1; } echo 'entry' > "$parts/server/MODIFICATIONS.txt" if (eval "$combine") >/dev/null 2>&1; then echo "::error::combining MODIFICATIONS.txt succeeds with a part that has no section" From 9dd492c1d3b5838949dbacca298a5c54d69ba6b6 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Thu, 3 Dec 2026 16:25:15 +0100 Subject: [PATCH 25/28] chore(license): add Euro-Office notices to files we changed Stamped with licence-modification-tooling 21b5fbf (relicence.sh). Signed-off-by: Julius Knorr Assisted-by: ClaudeCode:claude-opus-5-5 --- Makefile | 3 +++ common/documentserver-example/welcome/admin-disabled.html | 5 +++++ common/documentserver-example/welcome/css/stylesheet.css | 5 +++++ common/documentserver-example/welcome/docker.html | 5 +++++ common/documentserver-example/welcome/example-disabled.html | 5 +++++ common/documentserver-example/welcome/k8s.html | 5 +++++ common/documentserver-example/welcome/linux-rpm.html | 5 +++++ common/documentserver-example/welcome/linux.html | 5 +++++ common/documentserver-example/welcome/win.html | 5 +++++ test/licence-metadata.sh | 3 +++ 10 files changed, 46 insertions(+) diff --git a/Makefile b/Makefile index ff42d6a..03ea3c6 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Euro-Office contributors +# Modified by Euro-Office contributors, see MODIFICATIONS.txt + PWD := $(shell pwd) CURL := curl -s -L -o TOUCH := touch diff --git a/common/documentserver-example/welcome/admin-disabled.html b/common/documentserver-example/welcome/admin-disabled.html index 71252d8..2f997a6 100644 --- a/common/documentserver-example/welcome/admin-disabled.html +++ b/common/documentserver-example/welcome/admin-disabled.html @@ -23,6 +23,11 @@ * --> + + {{COMPANY_NAME}} Docs - Admin Panel disabled diff --git a/common/documentserver-example/welcome/css/stylesheet.css b/common/documentserver-example/welcome/css/stylesheet.css index 8e4fe5e..35f5c59 100644 --- a/common/documentserver-example/welcome/css/stylesheet.css +++ b/common/documentserver-example/welcome/css/stylesheet.css @@ -16,6 +16,11 @@ * */ +/* + * SPDX-FileCopyrightText: Euro-Office contributors + * Modified by Euro-Office contributors, see MODIFICATIONS.txt + */ + html { height: 100%; width: 100%; diff --git a/common/documentserver-example/welcome/docker.html b/common/documentserver-example/welcome/docker.html index d18cd6a..aa9d506 100644 --- a/common/documentserver-example/welcome/docker.html +++ b/common/documentserver-example/welcome/docker.html @@ -22,6 +22,11 @@ * --> + + {{COMPANY_NAME}} Docs {{OFFICIAL_PRODUCT_NAME}} diff --git a/common/documentserver-example/welcome/example-disabled.html b/common/documentserver-example/welcome/example-disabled.html index 5adf7bb..d4d4fab 100644 --- a/common/documentserver-example/welcome/example-disabled.html +++ b/common/documentserver-example/welcome/example-disabled.html @@ -23,6 +23,11 @@ * --> + + {{COMPANY_NAME}} Docs - Test example disabled diff --git a/common/documentserver-example/welcome/k8s.html b/common/documentserver-example/welcome/k8s.html index 64028de..a6acacc 100644 --- a/common/documentserver-example/welcome/k8s.html +++ b/common/documentserver-example/welcome/k8s.html @@ -22,6 +22,11 @@ * --> + + {{COMPANY_NAME}} Docs {{OFFICIAL_PRODUCT_NAME}} diff --git a/common/documentserver-example/welcome/linux-rpm.html b/common/documentserver-example/welcome/linux-rpm.html index 8c89f1a..13a84f5 100644 --- a/common/documentserver-example/welcome/linux-rpm.html +++ b/common/documentserver-example/welcome/linux-rpm.html @@ -22,6 +22,11 @@ * --> + + {{COMPANY_NAME}} Docs {{OFFICIAL_PRODUCT_NAME}} diff --git a/common/documentserver-example/welcome/linux.html b/common/documentserver-example/welcome/linux.html index 8c89f1a..13a84f5 100644 --- a/common/documentserver-example/welcome/linux.html +++ b/common/documentserver-example/welcome/linux.html @@ -22,6 +22,11 @@ * --> + + {{COMPANY_NAME}} Docs {{OFFICIAL_PRODUCT_NAME}} diff --git a/common/documentserver-example/welcome/win.html b/common/documentserver-example/welcome/win.html index c91c859..1651c66 100644 --- a/common/documentserver-example/welcome/win.html +++ b/common/documentserver-example/welcome/win.html @@ -22,6 +22,11 @@ * --> + + {{COMPANY_NAME}} Docs {{OFFICIAL_PRODUCT_NAME}} diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index 5ce0cf6..a0a07d0 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: AGPL-3.0-only +# SPDX-FileCopyrightText: Euro-Office contributors + # Renders debian/copyright and fails if the dropped logo term or the old # Section 7(a) warranty clause (not in the 9.4 terms) comes back or the 9.4 # additional terms (7(b) notices, 7(e) trademarks) go missing, and renders From d025538dc022fba09fb265484c5142a621064952 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Thu, 3 Dec 2026 16:25:15 +0100 Subject: [PATCH 26/28] chore(license): add MODIFICATIONS.txt Signed-off-by: Julius Knorr Assisted-by: ClaudeCode:claude-opus-5-5 --- MODIFICATIONS.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 MODIFICATIONS.txt diff --git a/MODIFICATIONS.txt b/MODIFICATIONS.txt new file mode 100644 index 0000000..9392729 --- /dev/null +++ b/MODIFICATIONS.txt @@ -0,0 +1,7 @@ +This program is based on the original ONLYOFFICE software developed by Ascensio System SIA. +See LICENSE for the licence terms. + +Modifications to document-server-package +The modifications made by the Euro-Office contributors are listed, with their dates, in the +git history: https://github.com/Euro-Office/document-server-package/commits +Release packages ship the full dated record as MODIFICATIONS.txt. From 5478ff4e13c231e056a5b63e4afba528863d96cc Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Thu, 3 Dec 2026 21:18:10 +0100 Subject: [PATCH 27/28] ci(licence): run the licence gate on GitHub-hosted runners 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 Assisted-by: ClaudeCode:claude-opus-5-5 No-test: CI config, proven by the licence check on this PR --- .github/workflows/licence.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/licence.yml b/.github/workflows/licence.yml index de30565..afdece5 100644 --- a/.github/workflows/licence.yml +++ b/.github/workflows/licence.yml @@ -32,7 +32,7 @@ concurrency: jobs: licence: - runs-on: [self-hosted, ubuntu-latest] + runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: From 2e1d3ceb3c800faf9c29efa0f75108be369712b1 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Fri, 4 Dec 2026 09:00:19 +0100 Subject: [PATCH 28/28] feat(notice): name the exact source commits of the build With BUILD_COMMITS ("DocumentServer= core= ...", product repo first), NOTICE names the version, the DocumentServer commit and the commit of each component. Without it NOTICE keeps the generic org link. Signed-off-by: Julius Knorr Assisted-by: ClaudeCode:claude-opus-5-5 --- Makefile | 8 +++++++- NOTICE.m4 | 8 ++++++++ test/licence-metadata.sh | 6 ++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 03ea3c6..5e7a667 100644 --- a/Makefile +++ b/Makefile @@ -309,6 +309,12 @@ CURRENT_YEAR := $(shell date +"%Y") M4_PARAMS += -D M4_CURRENT_YEAR=$(CURRENT_YEAR) M4_PARAMS += -D M4_CONTRIBUTORS_YEARS=2025-$(CURRENT_YEAR) +# The commits of this build, product repo first, e.g. +# "DocumentServer= core= ...". Without them NOTICE names the org. +SOURCE_COMMITS = $(subst =, ,$(BUILD_COMMITS)) +NOTICE_PARAMS = -D M4_SOURCE_REPO='$(word 1,$(SOURCE_COMMITS))' -D M4_SOURCE_COMMIT='$(word 2,$(SOURCE_COMMITS))' \ + -D M4_COMPONENT_COMMITS="$$(printf '%s %s\n' $(wordlist 3,$(words $(SOURCE_COMMITS)),$(SOURCE_COMMITS)))" + RPMBUILD_BINARY_PAYLOAD ?= w9T$(shell nproc).xzdio RPM_PARAMS += --define '_package_name $(PACKAGE_NAME)' @@ -422,7 +428,7 @@ endif cp -f -t $(DOCUMENTSERVER) $(LICENSE_FILE) LICENSE-CC.txt # nginx serves web-apps/, so the editors' About links the licence offline cp -f $(LICENSE_FILE) $(DOCUMENTSERVER)/web-apps/LICENSE.txt - m4 $(M4_PARAMS) NOTICE.m4 > $(DOCUMENTSERVER)/NOTICE + m4 $(M4_PARAMS) $(NOTICE_PARAMS) NOTICE.m4 > $(DOCUMENTSERVER)/NOTICE ./combine-modifications.sh $(MODIFICATIONS_PARTS) > $(DOCUMENTSERVER)/MODIFICATIONS.txt chmod u+x $(DOCUMENTSERVER)/server/FileConverter/bin/x2t$(EXEC_EXT) diff --git a/NOTICE.m4 b/NOTICE.m4 index 6c9a374..98bc08b 100644 --- a/NOTICE.m4 +++ b/NOTICE.m4 @@ -31,5 +31,13 @@ favicon_eo.svg, footer_help_eo.svg and mobile-logo_eo.svg are Material Symbols by Google, recoloured, licensed under the Apache License 2.0: https://www.apache.org/licenses/LICENSE-2.0 +ifelse(M4_SOURCE_COMMIT, `', `dnl The complete corresponding source code is available at: https://github.com/Euro-Office +', `dnl +The complete corresponding source code of this version, M4_PACKAGE_VERSION, is +commit M4_SOURCE_COMMIT of M4_SOURCE_REPO: +https://github.com/Euro-Office/M4_SOURCE_REPO/tree/M4_SOURCE_COMMIT +with its components at these commits: +M4_COMPONENT_COMMITS +')dnl diff --git a/test/licence-metadata.sh b/test/licence-metadata.sh index a0a07d0..7aa6cbc 100755 --- a/test/licence-metadata.sh +++ b/test/licence-metadata.sh @@ -48,6 +48,12 @@ done for t in 'Copyright (C) 2025-' '(AGPL-3.0-only) with the additional terms under its Section 7' 'https://creativecommons.org/licenses/by-sa/4.0/legalcode'; do eval "$render" | tr -s ' \n' ' ' | grep -qF -e "$t" || { echo "::error::NOTICE lacks '$t'"; exit 1; } done +# NOTICE names the exact source of a build given its commits, else the org. +eval "$render" | grep -qxF 'https://github.com/Euro-Office' || { echo "::error::NOTICE without BUILD_COMMITS lacks the generic source line"; exit 1; } +a=$(printf '1%.0s' {1..40}) b=$(printf '2%.0s' {1..40}) +eval "$(make -n documentserver PRODUCT_VERSION=9.4.0 BUILD_NUMBER=1 BUILD_COMMITS="DocumentServer=$a core=$b " | sed -n 's/^\(m4 .* NOTICE\.m4\) > .*/\1/p')" | tr -s ' \n' ' ' \ + | grep -qF "source code of this version, 9.4.0-1, is commit $a of DocumentServer: https://github.com/Euro-Office/DocumentServer/tree/$a with its components at these commits: core $b" \ + || { echo "::error::NOTICE does not name the source commits of the build"; exit 1; } # The documentserver recipe combines the records of the shipped repos into # one MODIFICATIONS.txt next to NOTICE; the exe ships that whole directory. # Only release builds carry the full dated record; other builds ship the note.