|
From: Dannes W. <no...@gi...> - 2026-10-15 06:34:16
|
Branch: refs/heads/develop Home: https://github.com/eXist-db/exist Commit: 63e1aa1706f1d27a650cf038deffa39b73162322 https://github.com/eXist-db/exist/commit/63e1aa1706f1d27a650cf038deffa39b73162322 Author: Joe Wicentowski <jo...@gm...> Date: 2026-10-13 (Tue, 13 Oct 2026) Changed paths: M exist-core/src/main/java/org/exist/Indexer.java A exist-core/src/test/xquery/indexing/cdata-range-index.xqm Log Message: ----------- [bugfix] Store a CDATA section that follows text under a legacy range index Storing a document failed with a NullPointerException when an element with a legacy range index contained a text node followed by a CDATA section, for example <entry>something<![CDATA[Item]]></entry>. The Indexer reuses one text node, which shares charBuf, the buffer of the current character content. endCDATA called setPrevious(cdata) before adding the section's content to the range index buffers; setPrevious clears the previous text node, which resets charBuf, so the content was gone and the append failed. Append first, then call setPrevious, as storeText does. The new range index and the Lucene index were not affected: they collect content through their own listeners. Closes https://github.com/eXist-db/exist/issues/4825 Co-Authored-By: Claude Opus 5.5 (1M context) <no...@an...> Claude-Session: https://claude.ai/code/session_01TLXqAfAP6kHAcWM99TFrxa Commit: 0e0381a7cdf603154037a73b50bfa1c0d8149950 https://github.com/eXist-db/exist/commit/0e0381a7cdf603154037a73b50bfa1c0d8149950 Author: Dannes Wessels <di...@us...> Date: 2026-10-15 (Thu, 15 Oct 2026) Changed paths: M exist-core/src/main/java/org/exist/Indexer.java A exist-core/src/test/xquery/indexing/cdata-range-index.xqm Log Message: ----------- Merge pull request #6840 from joewiz/bugfix/4825-cdata-after-text [bugfix] Store a CDATA section that follows text under a legacy range index Compare: https://github.com/eXist-db/exist/compare/3026c929aea5...0e0381a7cdf6 To unsubscribe from these emails, change your notification settings at https://github.com/eXist-db/exist/settings/notifications |