|  Hem  |  Fakta  |  Hotell & Priser  |  Ladda ner  |  Partners  |  Press  |  Support  |  Developers Corner  |  Kontakt  |  Cookies  | 
In English »
imCMS 2.1 - med buggfixar, utökning av API- och Velocitystöd.
Skriv ut/Print


Nu är 2.1.0 släppt!

Se nedan vad den innehåller eller besök

http://www.imcms.net/download/2.1.0/CHANGES.HTML


Changes in version 2.1.0

Of importance to administrators

  • Fixed a security hole that could let an attacker overwrite any file in the system. (Bug 2891)

Of interest to users

  • Only read permission on a document was required to add it to a menu. Now at least restricted 2 is required. (Bug 2895)

  • Fixed a bug that made it impossible to set "edit texts" permission for restricted 1 or 2. (Bug 2885)

  • Fixed a bug that would cause text in text fields to be interpreted as velocity code when displayed for editing. (Bug 2892)

  • Made enter submit a text field when using "rows='1'". (Bug 2881)

  • Fixed a javascript error when editing texts and using the "formats" attribute. (Bug 2879)

  • The text editor would insert spurious <br />-tags when the text was empty. They are now removed when saving and when switching formats. (Bug 2890)

  • Fixed an exception when trying to edit a non-existing document. (Bug 2898)

Of interest to template creators

  • Allow velocity code in all tag attributes. See TEMPLATE_SYNTAX.TXT for details. (Bug 2785)

  • Whitespace in "label" -attributes are now normalized, i.e. consecutive runs of whitespace are replaced by a single space. This is a workaround for newlines in the "label" -attribute not being handled correctly in some places. (Bug 2874)

Of interest to administrators

  • Fixed a bug where deleted documents would remain in the cache. (Bug 2882)

  • Allow role names of up to 60 characters, and display more than three roles at a time. (Bug 2889)

  • Fixed a bug that caused text in templates to be interpreted as velocity code when displayed for editing. (Bug 2888)

  • Updated jTDS to version 1.0. (Bug 2883)

  • Fixed a problem where references to removed documents were retained in menus, causing NullPointerExceptions. (Bug 2894)

Of interest to API-using developers

  • Added package com.imcode.imcms.api.contrib, containing class DateTextFieldTextDocumentComparator, contributed by Anders Flodell and Pontus Amberg at Vetenskapsrådet. (Bug 2897)

  • Added class ContentManagementSystemRunnable and method ContentManagementSystem.runAsSuperadmin(ContentManagementSystemRunnable) to allow code that has been signed by an administrator to run with superadmin-privileges.

    The following things are required to run code with superadmin-privileges:

    • KeyStorePath in server.properties must be the path of a keystore.
    • The class implementing ContentManagementSystemRunnable must be signed (e.g. inside a signed jar-file).
    • All certificates used for signing the class must be found in the keystore.

    See http://java.sun.com/docs/books/tutorial/jar/sign/ for more information about signing jar files. (Bug 2875)

  • Made it possible to edit categories through the API.

    Added methods setName(), setDescription(), and setImage() to Category.

    Added method DocumentService.saveCategory(Category).

    Deprecated method DocumentService.createNewCategory(String, String, String, CategoryType). Use Category.Category(String, CategoryType) and DocumentService.saveCategory(Category) instead. (Bug 2790)

  • Methods UserService.getRole(int) and UserService.getRole(String) no longer require superadmin-permissions. (Bug 2884)

  • Methods TextDocument.Menu.addDocument(Document) and TextDocument.Menu.removeDocument(Document) erroneously required edit-permissions for the document added or removed, instead of the menu document as intended. (Bug 2893)

  • Added fields section_id, category, category_type, and category_type_id to search index. (Bug 2887)

  • Added the constants Document.LifeCyclePhase.NEW, Document.LifeCyclePhase.APPROVED, Document.LifeCyclePhase.DISAPPROVED, Document.LifeCyclePhase.PUBLISHED, Document.LifeCyclePhase.ARCHIVED, and Document.LifeCyclePhase.UNPUBLISHED, to be used as values in searches on the field "phase". (Bug 2880)

Of interest to developers

  • The java code in the tools directory were not built with source="1.4" and target="1.4". This caused parts of imCMS to break when compiled with java 1.5 and run on java 1.4. (Bug 2878)