Menu

AEM Cloud Service deployment issue | Packages shouldn't mix mutable and immutable content

While deploying our old Adobe Experience Manager(AEM) code to AEM cloud service, we find some code smell issues,
ImmutableMutableMixedPackage in project build issue report. We will understand this issue here and also look how to fix this code issue from project.

Lets first understand what part of our AEM project is mutable and immutable.

Mutable

/content , /conf , /var , /etc , /oak:index , /system , /tmp , etc. are all mutable areas of AEM project, it means they can be changed at runtime.

Immutable

/apps and /libs are considered immutable areas of AEM as they cannot be changed and we are not allowed to perform CUD(create, update, delete) operation at runtime. Any attempt to change an immutable area at runtime will fail. On immutable areas we can only perform the read operation.

Issue Description


In order to make our project compatible with Cloud Service deployment model, individual content packages must contain either content for the immutable areas of the repository (that is, /apps and /libs, although /libs should not and never be modified by custom code and will cause a separate violation) or the mutable area (that is, everything else), but not both. For example, a package which includes both /apps/myproject/components/text and /etc/clientlibs/myproject is not compatible with Cloud Service and will cause an issue to be reported.
When we try to edit file under /apps directory and save, aem will not allow and show error message "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."

Who bring the Coffee to India?

Coffee is a middle eastern drink prepare from Coffee beans. Coffee came in India in 16th century, when a Sufi saint Baba Budan. When he was returning from Hajj, he brings seven raw seeds of Coffee from a port of Yemen, so he can plant in India. Later he planted those beans near to his khanqah in Chandragiri Hills. 
Baba Budan shrine[Bababudangiri shrine] is located in southern part of India in Chikmagaluru District of state of Karnataka.

References:

  1. History of Coffee in India
  2. How coffee came to India?
  3. Coffee origin in India
  4. Coffee production in India | Wikipedia
  5. Sufi Saint Baba Budan

Roasted Coffee beans
Roasted coffee beans

"Right to THINK" a Human Rights

No one have right to force his/her own feeling and decision on others. every people have their own logic and aspect of thinking(except minors). Weather that person is illiterate or educated, the power of thinking, thought and decision making human received from the nature and even animals and birds can think and used to take decision, what is good and bad for them and their life.
You can't force someone to follow your decision, better you let that person understand and give some facts and valid reason to he/she could come to your decision of next to your decision.

Right to think and expression is a human rights and also the fundamental rights given by the constitution of a state. Every person shall have the equal rights to take his or her own decisions but make sure that, those decision should not harm others and violent the rights of others, if it does so then it will become a crime.