Menu

AEM as cloud service, /apps and /libs directories are in ready only mode

AEM cloud service makes the out of the box and custom codes immutable. Once we deployed the code in AEM server, we will not be able to modify or create any content or node under the /apps and /libs directories using CRXDE Lite. When we try to do so, then it will throw an error "Could not save changes. Received 500 () for saving changes in workspace crx.default. Unknown error (Error Code: 500) OR Could not save changes. Received 409 () for saving changes in workspace crx.default. org.apache.jackrabbit.oak.spi.state.ReadyOnlyBuilderException: This builder is read-only.". Below is the screenshot, when we tried creating a folder "myProject" under /apps folder.

AEM as cloud service, could not save changes


The only way to change the code is go for a fresh build and deploy the code. You may read more about mutable and immutable concept and could service project structure in our previous post Package shouldn't contain mutable and Immutable content. [https://rashidjorvee.blogspot.com/2020/07/aem-cloud-service-ImmutableMutableMixedPackage.html]

Hope this helps you!

References:

Why people consume too much spices, specially those who are living in high temperature region? | ABOUT SPICES

Different kind of Spices
Those of us who don't live in desert countries or in extreme temperatures tend to think that a refreshing drink is a good solution to relieve heat. 
And it is curious from a distance to observe how the gastronomy of those countries is rich in spices and spicy flavors. 
What seems contradictory has a scientific and physiological explanation. 

I'm Spanish. I have always had the desire to know India and immerse myself in its smells, colors and enjoy the hospitality of its people. My friends told me: “it is very hot there! You won't resist it! ” 
But I am a curious person and I started to investigate. 
Although in many articles I read that the best thing to do was to hydrate yourself abundantly, I found in a scientific magazine what was going to answer not only my foreseeable problems with heat but also the reason for the success of spicy foods in India. 

It seems that taking spices and hot peppers increases the internal heat of the organism until they equal it with that of the environment. 
This stimulates blood circulation and produces more sweat, the evaporation of which helps us to cool down. 

Perhaps you, Indian readers, don't think while you are cooking that your preference for these flavors comes from an ancient custom. 
Rather we would be talking about how their ancestors searched in nature for a way to combat the heat without having to consult Google.

Git diff is showing complete file content as changed but there is only few line of changes in file.

This is expected behavior of Git diff and there is nothing wrong in this case. See the issue 52036
When we look the plain diff, we can see that, the old content used Windows style line endings (CR LF), whereas the new content is stored with Unix style line endings (LF).
>> old style.scss file content
Line 1 CR LF
Line 2 CR LF 
>> new style.scss file content
Line 1 LF
Line 2 LF 
We may skip those white space changes from compression using GitLab or Git via UI or command line. 
Steps to hide/ignore white space changes from git diff.
  1. Go to your merge request.
  2. Navigate to change between section.
  3. Click on the setting button, from right side of "change between section"
  4. Unchecked the option "Show whitespace changes"
After doing this you the compare section will show only real changes. Below is the screenshot which you refer.
Show-whitespace-changes-git-diff


We can also see the exact diff using ignore space command
git diff --ignore-space-at-eol

References