Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

jkpanera
Community profile jkpanera Level 3
Job title here
Location here
16 BADGES
Level 3

Level 3

Learn more
Joined the community 21-03-2019 8:23:00 AM
Offline
Top badges earned by jkpanera
Customize the badges you want to showcase on your profile
How do I get the JSON from a Sling Model programmatically?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Hey guys,So I have a number of sling models that I have JSON exporters for. Like so:@Getter@Model(adaptables = {SlingHttpServletRequest.class, Resource.class}, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL, resourceType = "components/component2")@Exporter(name = "jackson", extensions = "json", options = { @ExporterOption(name = "SerializationFeature.FAIL_ON_EMPTY_BEANS", value = "false")})public class Component2 { @ValueMapValue private boolean value1;}@Getter@Model(adaptables = {...

Views

2.5K

Likes

0

Replies

3
Re: How do I clean up disk space?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Looks like the biggest cuprit is repository/datastore. crx-quickstart]$ sudo du --max-depth=2 -h .202M ./launchpad/installer4.7M ./launchpad/config8.0K ./launchpad/conf482M ./launchpad/felix3.5M ./launchpad/startup693M ./launchpad2.3M ./repository/blobids65M ./repository/index12G ./repository/datastore2.8G ./repository/segmentstore15G ./repository1.5M ./opt/helpers1.6M ./opt/portal76K ./opt/notsoserial18M ./opt/filevault33M ./opt/extensions54M ./opt3.8M ./threaddumps/201906041.2M ./threaddumps/2...

Views

2.6K

Likes

0

Replies

1
How do I clean up disk space?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
According to my disk usage report, my JCR repository is 1.97 GB:But when I look at the actual disk space taken up it's 15 GB:$ sudo du -sh repository/15G repository/I understand that there is some overhead but 10 x seems absurd.I've run the data store garbage collection and the revision garbage collection (http://localhost:4502/system/console/jmx/org.apache.jackrabbit.oak%3Aname%3Drepository+manager%2Ctype%3DRepositoryManagement)but it doesn't seem to free up more space. I'm running on a VM that...

Views

2.7K

Like

1

Replies

3
Re: Do replication agents use the Sling Job Thread Pool?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Thanks!

Views

1.4K

Likes

0

Replies

0
Do replication agents use the Sling Job Thread Pool?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Do replication agents use the Sling Job Thread Pool (org.apache.sling.event.impl.EventingThreadPool)? If not, is there another thread pool used for replication?

Views

1.8K

Like

1

Replies

2
Re: Can I cache 404s on Dispatcher?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Yeah, I appreciate the suggestion gauravb10066713​ but we won't be doing that. SEO may be one problem, but we also don't want users' browsers caching those responses as 200s.

Views

1.7K

Likes

0

Replies

0
Re: Can I cache 404s on Dispatcher?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Will do! Thanks Joerg!

Views

1.3K

Likes

0

Replies

0
Re: Can I cache 404s on Dispatcher?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Hi PuzanovsP​, it's both.We are seeing some malicious traffic though it looks like hackers attempting to gather logins (wp-login.php) rather than actual DDoS.We also have authors who distribute bad links. That's an organizational problem and not one that I can deal with (though we are working on it).Are you saying that dispatcher does not have the functionality I am requesting?Thanks!John

Views

1.3K

Likes

0

Replies

0
Re: Can I cache 404s on Dispatcher?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Arun, we've already configured our site link so Adobe CQ/Adobe AEM: How to cache Error page in CQ but I don't believe that actually shields publish from requests to non-existent resources.Rather it simply caches the 404 page in a fixed location on dispatcher so that publish only has to build the error page once. Useful, but not the problem we are trying to solve here.Take a look at this log from error.log:2019-05-13 21:36:10,605 *INFO* [192.168.56.1 [1557783370597] GET /content/domain_com/en-us/...

Views

1.3K

Likes

0

Replies

0
Re: Can I cache 404s on Dispatcher?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
We are NOT sure it will be a 404. The request may or may not be valid. Depends on if authors have put content there or not.I'm talking about a dynamic strategy whereby dispatcher will NOT hit publish with the same request twice in the case of a non-existent page.Perhaps this could be part of some attack or perhaps it could be that our marketing people have sent a bad link in an email. Regardless, dispatcher caches valid responses but 404s go through to publish. In the case of lots of requests, t...

Views

1.3K

Likes

0

Replies

0
Can I cache 404s on Dispatcher?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
We are seeing a large amount of 404 requests on our AEM application putting undue load on our publish server. Found requests get cached on dispatcher, but 404s fall through to publish even if the same location was requested a minute ago.Is there a way to configure dispatcher to cache 404s? For example if user A requests http://domain.com/content/not-exist.html, dispatcher could cache the error page at the location /content/not-exist.html. Then if we do publish not-exist.html, it would get evicte...

Views

4.0K

Likes

0

Replies

12
Re: How can I use regular expressions for string matching in HTL
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
I do mean in the component code (not in a page template).Let me give you a use case. We have some templates that handle certain image display for various AEM models. These components should generate different markup depending on the type of image (for example, we want to lazy load PNGs but not JPGs). Is this possible to do using HTL?

Views

1.4K

Likes

0

Replies

0
Re: How can I use regular expressions for string matching in HTL
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
What if I don't have a sling model in the HTL where I need the reg ex functionality? For example in a template?

Views

1.4K

Likes

0

Replies

0
How can I use regular expressions for string matching in HTL
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
How can I match a string against a regular expression in HTL?I would want to do one thing if it matches and another if it doesn't.Alternatively, if HTL does not have that capability built in, is there a way that I can pass a string into a utility method to do that?Thanks!

Views

4.3K

Likes

0

Replies

6
Re: How can AEM add hostnames?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
You do realize that I'm not hardcoding links in jsp or htl, right? Are you seriously suggesting that I write something myself to do path rewriting myself? If so, then why am I paying for an AEM license?

Views

2.0K

Likes

0

Replies

1
Re: How can AEM add hostnames?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
gauravb10066713​ maybe you could give me an example of how I can do this?I need to map /content/domain_com/en-us to /en-us. So for example, http://domain.com/en-us should be redirected to directed to the resource /content/domain_com/en-us BUT all links that are to /content/domain_com/en-us should be generated as /en-us regardless of the hostname in the request.How can I do that?

Views

10.9K

Likes

0

Replies

3
Sling JavaScript include info
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Hi guys,In the Sling documentation, it alludes to using JavaScript instead of Apache SSIs to implement Sling Dynamic Includes (https://sling.apache.org/documentation/bundles/dynamic-includes.html#javascript-include​) but it gives very little detail and no example. Is it possible to include certain components via JavaScript and others via Apache SSI? Is there more documentation/examples that I could see?Thanks!

Views

652

Likes

0

Replies

1
Re: How can AEM add hostnames?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
So after discussing with my team, we do actually need reverse mappings BUT we don't want external redirects. I.e. we only ever want absolute URLs used if the links in the content tree are absolute URLs. If there are relative URLs in the content, we wanted them to be relative (but mapped on a path basis).But every example that I have seen has absolute URLs in the replacement column. Probably because there's always a host in the /etc/map tree. I.e. it's always something like /etc/map/http/hostname...

Views

10.9K

Likes

0

Replies

5
Re: How can AEM add hostnames?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Hi Hermant, we looked through that. We were able to disable many of the external redirects by changing them to be regexps, but we are still fiddling with it. Is there a way to turn off external redirects entirely?Using the same mechanism for both direct and reverse mappings without an explicit switch is a thoroughly brain damaged design.

Views

10.9K

Likes

0

Replies

0
Re: How can AEM add hostnames?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Thanks for your prompt reply JaideepBrar​. I'll try to get the logging added in production. In the meantime, I poked around a bit and found this:http://:4503/system/console/jcrresolverThere are five sections:Configuration, Configuration Test, Resolver Map Entries, and Mapping Map Entries.Resolver Map Entries look reasonable for the most part. They are things like:Pattern: https/test-host.domain.com.4503/content/domain_com/en-usReplacement: /content/domain_com/en-usRedirect:InternalFine. No probl...

Views

10.9K

Likes

0

Replies

9
How can AEM add hostnames?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Hi guys, We are seeing an issue in our production environment where links are being incorrectly substituted. Our author (and our code) only select resources from the JCR to build links. AFAIK, the links should be relative but we are actually seeing host names in the links.For instance, if an author selects the resource /content/domain_com/en-us/locator, we expect to see the HTML: LocationsAnd in most environments, we do see that, but intermittently, we see this: LocationsIronically, we only see ...

Views

11.3K

Likes

0

Replies

11
Re: Can VisualVM profiling be used with AEM?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
I tried that option but it still hangs when I try to start profiling.

Views

2.6K

Likes

0

Replies

1
Re: Does AEM support using Nginx as a dispatcher server?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Well, let me give you some motivation. Nginx is an all around superior product to Apache.In the context of AEM, it has particular advantages. (Please correct me if I am wrong about any of this.)The way Apache works is that when a thread handles a request, it blocks on submitting the request to publish. Not a big deal when load is low and publish responds quickly. However, when load gets high and publish responds slowly or not at all, these blocking threads keep Apache from responding at al.Nginx...

Views

1.1K

Likes

2

Replies

0
Re: Does AEM support using Nginx as a dispatcher server?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
I believe that there was a formal request to develop a dispatcher module for Nginx. What happened? Why did you guys decide not to implement it?

Views

983

Likes

0

Replies

0
Does AEM support using Nginx as a dispatcher server?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Does AEM support using Nginx as a dispatcher server?

Views

2.7K

Likes

2

Replies

5
Re: Will Adobe plan to build dispatcher module for Nginx? If not, how i can leverage the advantages from Nginx?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Has Adobe built such a module? I don't see anything in the documentation, but we need Nginx as well. I can give you guys reasons if you need them.

Views

248

Likes

0

Replies

0
Http Timeout Config Not Working
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Hi,I'm attempting to change the http timeout for my local AEM instance. I made the following change in the OSGI console:I verified in /opt/aem/publish/crx-quickstart/launchpad/config/org/apache/felix/http.configthat it has indeed changed:I am testing it using the following servlet:@Slf4j@Component( immediate = true, service = Servlet.class, property = { "sling.servlet.paths=/bin/test/foo", "sling.servlet.methods=get" }, configurationPid = "TestServlet")public class TestServlet extends SlingSafeM...

Views

179

Likes

0

Replies

0
Re: Which version allows integration of Experience Fragments with Target
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
I do not have a Target configured in my local.

Views

4.0K

Likes

0

Replies

0
Which version allows integration of Experience Fragments with Target
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Locally, I am running AEM 6.3.3.0. Our test environments are running 6.3.1.2.My local has the "Export to Adobe Target" button but the test environments do not.Am I correct in thinking that if I install the service pack 3 will enable this feature?Thanks!

Views

4.2K

Likes

0

Replies

3
Re: How can I enable useradmin, crx update in publish?
Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
- Adobe Experience Manager
Hi Arun,This did not work for me, but I suspect there is something wrong with my instance.

Views

854

Likes

0

Replies

1