These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

WebDAV hashed folder creation

mohnerplex
Registered: May 15 2009
Posts: 6
Answered

I have read a couple of other posts with this question, although none have been answered.

We currently have a WebDAV repository set up to work with our Acrobat 8 users, and we are going to be moving our server to a new location on a new public IP address in a couple of months. I would like to know what the new folder names will be for each document, so we can write a script ahead of time to move the comments into the appropriate new folders.

The document entitled 'Acrobat Online Collaboration: Setup and Administration' states (incorrectly) in the 'Data Structure' section that the repository folders are an MD5 hash of the document location after converting the domain name to an IP address

Tthe example given in the document is http://www.example.com/docs/document.pdf being converted to http://192.0.34.166/docs/document.pdf via DNS lookup, and then hashed to UAtOJErFgHsL2xbLvPPJgC using MD5 (this is not an MD5 hash...MD5 returns hex).

Can someone please shed some light on what exactly is being used to create this hash? Thanks in advance

My Product Information:
Acrobat Pro 8.1.2, Windows
mohnerplex
Registered: May 15 2009
Posts: 6
Here is a simple solution I have found to generate the folder hash Acrobat will create for a given URL:

Launch Acrobat and Press Control-J, which launches the Javascript Console. (Review the Acrobat Scripting Guide for tips on using the console - http://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJSGuide.pdf)

Type the following into the console:

Collab.hashString(Collab.URL2PathFragment("http://111.222.333.444/here.pdf"));

Press Control-Enter to evaluate the line, and you should be returned MeXDnl-_sqO9KjZcZUNpdA, which would be the folder created for this PDF file.

I haven't gotten much further than this with regard to batching and outputting to a database or anything, but this should get anyone started who has this problem.