- Mar 04, 2025
-
-
Manuel Leduc authored
Fix coverage ratio.
-
Michael Hamann authored
* Fix the test for 16.4.x
-
- Feb 27, 2025
-
-
github-actions[bot] authored
(cherry picked from commit 51718c85) Co-authored-by:
Manuel Leduc <manuel.leduc@xwiki.com>
-
github-actions[bot] authored
XWIKI-22626: Long file names collide with elements from the right side on Office Importer on Firefox (#3761) (#3938) * Fixed the overflow by adding a max-width. This is a safe change that will only act when there's an overflow. The regular use case shouldn't be influenced by this change. (cherry picked from commit 83139b92) Co-authored-by:
LucasC <lucas.charpentier@xwiki.com>
-
Simon Urli authored
* Fix the query for getting children references to use current document wiki * Fix related test (cherry picked from commit 3a728589)
-
Michael Hamann authored
XWIKI-18687: The first heading is only partially excluded and transformed into content on Include/Display Macro when including a section * Properly remove the first heading when including a section. * Adjust the test case to cover headings with several words. (cherry picked from commit 4450d4e2)
-
Michael Hamann authored
* Introduce a new instance input property to exclude certain property classes. * Use this mechanism to exclude email and password properties in the Document API. (cherry picked from commit 742ee348)
-
Simon Urli authored
This reverts commit 9f6cb03a.
-
Simon Urli authored
* Fix wrong deprecated annotation (cherry picked from commit 97cab6fb)
-
- Feb 26, 2025
-
-
Simon Urli authored
* Start work to have specific handling of WebPreferences in case of move/rename/copy of a full space * Fix unused import * Provide integration test * Fix wrong conditions * Add unit tests (cherry picked from commit 594fd60d)
-
Simon Urli authored
* Fix problems when trying to rename an entire space * Ensure to cover this UC in unit tests (cherry picked from commit ba4bd1e0) (cherry picked from commit 61fd5777)
-
Simon Urli authored
XWIKI-22571: Backlinks update changes an absolute reference to the moved page into one relative to the current wiki * Update test (cherry picked from commit 4904b347)
-
Simon Urli authored
XWIKI-22571: Backlinks update changes an absolute reference to the moved page into one relative to the current wiki (#3654) * Use default serializer if the wiki is present in a link, not the compact serializer * Provide unit test and integration test to cover this * Fix DeletePageIT tests * simplify condition by using the relative resource reference resolver * fix tests (cherry picked from commit d2d9a575)
-
Simon Urli authored
* ugly fix of the page reference regression and cover it with integration test (cherry picked from commit 60b05424)
-
Simon Urli authored
The idea of this work is to: * Change the way AbstractCopyOrMoveJob works to perform computation of couple source/target documents before processing them * Provide a way to access that map source/target documents * Use that information when performing a call to ReferenceRenamer to define if a relative untyped link should be handled or not The PR provides mainly: - new APIs in ReferenceRenamer and MacroRefactoring to integrate the map of references that have been moved as part of same job - refactorings of AbstractCopyOrMoveJob: * specific computation of getEntities to actually visit the hierarchy and populate the entities with the couple of source/target documents * new abstract methods to avoid duplications (not strictly needed for this work) * new method to retrieve the map of source/target documents - new conditions in ResourceReferenceRenamer to decide if a link should be renamed or not: most of the logic of the fix is encoded there (see also clarifications) - new calls in XWiki#updateLinksForRename and BackLinkUpdaterListener#updateBackLinks to give the map of source/target when calling the rename of references - new integration test simulating the scenario indicated in the ticket and also performing a supplementary check related to a regression found afterwards - same integration test also performed on a subwiki in SubWikiIT The refactoring of references is currently called at two places: by the BackLinkUpdaterListener for all backlinks after a document has been renamed (triggered by a document event) by XWiki#updateLinksForRename to rename the internal links of the current document (which is always a call to updateResourceReferenceRelative, see below) The problem of XWIKI-12987 is that XWiki#updateLinksForRename is called first and does perform an absolute rename of the relative links. Now ResourceReferenceRenamer APIs names might be misleading: updateResourceReferenceRelative and updateResourceReferenceAbsolute are not about the references being absolute or relative: it's about the renamed references being absolute or relative respectively to the current document. It took me a while to integrate this, and I'm still struggling a bit with it. So the problem was to find a proper condition to decide when to not refactor links, for this I'm performing a check for assessing if a link is absolute or not, by trying to resolve the ResourceReference without any parameter: if the result equals the reference with parameter then it was absolute. Then for the updateResourceReferenceAbsolute the idea is to only perform update of the links, if the provided link is absolute, or if it's relative but the current document hasn't been moved as part of same job: in such case we do need to update the relative link, because there won't be a call to XWiki#updateLinksForRename on that document to update the link, we only get the call from BackLinkUpdaterListener. For the updateResourceReferenceRelative the check is a bit more complex. We only update links that are relative here, we don't want to update absolute references (is that correct? Can't find a counter example right now). Then since we only perform refactoring of links relative to current document, we also check that the link about to be refactored is not related to pages that are part of the moved document in the same job: if those are also moved in the same job, then they're moved using same "direction", they're part of same hierarchy and we don't want to change the relative links wrt to them. This check is the main part of avoiding to update the relative links. And finally we perform the update of the link only if the doc actually exists: we would create absolute links for those not existing doc, which doesn't make sense, we should keep the relative link we don't really know what the user wanted to do with those. Note that we could do the same check in updateResourceReferenceAbsolute but we don't really have the need since this is only called from the BackLinkUpdaterListener and if I'm correct we'll never have registered backlinks for a not existing doc. Note that initially we discussed about using untyped link as a condition to perform or not the refactoring: I dropped the idea because we currently always create image resource references as untyped references from the WYSIWYG editor. Note that this work currently includes a known regression when renaming links on the form `page:../SubSpace/Page`, this is going to be handled in further work. (cherry picked from commit fc01c140)
-
Simon Urli authored
(cherry picked from commit 65acde03)
-
Simon Urli authored
* Minor improvment (cherry picked from commit a5f4f86c)
-
* remove unused import (cherry picked from commit b845a4a7)
-
Simon Urli authored
* Provide EntityReference#getParentType * Use it in AbstractReferenceEntityReferenceResolver * Provide a new test * add more explanatory tests * Improve a bit the checks when setting the fallbackParentType parameter value * use back parentType parameter key name (cherry picked from commit c5b9c605)
-
Simon Urli authored
(cherry picked from commit 4e2efc81)
-
(cherry picked from commit 95e312ab)
-
Simon Urli authored
XWIKI-22583: Allow users with edit rights on a page and all its children to use the Pinned Pages feature * Mitigate possible flickering behaviour (cherry picked from commit 4dd45461)
-
Simon Urli authored
(cherry picked from commit debd178d)
-
- Feb 25, 2025
-
-
Thomas Mortagne authored
(cherry picked from commit 05d35368)
-
Thomas Mortagne authored
(cherry picked from commit 2857e502)
-
Michael Hamann authored
XWIKI-22917: Solr indexing takes very long when there are many objects with different values (#3923) * Use a HashSet to compute unique values instead of a linear search. * Rename LengthSolrInputDocument to XWikiSolrInputDocument. * Use XWikiSolrInputDocument in more places to use the new method. * Add a unit test for XWikiSolrInputDocument. (cherry picked from commit 39e2c7ff)
-
Simon Urli authored
XWIKI-22583: Allow users with edit rights on a page and all its children to use the Pinned Pages feature * Fix flickering test (cherry picked from commit 0b95939a)
-
Simon Urli authored
* Fix flickering test (cherry picked from commit 93fafb7d)
-
- Feb 24, 2025
-
-
Michael Hamann authored
XWIKI-22926: Make it possible to configure the batch size in the Solr index synchronization on startup (#3928) * Add a new configuration property for configuring the batch size of the initial Solr indexing synchronization. * Update and add tests. (cherry picked from commit db2814b6)
-
Thomas Mortagne authored
(cherry picked from commit fa46bfe8)
-
Michael Hamann authored
* Don't do a linear search for finding the object with the correct number. (cherry picked from commit 1bf17199)
-
- Feb 21, 2025
-
-
Michael Hamann authored
* Fix trim being applied to the wrong value. (cherry picked from commit 56158106)
-
Simon Urli authored
XWIKI-22583: Allow users with edit rights on a page and all its children to use the Pinned Pages feature (#3900) * Provide a REST API to manipulate pinned pages with Edit right only * Provide an index script service and an index.tree script service to manipulate pinned pages * Provide tabs in children viewer with a UIXP * Use the UIXP to inject capability to configure pinned pages reusing the navigation panel administration UI * Provide new integration test (cherry picked from commit aaf345bb)
-
Simon Urli authored
* Revert changes related to aria-hidden and tabsindex: we want user to be still able to use keyboard to pin/unpin pages (cherry picked from commit 3ca4f633)
-
- Feb 20, 2025
-
-
github-actions[bot] authored
- Replace & with && in if - Remove superfluous generics definitions - Use new API for maps manipulation (cherry picked from commit 805e91db) Co-authored-by:
Manuel Leduc <manuel.leduc@xwiki.com>
-
Michael Hamann authored
* Ensure that the specified fields are actually valid field names * Don't allow password and email fields * Add tests (cherry picked from commit f2ca8649)
-
- Feb 19, 2025
-
-
Simon Urli authored
* Fix javadoc (cherry picked from commit 5bd54373)
-
- Feb 18, 2025
-
-
Thomas Mortagne authored
* bulletproof the argument displayer to catch any exception * use a more reliable way to identify object types (cherry picked from commit 863e5f54)
-
Simon Urli authored
* Ensure to always send an empty value so that it's always an array sent to the server (cherry picked from commit 66ca574f)
-