LAMSUploadServlet.java

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
LDEV-5440 Update code to match dependencies

In particular javax -> jakarta package change and new JPA not accepting some attributes.

  1. … 223 more files in changeset.
LDEV-5440 Revert some unnecessary package name changes

  1. … 464 more files in changeset.
LDEV-5440 Refactor packages of imported classes

  1. … 481 more files in changeset.
LDEV-5440 Rewrite config files and library references

  1. … 955 more files in changeset.
LDEV-5368 Add upload image plugin to CKEditor

  1. … 53 more files in changeset.
LDEV-4917 Fix CKEditor upload successful message

LDEV-4917 Clean up tmp uploaded files when they are no longer needed

  1. … 3 more files in changeset.
LDEV-4917 Initial implementation of file uploads using Uppy

Image upload in Image Gallery authoring.

  1. … 18 more files in changeset.
LDEV-4755 Scan when uploading files to CKEditor

LDEV-4440 Switch servlets to using autowired service beans

Besides, RegisterAction was renamed to RegisterServlet. And one

remaining constant was moved from AuthoringConstants to CentralConstants

with subsequent removal of AuthoringConstants.java.

  1. … 29 more files in changeset.
LDEV-4440 Merge FileValidatorSpringUtil and FileValidatorUtil into FileValidatorUtil

  1. … 22 more files in changeset.
LDEV-4440 Stop using deprecated DiskFileUpload

Use ServletFileUpload together with DiskFileItemFactory instead.

  1. … 4 more files in changeset.
LDEV-4440 Central noStruts Library

  1. … 13 more files in changeset.
LDEV-4440 Central monitoring links foxed

  1. … 5 more files in changeset.
LDEV-4243 File size restrictions for CKEditor uploads

  1. … 4 more files in changeset.
LDEV-3776: Clean up and format all LAMS Java code.

  1. … 2120 more files in changeset.
LDEV-3776: Clean up and format all LAMS Java code.

  1. … 1860 more files in changeset.
LDEV-3401: Convert XDoclet annotations to empty comments.

  1. … 473 more files in changeset.
LDEV-3083 Display uploaded file name in JS message "File successfully uploaded:" instead of null

LDEV-3083 Upload servlets to exclude executable scripts

  1. … 4 more files in changeset.
LDEV-3000: Add support for HTML and images in questions and answers.

  1. … 10 more files in changeset.
LDEV-2744: Major clean up and optimisation performed. The servlet uses LAMS logging mechanism. Return messages are sent by the servlet because they are not generated on new CKEditor side.

LDEV-2744: Upload servlet response changed to call a function setting image URL correctly in new CKEditor.

LDEV-2739: Change the field name the servlet is looking for when uploading a file. Old FCKEditor seemed to use "NewFile", new CKEditor uses hardcoded "upload" name.

LDEV-2577 The new CKEditor does not have Java Integration library (yet). We have been using it to: a) get the tag library to create our own tag <lams:FCKeditor> But the new CKEditor uses AJAX to get the contents, so the library is not needed anymore. The references to it has been deleted from every tool. FCKEditor.tag has been rewritten to use the new syntax. b) get a FCKEditor internal file manager by a Connector from the jar The new CKEditor does not provide a file manager - the license became commercial and the whole thing became a separate project, CKFinder. There were alternatives suggested on the web: jasfinder - http://sourceforge.net/projects/jasfinder/support kcfinder - http://kcfinder.sunhater.com/ some other - http://www.miguelmanchego.com/2009/gestor-de-archivos-ckeditor/ but we have already nicely integrated with the old file manager. This page: http://jacek-kromski.jogger.pl/2009/09/25/integracja-ckeditor-z-przegladarka-plikow-z-fckeditor/ in polish says how to use the file manager from the old FCKEditor. The steps that have to be done: - download the new CKEditor - download the old FCKEditor - copy the filemanager to ckeditor directory - in the file browser/default/frmresourceslist.html, line 92 (with SetUrl call) needs to be replaced to: window.top.opener.CKEDITOR.tools.callFunction( window.top.document.CKEditorFuncNum, fileUrl, '' ); - in the file browser/default/browser.html add in line 80: document.CKEditorFuncNum = GetUrlParam( 'CKEditorFuncNum');

FCKeditor has been used in version 2.6.6, the last one before switching to CKEditor project.

Changes required to use newer version of Java Integration library

for FCKEditor so it was upgraded to the latest (for FCKEditor, because one for CKEditor does not exist) version 2.6.

This also required the Prototype to be upgraded to the latest 1.6.1.

The CKEditor code also needed to be changed, so if another upgrade to a newer version occurs, we need to remember to repeat these steps:

http://cksource.com/forums/viewtopic.php?f=5&t=15750

It says:

/ckeditor/plugins/link/dialogs/link.js

Changes

label:a.lang.common.target,'default':'notSet' --> label:a.lang.common.target,'default':'_blank'

label:a.lang.link.targetFrameName,'default':'' --> label:a.lang.link.targetFrameName,'default':'_blank'

It is also worth mentioning that if you include the ckeditor.js file twice in the same page, sometimes it causes trouble, thus detection in the CKEditor.tag files.

  1. … 1096 more files in changeset.
LDEV-1770 get EARDir and lamsContextPath at request time, not just when servlet inits

LDEV-1368: Upgrading FCKEditor to 2.5.1. Fixing up the upload and browser connect servlets so that we can accomodate the creation of new folders within our special directory structure.

  1. … 4 more files in changeset.
Merging RAMS and Edit On Fly changes from branch to the head.

  1. … 239 more files in changeset.
denied uploading file if content id is -1

  1. … 1 more file in changeset.
zip fckeditor (unique) content folder - import/export + minor adjustment to setting new content folder id in flash (only set if null)

  1. … 9 more files in changeset.