Asset Always showing Modified during "Import from AEM Server " in Visual Code Studio | Community
Skip to main content
SkyGazer
Level 2
February 1, 2022
Solved

Asset Always showing Modified during "Import from AEM Server " in Visual Code Studio

  • February 1, 2022
  • 1 reply
  • 1277 views

Hi All,

 

I have created a AEM project using AEM-Archetype 32. 

 

I am using Visual Code Studio for development. Assume my /content/dam folder contains some digital assets and I am going to add one new image to my dam folder.

 

After uploading I used "Import from AEM Server" Option in Visual Studio Code for downloading it in my local environment. Then when i try to commit it to my AEM Cloud Git Status it showing all the images are modified instead of showing only the last image I added.

 

Any idea why its showing all the assets are modified during Git status ?

 

Cheers 🙂

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by NitinL

@skygazer try to update filter.xml available at ui.content/src/main/content/META-INF/vault/filter.xml path with mode='merge' and  see it it works. 

ie:  <filter root="/content/dam/banner" mode="merge"/>

1 reply

Level 3
February 1, 2022

@skygazer  at first place it seems that you are importing parent /content/dam folder from remote server and due to that all the assets are getting imported again in your local, which might be updating modified date of imported assets. work around to solve this problem is selective commit, instead of committing complete content/dam, just commit added/modified asset only.

 

SkyGazer
SkyGazerAuthor
Level 2
February 2, 2022

Hi @nitinl ,

 

Those assets are showing modified whenever I tried to import from AEM Server.

 

Assume we have folder named "banner" and inside that we have around 10 assets and we are adding one more asset to the banner folder. And when I tried to do import the asset by selecting the folder from visual studio , I am not getting why its showed modified all the times whenever I tried commit to server all the time.

 

 

Cheers 🙂

 

NitinLAccepted solution
Level 3
February 2, 2022

@skygazer try to update filter.xml available at ui.content/src/main/content/META-INF/vault/filter.xml path with mode='merge' and  see it it works. 

ie:  <filter root="/content/dam/banner" mode="merge"/>