[MGNLDMS-7] Javascript variable contextPath not defined on magnoliaPublic (can not download documents) Created: 10/Oct/05  Updated: 03/Jul/14  Resolved: 27/Jan/06

Status: Closed
Project: Document Management System (closed)
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1

Type: Bug Priority: Minor
Reporter: Thomas Ferris Nicolaisen Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 3d
Time Spent: Not Specified
Original Estimate: 3d
Environment:

Laptop with 1GB ram (512 to tomcat), P4, Windows XP, tomcat 5.0, jdk 1.5, magnolia 2.1, dms-1.0RC3, Firefox, IE


Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

I installed DMS accoring to the instructions. Everything works fine appearantly, but I can't download files when browsing magnoliaPublic.

1. Installed magnolia and DMS
2. Created a folder Documents/shwoing
3. Uploaded a file Case-v1.1.doc into Documents/shwoing
4. Created a copy of the doc and moved into the same folder
5. Changed template on Website/features/help to DMS Demo Template
6. Added a paragraph with the search string "jcr:path like '/%'"
7. Previewed page in magnoliaAuthor, works fine, paragraph shows both docs, both are downloadable by urls

javascript:MgnlDMS.downloadFile('/untitled/Case-v1-1/Case-v1.1.doc')
javascript:MgnlDMS.downloadFile('/untitled/Case-v1-2/Case-v1.1.doc')

8. Activated content and webpage to magnoliaPublic.
9. Opening page help shows the DMS paragraph correctly with both docs, but none of them are downloadable. Clicking the urls results in no error log, but Firefox' JavaScript Console shows

Error: contextPath is not defined
Source File: http://localhost:8080/magnoliaPublic/admindocroot/js/dms/MgnlDMS.js
Line: 53

Download urls are identical to the ones on magnoliaAuthor.

Both files are downloadable from magnoliaPublic's AdminCentral, so they have been activated.



 Comments   
Comment by Philipp Bracher [ 27/Jan/06 ]

contextPath is set in the template now.

The problem was that cms:link is not including the javascripts if the admin flag is set to false

Generated at Mon Feb 12 00:47:33 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.