Asset direct link is downloading not open asset on new tab

Avatar

Avatar
Validate 1
Level 2
otavios60241350
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back 3
Give Back
Ignite 1
Boost 5
View profile

Avatar
Validate 1
Level 2
otavios60241350
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back 3
Give Back
Ignite 1
Boost 5
View profile
otavios60241350
Level 2

02-05-2018

Hi, I have a file on this path http://localhost:4502/assetdetails.html/content/dam/we-retail/en/activities/hiking/hiking_5.jpg,​ when I try to access the file by direct link like this: http://localhost:4502/content/dam/we-retail/en/activities/hiking/hiking_5.jpg the file is download but It should open on browser windows not do download direct.  What are happening? The response header might be wrong how can I fix it?

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

02-05-2018

This is confirmed - on AEM 6.2 - the URL opened the image in the browser. In AEM 6.4 - it downloads the file. Checking to see if this is normal behavior or a bug.

Avatar

Avatar
Validate 1
Level 2
otavios60241350
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back 3
Give Back
Ignite 1
Boost 5
View profile

Avatar
Validate 1
Level 2
otavios60241350
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back 3
Give Back
Ignite 1
Boost 5
View profile
otavios60241350
Level 2

02-05-2018

Thanks smacdonald2008​, please let me know if you have any update about it.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

02-05-2018

Our support team is investigating this. I will post back what they say.

Avatar

Avatar
Validate 1
Level 2
otavios60241350
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back 3
Give Back
Ignite 1
Boost 5
View profile

Avatar
Validate 1
Level 2
otavios60241350
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back 3
Give Back
Ignite 1
Boost 5
View profile
otavios60241350
Level 2

02-05-2018

Sorry, I don't understand, the support team is not investigating?

Avatar

Avatar
Boost 5
Level 3
ashu4pma
Level 3

Likes

17 likes

Total Posts

38 posts

Correct reply

15 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 3
ashu4pma
Level 3

Likes

17 likes

Total Posts

38 posts

Correct reply

15 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
ashu4pma
Level 3

03-05-2018

This was a security fix at Sling level, the disposition filter has been added to force this behavior. See [0].

To undo this behavior (not recommended), you can disable the component[1].

Thanks

[0] SLING-4883Extend content disposition filter protection to jcr:data

[1] org.apache.sling.security.impl.ContentDispositionFilter

[2] http://10.42.36.65:4502/system/console/components/org.apache.sling.security.impl.ContentDispositionF...

Avatar

Avatar
Validate 1
Level 2
otavios60241350
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back 3
Give Back
Ignite 1
Boost 5
View profile

Avatar
Validate 1
Level 2
otavios60241350
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back 3
Give Back
Ignite 1
Boost 5
View profile
otavios60241350
Level 2

04-05-2018

So, ashu4pma​, what you recommend to do? I need have a direct link for a .mp4 video  hosted on /content/dam for exemplo and it should play direct browser like this https://www.w3schools.com/html/mov_bbb.mp4, just disable the Content Disposition Filter?

What happend if I just uncheck "Enable For All Resource Paths", will it have any side effects?

Avatar

Avatar
Boost 5
Level 3
ashu4pma
Level 3

Likes

17 likes

Total Posts

38 posts

Correct reply

15 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 3
ashu4pma
Level 3

Likes

17 likes

Total Posts

38 posts

Correct reply

15 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
ashu4pma
Level 3

07-05-2018

Yes uncheck the checkbox(Enable Content Disposition for all paths).

Avatar

Avatar
Boost 1
Level 1
anudeepyeleti
Level 1

Likes

2 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
anudeepyeleti
Level 1

Likes

2 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
anudeepyeleti
Level 1

01-06-2018

Hi Donald,

Is there any update on this. I observe the same behavior in 6.4 as well.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

01-06-2018

Kunwar​ - is this a bug in AEM 6.4?