Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

CRX PckgMngr missing metadata node while building package of assets

sagarv13144480
Level 3
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
Gaurav-Behl
Correct answer by
Community Advisor
Community Advisor

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
Gaurav-Behl
Community Advisor
Community Advisor

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

sagarv13144480
Level 3
Level 3

Hi Gaurav,

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

Gaurav-Behl
Correct answer by
Community Advisor
Community Advisor

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