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

lucian_nicolaescu
Community profile lucian_nicolaescu Level 2
Job title here
Location here
5 BADGES
Level 2

Level 2

Learn more
Joined the community 15-10-2020 2:16:08 AM
Online
Top badges earned by lucian_nicolaescu
Customize the badges you want to showcase on your profile
Re: Facing issues with special characters in url in dispa...
Avatar
Boost 5
Level 2
lucian_nicolaescu
Level 2

Likes

8 likes

Total Posts

7 posts

Correct Reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
lucian_nicolaescu
- Adobe Experience Manager
The short, right answer for the question itself is the apache rewrite NE flag.The long answer... is that you shouldn't send JSON objects in URLs for many many reasons. Some options:1. Use a POST2. Save that JSON in the browser session or local storage and read it on the next page.3. At least transform that JSON in "normal" URL params and pass that...

Views

116

Like

1

Replies

0
Re: Distinguishing between "view as published" and actual...
Avatar
Boost 5
Level 2
lucian_nicolaescu
Level 2

Likes

8 likes

Total Posts

7 posts

Correct Reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
lucian_nicolaescu
- Adobe Experience Manager
You will need to make your logic based on the runmodes.The run modes are available like: org.apache.sling.settings.SlingSettingsService.getRunModes() (it will return a Set, so you can check with getRunModes().contains("publish"))

Views

130

Like

1

Replies

1
Re: logged in user information gets interchange with anot...
Avatar
Boost 5
Level 2
lucian_nicolaescu
Level 2

Likes

8 likes

Total Posts

7 posts

Correct Reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
lucian_nicolaescu
- Adobe Experience Manager
Maybe you can provide some parts of your code, but if you are using a servlet to retrieve that data, you should read: https://blogs.perficient.com/2017/12/05/2-common-concurrency-pitfalls-in-aem-and-how-to-avoid-them/ (the "Member Variables in OSGi Services" section).

Views

112

Like

1

Replies

0
Re: Need recommendations to delete duplicate data in publ...
Avatar
Boost 5
Level 2
lucian_nicolaescu
Level 2

Likes

8 likes

Total Posts

7 posts

Correct Reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
lucian_nicolaescu
- Adobe Experience Manager
Maybe it's a "hack" and I'm not sure about performance, but I would write a groovy script that:1. loop through the nodes of type dam:Asset and get the path2. execute a HTTP request to the author (maybe you could just do a HEAD request) for that particular path.json (.json to not get the actual stream). Also, keep in mind that the request should also include the basic auth header.3. if the status code = 404, delete the node.The script itself I believe is straightforward, and you can add a "sleep"...

Views

134

Like

1

Replies

0
Re: Search working only on Title and URL - Lucene index
Avatar
Boost 5
Level 2
lucian_nicolaescu
Level 2

Likes

8 likes

Total Posts

7 posts

Correct Reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
lucian_nicolaescu
- Adobe Experience Manager
You can and should add an index like: More details about indexes here: https://jackrabbit.apache.org/oak/docs/query/lucene.html You can also check your indexes here: http://localhost:4502/libs/granite/operations/content/diagnosistools/indexManager.html PS: make sure your index is deployed... and reindex triggered when you make changes to the index definition.

Views

156

Like

1

Replies

0
Re: Rewrite url not working for html extension in source...
Avatar
Boost 5
Level 2
lucian_nicolaescu
Level 2

Likes

8 likes

Total Posts

7 posts

Correct Reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
lucian_nicolaescu
- Adobe Experience Manager
The rules should work, you need to pay attention to the order of the RewriteRules.For example, if you have another rewrite rule that adds the "long" URL (will transform /applications/life-scrience-research.html -> /content/yoursite/en/applications...), this rule will not match because of that ^ meaning that's the start of the string. PS: You should add "LogLevel debug rewrite:trace6" and you will see the "order" and matching of your rules in the logs.

Views

188

Likes

2

Replies

1
Re: Is there way to know nodes without jcr:content node?
Avatar
Boost 5
Level 2
lucian_nicolaescu
Level 2

Likes

8 likes

Total Posts

7 posts

Correct Reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
lucian_nicolaescu
- Adobe Experience Manager
You could use the groovy console (http://localhost:4502/groovyconsole) with a simple script like:final query = session.workspace.queryManager.createQuery("SELECT * FROM [cq:Page] AS page WHERE ISDESCENDANTNODE(page, '/content/yoursite')", "JCR-SQL2") final results = query.execute() results.nodes.each{ node -> if (!node.hasNode("jcr:content")) { println node.path + " is missing the jcr:content node" } } As you can see, this only searches for pages but can be changed or extended to work for dam:As...

Views

160

Like

1

Replies

1
Likes from