Hi Jeevan,
Saw same issue, re-engineered Forms to submit data via ajax on Submit into a custom Servlet.
No more not replicatable on OOTB instance issues where data get's duplicated, or submitted as Null under load or exceptions like this one.
Works like charm.
Regards,
Peter
Hi Sonuk,
As per today's Cloud solution[Q1 2023], you need to marry all projects together for the deployment to cloud environment [1]
[1] https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/managing-code/cloud-manager-repositories.htm...
Hi Shelly,
You can include exec plugin to tell you the java version during the build, it will be located in the build logs.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId> <version>1.3.2</version>
<executions>
...
Hi Shelly,
I assume on your local you got Java 11 and pipeline fails with Java 1.8.
Create file .cloudmanager/java-version with 11 as content. [1] complete docs on subject.
This error indicates that code executed on Java 1.8, requires Java 11.
As per mockito-core release notes it's minimum ...
Hi Mahesp,
Either rewrite Util to make into Mickito.Mockable unit or you can include other libs to mock static methods such as PowerMock.
Regards,
Peter
Hi Smahesh,
Kindly update your site webserver configuration inside rewrite rules section of your site .conf file:
RewriteCond %{HTTP_HOST} !^stage-abc.com$
RewriteRule ^(.*)$ https://stage-abc.com [R=301, L]
Regards,
Peter
Dear Maheshp,
Wonderful Sling project has already build a helpful utility library called OSGi mocks[1].
You may wish to utilise OSGi mock's to register ServiceReference and execute steps necessary to get to the actual tests.
[Apache Sling :: OSGi Mocks]
Regards,
Peter
Hi Anasustic,
Mockito is a wonderful library that let's you Mock any third party service that lives outside of your main class.
You can use @Mock annotation to mock any service you do not want to test in this particular tests and inject these into your @test with @RunWith(MockitoJunitRunnr.class...
Hi Roberto,
Just to say, you should really, really, consider using Dispatcher with all security it gives.
Stopping CRX/de is part of good practices.
Please follow this guide, to disable webDav [1]
Similarly, you can use reverse of this guide to achieve same, [2]
[1] Security Checklist | Ad...