since ‎30-05-2017
‎10-12-2019
Jdruwe
Level 4
AEM Publish dispatcher flush agent 200 but file not deleted
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
I am experiencing an issue with my dispatcher flush events. I've set my DispatcherLogLevel to '3' as described here: Troubleshoot Dispatcher flushing issuesLogging:[Mon Feb 12 10:48:49 2018] [D] [31958(140064235280128)] response.status = 200[Mon Feb 12 10:48:49 2018] [D] [31958(140064235280128)] response.headers[Server] = "Communique/2.6.3 (build 5221)"[Mon Feb 12 10:48:49 2018] [D] [31958(140064235280128)] response.headers[Content-Type] = "text/html"[Mon Feb 12 10:48:49 2018] [D] [31958(1400642...

Views

490

Likes

0

Replies

0
Re: AEM 6.3: Felix SCR Annotations Deprecated - Replacement for @SlingFilter?
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
I use OSGI R6 annotation based approach:@Component(service = Filter.class, property = {EngineConstants.SLING_FILTER_SCOPE + "=" + EngineConstants.FILTER_SCOPE_REQUEST,Constants.SERVICE_RANKING + ":Integer=" + -10002})public class MyCustomFilter implements Filter {

Views

2.6K

Likes

0

Replies

0
Re: AEM 6.3, wcm.io: service test not working using OSGi annotations
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
I found out that you had to specify some info in the maven-bundle-plugin:Apache Felix - Apache Felix Bundle Plugin Frequently Asked Questions --> Use SCR metadata generated by BND in Unit Tests. Now my OSGI annotated services test successfully but my felix ones give me the same old error: 'No OSGi SCR metadata found'

Views

420

Like

1

Replies

0
Re: AEM 6.3, wcm.io: service test not working using OSGi annotations
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
The weird things is that I code as described here: Apache Sling :: OSGi Mocks I still get the 'No OSGi SCR metadata found for class com.asadventure.core.service.TestServiceImpl' error:Test:@Rulepublic final OsgiContext context = new OsgiContext();@Testpublic void doTest() {TestService testService = context.registerInjectActivateService(new TestServiceImpl());String value = testService.getValue();assertEquals(value, "test-value-from-service");}Service implementation:import org.osgi.service.compon...

Views

420

Likes

0

Replies

2
Re: AEM 6.3, wcm.io: service test not working using OSGi annotations
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
Seems like I am using the latest versions, I am not sure if wcm io's AemContext can handle a OSGI R6 annotated service.

Views

821

Likes

0

Replies

4
Re: AEM 6.3, wcm.io: service test not working using OSGi annotations
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
Thanks, I'll take a look at those resources. By the way, by 'Sling Model' I meant that that code was part of a class annotated with @Model(adaptables = Resource.class)

Views

821

Likes

0

Replies

1
Re: AEM 6.3, wcm.io: service test not working using OSGi annotations
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
But my TestService is no sling model. It is a simple service, I don't want to inject anything like they do in Multifield example.

Views

821

Likes

0

Replies

4
AEM 6.3, wcm.io: service test not working using OSGi annotations
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
I am experiencing a test issue. My service tests work for my older services (Felix annotation based -> org.apache.felix.scr.annotations.Component) but when I try this for a newer service (OSGI annotation based -> org.osgi.service.component.annotations.Component), I get an error.Service:...import org.osgi.service.component.annotations.Component;@Component(service = TestService.class, immediate = true, property = { Constants.SERVICE_DESCRIPTION + "=" + "Test Service", Constants.SERVICE_VENDOR + "=...

Views

2.4K

Like

1

Replies

12
Re: AEM 6.3: createpagewizard clientlib form validation issue
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
I found the following validation logic:As you can see the "change" event on an input field will trigger the validation logic to run. So what i've done is triggered the change event from code:$(titleTextFieldSelector).trigger("change");Now the button will be enabled

Views

309

Like

1

Replies

0
Re: AEM 6.3: createpagewizard clientlib form validation issue
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
Here you go:

Views

250

Likes

0

Replies

0
AEM 6.3: createpagewizard clientlib form validation issue
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
I have written a custom clientlib that fills in the title on the creation of a page based on the name of the page.What you get by default: no title --> create button disabledWhat you get if you type a title manually --> create button enabledWhat you get if you try to set te value using a clientlib --> create button IS disabled but value set in the textFieldThis is my clientlib code:setTimeout(setTitle, 3000);function setTitle() { let title = document.querySelector(titleTextFieldSelector); title....

Views

601

Like

1

Replies

3
Re: EventListener event never triggered
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
Any idea if this will be fixed in a hotfix or something?

Views

4.3K

Likes

0

Replies

3
Re: EventListener event never triggered
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
I've read your article by now, is this bug being looked into, so I can use a serviceResourceResolver instead of the admin one?

Views

4.3K

Likes

0

Replies

5
Re: AEM Sling custom injector @Source issue.
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
I could use something like here? sling-models-demo/ResourcePathInjector.java at master · justinedelson/sling-models-demo · GitHubResourcePath path = element.getAnnotation(ResourcePath.class);if (path == null) { return null;}

Views

897

Likes

0

Replies

0
Re: AEM Sling custom injector @Source issue.
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
So the @Inject annotation has no @Source annotation pointing to a specific injector so they all pass my customer injector? By "or no custom injector which provides the source value" you mean that the getName method of the injector returns a value matching the value in the @Source annotation?

Views

599

Likes

0

Replies

0
AEM Sling custom injector @Source issue.
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
I have written my own custom annotation 'Jeroen':import com.asadventure.platform.component.text.JeroenInjector;import org.apache.sling.models.annotations.Source;import org.apache.sling.models.spi.injectorspecific.InjectAnnotation;import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionPolicy;import java.lang.annotation.Target;@Target({ElementType.FIELD})@Retention(RetentionPolicy.RUNTIME)@InjectAnnotation@Source(JeroenInjector.NAME)publi...

Views

2.6K

Likes

0

Replies

6
Re: EventListener event never triggered
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
It is, we use the same method all over our code-base to modify all kind of node structures. smacdonald2008 seems to have the same issue.

Views

992

Likes

0

Replies

7
Re: Event Listener Not Working Without Administrative Session
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
Did you fix this, I am experiencing the same issue.

Views

535

Likes

0

Replies

0
Re: EventListener event never triggered
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
It works but only if I use the following code to retrieve a session: observationSession = repository.loginAdministrative(null);If I use the following my onEvent method is never called:ResourceResolver serviceResourceResolver = resolverFactory.getServiceResourceResolver(AutoClosableResourceResolverFactory.getCredentials());Any ideas? NOTE: we use the service user for our entire application (it has all rights)

Views

992

Likes

0

Replies

10
Re: EventListener event never triggered
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
At Adobe Experience Manager Help | Creating an Adobe Experience Manager Event Listener that tags pages they also use felix scr annotations, am I missing something?

Views

992

Likes

0

Replies

0
EventListener event never triggered
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
I am trying to hook to the rollout event of a page to a live copy. I am experimenting with the EvenListener but I am unable to get it to work. This is my code:@Component(metatype = true)@Servicepublic class MyCustomListener implements EventListener {private static final Logger LOG = LoggerFactory.getLogger("logger");@Referenceprivate ResourceResolverFactory resolverFactory;private Session session;private ObservationManager observationManager;public void run() {LOG.info("Running...");}//Place app...

Views

2.2K

Likes

0

Replies

17
Re: [AEM Author instance] Exclude servlet from authentication requirement
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
I am facing a similar issue, I want to allow the user to access AEM-INSTANCE/linkshare.html so I configured the following:I still get the login screen if I navigate to the linkshare url, what am I doing wrong?

Views

1.0K

Likes

0

Replies

0
Re: Allowing anonymous access is not working
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
Even when I do the following I cannot access localhost:4502/linkshare.htmlDo I need to checkbox for this to work? Or what am I doing wrong?

Views

3.5K

Likes

0

Replies

0
Re: Anonymous user missing css
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
Hey grantc I am also trying to expose http://localhost:4502/linkshare.html to anonymous users. Do you mind taking a look at my apache sling authentication service:Does something seem wrong to you?Do you really need to check the 'Allow Anonymous Access' checkbox?Do I also need to give the anonymous user access to read "/"?

Views

946

Likes

0

Replies

0
Re: Allowing anonymous access is not working
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
I know but they (business) like the fancy linkshare download interface

Views

3.5K

Likes

0

Replies

0
Re: Allowing anonymous access is not working
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
How do you mean share them from prod?

Views

3.5K

Likes

0

Replies

3
Re: Allowing anonymous access is not working
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
Yes I am

Views

3.5K

Likes

0

Replies

6
Allowing anonymous access is not working
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
In the 'apache sling authentication service' configuration bundle one can specify pages under authentication requirements. You can allow anonymous access of pages here as the dialog states:I am trying to share asset links to external entities as stated here (Asset link sharing 😞Here is my 'apache sling authentication service' configurationAs you can see I provided 2 absolute url's (not sure if the .html extension is required or not) but this is not working, is still get redirected to the login ...

Views

4.6K

Likes

0

Replies

11
AEM 6.3, sites.html: column view does load extra items
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
We are experiencing an issue on some of our windows machines using chrome in the author environment. In the column view on the '.../sites.html' page it should fetch new items when you scroll to the bottom of a column but this does not seem to work on those machines (no error logs in the browser console). Are we the only ones experiencing this issue?GreetingsJeroen

Views

1.2K

Like

1

Replies

1
Re: AEM 6.3, CommandLineProcess: failed to execute command
Avatar

Jdruwe

Jdruwe
- Adobe Experience Manager
I am now able to create renditions using gifsicle using following commands in my step:cp ${filename} cq5dam.web.1680.1680.gifgifsicle --batch cq5dam.web.1680.1680.gif --resize 1680x1680cp ${filename} cq5dam.web.1024.1024.gifgifsicle --batch cq5dam.web.1024.1024.gif --resize 1024x1024cp ${filename} cq5dam.web.600.600.gifgifsicle --batch cq5dam.web.600.600.gif --resize 600x600

Views

310

Likes

0

Replies

0