01-11-2016, 01:43 PM
I created a WAMP server & installed OpenDocMan "community" 1.3.4, database version 1.3.0
All is basically working execpet I'm now attempting to retrieve prior versions.
I have 3 versions of the same document, but can't check out prior versions.
From "History", the URL is this:
http://192.168.33.11/opendocman/history.php?id=1&state=3
When I click at "1", the URL is this:
http://192.168.33.11/opendocman/details.php?id=1_0&state=2
When I click "view", the URL is this:
http://192.168.33.11/opendocman/view_file.php?id=1_0&state=3
"To view your file in the new window Click Here", the copied link address is this:
http://192.168.33.11/opendocman/view_file.php?submit=view&id=1&mimetype=application/vnd.openxmlformats-officedocument.presentationml.presentation
That link seems to regularly provide me with the "latest version".
The Download button provides the same latest version
In my data folder:
C:\Files\OpenDocManData\revisionDir\1
I can see there are 1_0.dat and 1_1.data files, which when renamed w/ a proper extension are the proper versions.
///If I use this workaround & copy the pasted link into my browser, I download get the proper file
Copy Link from: "To view your file in the new window Click Here"
and retrieve this link:
http://192.168.33.11/opendocman/view_file.php?submit=view&id=1&mimetype=application/vnd.openxmlformats-officedocument.presentationml.presentation
Edit that link to replace id=1 with this:
*&id=1_0&*
Then the first revision of the file downloads.
Any thoughts on whether I need to edit PHP to fix this or if I'm just missing something?
All is basically working execpet I'm now attempting to retrieve prior versions.
I have 3 versions of the same document, but can't check out prior versions.
From "History", the URL is this:
http://192.168.33.11/opendocman/history.php?id=1&state=3
When I click at "1", the URL is this:
http://192.168.33.11/opendocman/details.php?id=1_0&state=2
When I click "view", the URL is this:
http://192.168.33.11/opendocman/view_file.php?id=1_0&state=3
"To view your file in the new window Click Here", the copied link address is this:
http://192.168.33.11/opendocman/view_file.php?submit=view&id=1&mimetype=application/vnd.openxmlformats-officedocument.presentationml.presentation
That link seems to regularly provide me with the "latest version".
The Download button provides the same latest version
In my data folder:
C:\Files\OpenDocManData\revisionDir\1
I can see there are 1_0.dat and 1_1.data files, which when renamed w/ a proper extension are the proper versions.
///If I use this workaround & copy the pasted link into my browser, I download get the proper file
Copy Link from: "To view your file in the new window Click Here"
and retrieve this link:
http://192.168.33.11/opendocman/view_file.php?submit=view&id=1&mimetype=application/vnd.openxmlformats-officedocument.presentationml.presentation
Edit that link to replace id=1 with this:
*&id=1_0&*
Then the first revision of the file downloads.
Any thoughts on whether I need to edit PHP to fix this or if I'm just missing something?