You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by kw...@apache.org on 2022/04/05 10:45:39 UTC

[jackrabbit-filevault] branch master updated: fix sorting of mixin type values

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git


The following commit(s) were added to refs/heads/master by this push:
     new b43a4060 fix sorting of mixin type values
b43a4060 is described below

commit b43a4060e0b9c0ad91b25113ee2ad27e1cc1cfd6
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Tue Apr 5 12:45:34 2022 +0200

    fix sorting of mixin type values
---
 .../org/apache/jackrabbit/vault/fs/impl/io/DocViewSAXFormatter.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewSAXFormatter.java b/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewSAXFormatter.java
index b52c646a..5b441b46 100644
--- a/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewSAXFormatter.java
+++ b/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewSAXFormatter.java
@@ -257,7 +257,7 @@ public class DocViewSAXFormatter implements AggregateWalkListener {
                 // attribute name (encode property name to make sure it's a valid xml name)
                 String attrName = ISO9075.encode(prop.getName());
                 Name qAttributeName = getQName(attrName);
-                boolean sort = qName.equals(NameConstants.JCR_MIXINTYPES);
+                boolean sort = qAttributeName.equals(NameConstants.JCR_MIXINTYPES);
                 String attributeNamespaceUri = qAttributeName.getNamespaceURI();
                 if (attributeNamespaceUri.length()>0) {
                     writer.writeAttribute(nsResolver.getPrefix(attributeNamespaceUri), attributeNamespaceUri, qAttributeName.getLocalName(),