Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

CRX PckgMngr missing metadata node while building package of assets

Avatar

Level 3

When I am trying to take package of assets while building it is missing metadata node which is already present.

I am unable to understand what is wrong here?

1663631_pastedImage_1.png

1663510_pastedImage_0.png

1 Accepted Solution

Avatar

Correct answer by
Level 10

As mentioned, first check the '.content.xml' file for metadata node. If you can see the metadata node in xml but not in /crx/de then it is an issue with the package filters. open 'filter.xml' and validate that you have "merge" or "update" as applicable based on your requirements

path of filter.xml -  META-INF/vault/filter.xml

Jackrabbit Filevault - Workspace Filter

filter elements

The filter elements are independent of each other and define include and exclude patters for subtrees. The root of a subtree is defined by the root attribute, which must be an absolute path.

The filter element can have an optional mode attribute which specified the import mode used when importing content. the following values are possible:

“replace”
This is the normal behavior. Existing content is replaced completely by the imported content, i.e. is overridden or deleted accordingly.
“merge”
Existing content is not modified, i.e. only new content is added and none is deleted or modified.
“update”
Existing content is updated, new content is added and none is deleted
Share the results based on your findings.

View solution in original post

4 Replies

Avatar

Level 10

can you check the contents of .content.xml under .pdf file or parallel to jcr:content folder?  You should see metadata in that.

Avatar

Level 3

Hi Gaurav,

We are unable to see in CRXde where we want as shown in metadata node image above.

Avatar

Correct answer by
Level 10

As mentioned, first check the '.content.xml' file for metadata node. If you can see the metadata node in xml but not in /crx/de then it is an issue with the package filters. open 'filter.xml' and validate that you have "merge" or "update" as applicable based on your requirements

path of filter.xml -  META-INF/vault/filter.xml

Jackrabbit Filevault - Workspace Filter

filter elements

The filter elements are independent of each other and define include and exclude patters for subtrees. The root of a subtree is defined by the root attribute, which must be an absolute path.

The filter element can have an optional mode attribute which specified the import mode used when importing content. the following values are possible:

“replace”
This is the normal behavior. Existing content is replaced completely by the imported content, i.e. is overridden or deleted accordingly.
“merge”
Existing content is not modified, i.e. only new content is added and none is deleted or modified.
“update”
Existing content is updated, new content is added and none is deleted
Share the results based on your findings.