Upload and install package via curl

It happened recently where I needed to install a package via curl because of UI issues and connection issues with a server.  Here’s a fleshed out command that will store the output to a file and show a progress bar: curl -u username:password -F file=@”./YourPackage.zip” -F name=“Package” -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp –progress-bar -o upload.txt […]

Sling Authentication Servlet – Secret powers for access

The sling authentication service (org.apache.sling.engine.impl.auth.SlingAuthenticator) controls a bunch of different functions but the most critical is that it determines what an anonymous user can access.  Why do you care? A number of the different default behaviors between author and publish mode servers come from changes to the default configuration to this service.  In Author mode, anonymous […]

Programmatically updating OSGI service configurations

Nate Yolles has a great post about the inner workings of how you can programmatically update OSGI services in AEM: http://www.nateyolles.com/blog/2015/10/updating-osgi-configurations-in-aem-and-sling   As a general rule, I prefer configurations to be static, so they can be tracked in a version control system and targeted at sling runmodes, but there may be circumstances where updating configs […]