Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 21:04
    joerghoh commented #1732
  • Jan 31 2019 21:02
    joerghoh commented #1732
  • Jan 31 2019 19:40
  • Jan 31 2019 01:58
    badvision review_requested #1738
  • Jan 31 2019 01:58
    update-changelog[bot] commented #1738
  • Jan 31 2019 01:58
    badvision opened #1738
  • Jan 31 2019 01:54

    badvision on Renovator_bugfixes

    #1737 - Added additional asset … (compare)

  • Jan 31 2019 01:43
    badvision opened #1737
  • Jan 30 2019 15:26
    kwin opened #1736
  • Jan 30 2019 15:14
    kwin synchronize #1735
  • Jan 30 2019 15:10
    update-changelog[bot] commented #1735
  • Jan 30 2019 15:10
    kwin opened #1735
  • Jan 30 2019 14:00
    kwin edited #1733
  • Jan 30 2019 12:48
    mauryamanoj opened #1734
  • Jan 30 2019 12:31
    kwin opened #1733
  • Jan 30 2019 00:35
    davidjgonzalez commented #1715
  • Jan 29 2019 23:56
    badvision commented #1715
  • Jan 29 2019 21:55
    badvision milestoned #1732
  • Jan 29 2019 21:55
    badvision labeled #1732
  • Jan 29 2019 21:55
    badvision labeled #1732
Justin Edelson
@justinedelson
or just debugging with a remote debugger and setting a breakpoint in the activate() method
david g.
@davidjgonzalez
@johnalejandro001 if you can write a query to find the delta content you can see if ACS Commons Query Packager works for you http://adobe-consulting-services.github.io/acs-aem-commons/features/query-packager.html
SUBRAMANYA_VL
@subramanya
@justinedelson Thanks for all the valuable inputs provided. Currently I have reverted the ACS commons package to 2.2.0 and it is working fine.Soon I will again upgrade to 2.5.0 then. "cache control" declaration is there on the headers section of dispatcher.any file.
I will update here if I get any errors from the debug logs.
Bryan Stopp
@bstopp
Couple of things i noticed when i was debugging:
1) the Cache-Control header shouldn’t be passed to the Publish instance
2) If using a browser to test: don't use an incognito window; this has an intrinsic Cache-Control: max-age=0 header.
3) If using a browser to test: Don’t do a hard-refresh, again, sends a the Cache-Control header.
the best way i found to do a test is to use the PostMan Chrome app and disable it’s cache-prevention setting. I was able to successfully create the .ttl file on every 2.3 and 2.5; through an upgrade.
Satyanarayana
@satya_atl_twitter
Hi All Please help me on this? I am using Static Reference Rewriter but I want to customised this service. we need to enable/disable rewriter.
I have implemented my own Custom static reference rewriter but I got below error when access the page.
Caused by: java.io.IOException: Unable to get component of class 'interface org.apache.sling.rewriter.Transformer' with type 'portal-static-refs'.
at org.apache.sling.rewriter.impl.PipelineImpl.getPipelineComponent(PipelineImpl.java:160)
at org.apache.sling.rewriter.impl.PipelineImpl.init(PipelineImpl.java:102)
at org.apache.sling.rewriter.impl.ProcessorManagerImpl.getProcessor(ProcessorManagerImpl.java:445)
... 221 common frames omitted
please help on this issue ASAP?
Justin Edelson
@justinedelson
@satya_atl_twitter I’m guessing you didn’t expose your TransfomerFactory as a service with the pipeline.type property.
Satyanarayana
@satya_atl_twitter

no. I have defined pipeline.type property. Please see below code snippet.
/**

  • Rewriter pipeline component which rewrites static references.
    /
    @Component(
     label = "Custom - Static Reference Rewriter",
     description = "Custom Rewriter pipeline component which rewrites host name on static references for cookie-less domain support",
     metatype = true, configurationFactory = true, policy = ConfigurationPolicy.REQUIRE)
    @Service
    @Properties({
    @Property(
         name = "pipeline.type", label = "Rewriter Pipeline Type",
         description = "Type identifier to be referenced in rewriter pipeline configuration."),
    @Property(
         name = "webconsole.configurationFactory.nameHint",
         value = "Pipeline: {pipeline.type}")
    })

public class CustomStaticReferenceRewriteTransformerFactory implements TransformerFactory {

Justin Edelson
@justinedelson
there’s no value for that property
per the error message, it needs to be portal-static-refs
Satyanarayana
@satya_atl_twitter

I have defined Rewriter Pipeline Configuration under /apps/portal/config/rewriter/portal
please see below xml file for pipeline configuration
<?xml version="1.0" encoding="UTF-8"?>

<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="nt:unstructured" contentTypes="[text/html]" enabled="{Boolean}true" generatorType="htmlparser" order="-1" serializerType="htmlwriter" transformerTypes="[linkchecker,mobile,mobiledebug,contentsync,portal-static-refs]">
<transformer-mobile jcr:primaryType="nt:unstructured" component-optional="{Boolean}true"/>
<transformer-mobiledebug jcr:primaryType="nt:unstructured" component-optional="{Boolean}true"/>
<transformer-contentsync jcr:primaryType="nt:unstructured" component-optional="{Boolean}true"/>
</jcr:root>

Justin Edelson
@justinedelson
right, and that error says that there’s no transformer with the type portal-static-refs
if you want it to be optional, you need to configure it as optional
Satyanarayana
@satya_atl_twitter
I didn't get you. where can I define transformer with type portal-static-refs?
Justin Edelson
@justinedelson
your transformer needs to have that as a service property
right now, the code you sent just says “there is a service property named pipeline.type but no where is the value of that property defined"
this isn’t really an appropriate conversation for this channel since you aren’t actually using an ACS AEM Commons component.
AEM Forums or the sling mailing list would be more appropriate
Justin Edelson
@justinedelson
you said you implemented your own
Satyanarayana
@satya_atl_twitter
yes
I have wrote my custom class based on Static Reference REwrite TF class
Justin Edelson
@justinedelson
regardless, I’ve answered your question. the type referenced in the rewriter configuration must be defined. that’s what that error message is saying.
Satyanarayana
@satya_atl_twitter
blob
I have defined pipeline.type on my Custom Static Reference Rewriter Class.
Please see below image for all the configurations for my Custom class.
Justin Edelson
@justinedelson
that screenshot shows that you haven’t actually saved the configuration yet
Satyanarayana
@satya_atl_twitter
yes
I haven't implemented these configuration through build tool. as of now I have updated configurations manually
Justin Edelson
@justinedelson
The component you created requires configuration
Until it is configured, the service is not available
Satyanarayana
@satya_atl_twitter
yes I just observed, Even activate method is not invoked when I save the configurations
Satyanarayana
@satya_atl_twitter
hello everyone
how to implement custom static referene rewriter?
Justin Edelson
@justinedelson
@satya_atl_twitter since your question has nothing to do with ACS AEM Commons, please use an appropriate forum. I’d also suggest (again) to leverage the Sling Rewriter documentation.
shamrox
@shamrox
Hey all, I am new here ... very new. I am even new to AEM, but yet I am developing in it lol. Is there a place where I can see examples of use? This library is very large and I don't know where to start. Any help would be appreciated
david g.
@davidjgonzalez
@shamrox: check out the Videos that start with “ACS AEM Commons” in this YouTube channel: https://www.youtube.com/channel/UCjaohuwFOS6u4pxv-i9xxCg
that will help you get started
after that its really looking through all the features listed here: https://adobe-consulting-services.github.io/acs-aem-commons/#features
and figuring out if anything meets youre requirements (dont use it just for the same of using it :))
There are some filters at the top of the features that you can click to filter the Features by use-case if thats less overwhelming
shamrox
@shamrox
@davidjgonzalez thanks so much....much appreciated
Vikas Saurabh
@catholicon
@davidjgonzalez there's a bunch of props in EnsureOakIndexJobHandler which are used to make a sane hash to figure out if something's changed...
but those props don't seem to be ignore while actually updating... I think that's a bug... but thought of discussing first
david g.
@davidjgonzalez
@catholicon yes - there are a number of "ignored" properties which should be ignored when determining if an index definition has changed
i wouldve thought it would unless you set recreateOnUpdate .. those ignored properties get blown away everytime?