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

HTML Library Manager - Allowed client libs path

Avatar

Avatar
Level 1
Akash_Ramchanda
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Akash_Ramchanda
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
Akash_Ramchanda
Level 1

02-01-2019

Hi All,

I have a doubt on 'allowed client libs path' configuration of HTML library manager available in OSGI configs. By default this configuration supports few values like /apps, /etc, /libs. I understand that any client libs that i wish to add should be added only under these paths.

I have been playing around with this configuration and tried couple of scenario's.

1. I added /content in this configuration and assumed that i can now add clientlibs under /content path as well. However, the client libs are not loading in my page if i move any clientlibs from /apps to /content path.

2. I removed /apps from this configuration and assumed that any clientlibs available under /apps will stop supporting. This scenario worked fine for me and clientlib stopped working as expected.

Any idea, what am i doing wrong to support client libs under /content path. It might sound little weird, but my intention here is to allow uploading of  JS and CSS files in dam.

I am using AEM 6.4.

Replies

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,348 likes

Total Posts

3,226 posts

Correct Reply

916 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,348 likes

Total Posts

3,226 posts

Correct Reply

916 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

02-01-2019

Hi,

did you try to create clientLibs inside dam /content/dam?

For me its working

Screenshot 2019-01-02 at 7.56.27 PM.png

Avatar

Avatar
Level 1
Akash_Ramchanda
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Akash_Ramchanda
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
Akash_Ramchanda
Level 1

02-01-2019

I have just moved one of the working clientlib from /apps folder to /content/dam. The client lib stopped loading in the page.

Does the workflow.js that you shared have a primary type as cq:ClientLibraryFolder? Or is it just a file?

Which version are you working on?

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,348 likes

Total Posts

3,226 posts

Correct Reply

916 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,348 likes

Total Posts

3,226 posts

Correct Reply

916 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

02-01-2019

Hi,

workflow.js is a file but for showing you I loaded with debugClientLibs=true query parameter.

you can rather create main clientlibs inside /libs/ and and embed other /content/ clientlibs into /libs/ clientlibs. It should work. I tired like that.

Avatar

Avatar
Ignite 1
Level 3
rampai
Level 3

Likes

25 likes

Total Posts

54 posts

Correct Reply

9 solutions
Top badges earned
Ignite 1
Validate 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Ignite 1
Level 3
rampai
Level 3

Likes

25 likes

Total Posts

54 posts

Correct Reply

9 solutions
Top badges earned
Ignite 1
Validate 1
Give Back 5
Give Back 3
Give Back 10
View profile
rampai
Level 3

03-01-2019

It is a security risk and not something that's recommended.

Check this. Can we store clientlibs( css and js) in dam.

Also won't creating something in /libs get overridden when installing a service pack or going for an upgrade?