Uploaded image for project: 'Document Management System (closed)'
  1. Document Management System (closed)
  2. MGNLDMS-7

Javascript variable contextPath not defined on magnoliaPublic (can not download documents)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.1
    • None
    • None
    • Laptop with 1GB ram (512 to tomcat), P4, Windows XP, tomcat 5.0, jdk 1.5, magnolia 2.1, dms-1.0RC3, Firefox, IE

    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.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              ferris Thomas Ferris Nicolaisen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 3d
                  3d
                  Remaining:
                  Remaining Estimate - 3d
                  3d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified