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

Location in filedatastore doesn't match with dam:sha1 value

Avatar

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
siddhartha252
Level 2

14-06-2019

Dear Experts,

When a bunch of images are uploaded to AEM instance with 6.3.3 version having separated datastore, all images are uploaded successfully and proper jcr content fields are allocated. But, when I tried to locate the image(file) specified in dam:sha1 field in filedatastore, I neither found the image nor folder taxonomy.

Could you please point me in the right direction?

Kind regards

Sid

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
siddhartha252
Level 2

01-07-2019

Had a session with Daycare support, content saved in jcr is with sha1 value and format with which folder taxonomy/ file saved in datastore is with sha256 value. Unfortunately, we can't track it unless we make any additional customizations out of adobe's scope.

Thanks

Sid

Answers (11)

Answers (11)

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,113 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,113 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

01-07-2019

Anyway, this information is an implementation detail of AEME (or Oak, to be more precise). It may change without further announcement. Do not rely on it.

(and I am quite sure, that the presenter mentioned it at some point, but did not refer to it as feature which can be used at will.)

Jörg

Avatar

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
siddhartha252
Level 2

27-06-2019

Opened an Adobe ticket for this. WIll update the thread accordingly.

Thanks

Sid

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,113 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,113 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

18-06-2019

Ok, might be good to follow up on this. Can you start an conversation with the presenter (or the AEM gems team), point out your problem and also give the link to this forum thread. Would be good to have this resolved.

Thanks,

Jörg

Avatar

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
siddhartha252
Level 2

17-06-2019

This is for validations. In the AEM Gems presentation, the presenter mentioned that filedatastore follows the pattern of folder names extracted from the sha value of the blob.

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,113 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,113 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

17-06-2019

There is no documented way to do that. But why do you want to bypass all abstractions and access the blob directly?

Jörg

Avatar

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
siddhartha252
Level 2

17-06-2019

@husams51669576

Calculating sha256 and validating for path in filedatastore didn't help, but thanks

Avatar

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
siddhartha252
Level 2

17-06-2019

Is there a way to identify the location of asset uploaded in UI to track in Filedatastore?

Thanks

Sid

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,113 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,113 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

16-06-2019

It has never been guaranteed that the name of the blob in the datastore is the same as the dam:sha1 hash.

Jörg

Avatar

Avatar
Give Back 5
Employee
shunnar
Employee

Likes

12 likes

Total Posts

46 posts

Correct Reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile

Avatar
Give Back 5
Employee
shunnar
Employee

Likes

12 likes

Total Posts

46 posts

Correct Reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile
shunnar
Employee

15-06-2019

Try calculating sha256 and look up that path. I am not sure if this applies to file datastore, but for S3 it now uses sha256 instead of sha1

Avatar

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
siddhartha252
Level 2

Likes

3 likes

Total Posts

15 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
siddhartha252
Level 2

14-06-2019

Sure,

Configurations for "org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.config", file we specified are as below:

path="/app/datastore/current_datastore"

service.pid="org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore"

minRecordLength="1024"

Now when the image is uploaded jcr content says: f17de40d1a85c8b822f81cd87b3dd04f1d31f394

dam:sha1

String

f17de40d1a85c8b822f81cd87b3dd04f1d31f394

As per sha value "f17de40d1a85c8b822f81cd87b3dd04f1d31f394", when I navigate to filedatastore, I should see folders

f1--> 7d-->e4-->f17de40d1a85c8b822f81cd87b3dd04f1d31f394. But, I could only see folder f1 there is no 7d sub-folder.

Thanks

Sid

Avatar

Avatar
Give Back 5
Level 4
joeb21688728
Level 4

Likes

33 likes

Total Posts

60 posts

Correct Reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Level 4
joeb21688728
Level 4

Likes

33 likes

Total Posts

60 posts

Correct Reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
joeb21688728
Level 4

14-06-2019

Please reference the documentation you are following so we can try to reproduce