Inlägg från april, 2009

Problemet med frontmaskiner som inte uppdaterar sitt innehåll löst!?

Apr 11

Tillsammans fick vi en lösning!

Den mest diskuterade frågan på forumet är den om frontmaskiner som inte uppdaterar sitt innehåll som de ska. Felet har lett till att besökare fått upp felaktigt innehåll eller 404-page not found, när de besökt sidor på webbplatsen. Att tömma frontmaskinernas ”cachar” och starta om webbapparna, har varit den enda tillfälliga lösningen på problemet. Fram tills nu! På skärtorsdagskvällen fick jag ett mail från Polopoly-supporten som säger sig ha hittat felet . En patch ska komma under nästa vecka och vi får hoppas att den håller vad den lovar (där av det lilla frågetecknet i rubriken)!

Jag skulle vilja tacka: simon.larsson, melker, Henrik, andersb & marcus.demnert för att vi tillsammans fick Polopoly att förstå att detta var ett stort och kritiskt problem för många av deras kunder.

Hela Polopolys svar finns att läsa i forumet.

Taggar: , ,

Change list – Polopolyversion 9.12

Apr 06

Atex Polopoly släppte i dag polopolyversionerna 9.10.3 och 9.12 här är ändringarna för 9.12 , så som de presenteras på Atex Polopolys supportwebb.

  • 8776: When exporting content to jar files the MANIFEST.MF will now contain document-0: <docname> and document-others: false. This will prevent the import from interpreting attached xml files as content xml and trying to import them.
  • 9681: Searching an empty index will no longer generate exception stack traces in the logs.
  • 9818: When calling User.setLoginName() a random password will be set.The javadoc now says this.
  • 9940: Removing a content version can no longer cause a content to have neither LATEST nor LATEST_COMMITTED version.
  • 10151: The possibility to login the ‘indexadmin’ system user has been removed. There is no longer a need to change the default password of ‘indexadmin’.
  • 10203: The instruction in the Developer’s Guide for setting password when importing users with XML is now correct.
  • 10215: Methods deleteDirectory and listFiles on Content no longer give unexpected results when one directory’s name is also the prefix of another directory’s name.
  • 10221: There is now a cache for output templates in SiteEngine improving the rendering performance.
  • 10241: In the statistics configuration documentation, country and language are no longer mixed up.
  • 10262: The property ”defaultViewerStylesheet” for the p.FCKEditor field type now works properly in modern browsers.
  • 10267: Patched jar files now includes the revision number in the manifest file.
  • 10271: Velocity directives documentation is now available in the Javadoc for package com.polopoly.cm.servlet.velocity.directives.
  • 10276: Greenfield Times: The short cuts API now works with Greenfield Times.
  • 10282: A non public class referred in the doc of previous versions of SimpleWorkflowHandler had two inner classes that has now been extracted to the same package as SimpleWorkflowHandler.
  • 10289: Greenfield Times: Unnecessary HTTP session creation has been removed to increase performance.
  • 10311: In the Developer’s Guide, Installation – Overriding the defaults, webDir was changed to warDir to reflect reality.
  • 10312: An example for how to get a top list using an analyzer was added to the Developer’s Guide.
  • 10317: There is now a new MBean for monitoring active sessions in the admin GUI.
  • 10320: The search doc now focuses on SearchSearvice instead on the deprecated Searchable.
  • 10322: Image resources in Greenfield Times can now get the image from an external URL.
  • 10327: Removed branchTag=true from workflow example to minimize the number of rows in minorinfo table.
  • 10331: The default maximum number of versions has changed from an infinite number of versions to 32.
  • 10334: When the index server has been turned off it will automatically catch up (indexing all new contents) when starting. It is possible to disable this behavior by starting the index server with -Drunclient.sysproperty.indexserver.catchUp=false. For further detail see ”Managing the IndexServer” in the Developer’s Guide
  • 10336: SQL example for retrieving content ids for re-indexing is now correct.
  • 10344: Document describing recommended production setup added to Developer’s Guide.
  • 10349: Article comments on Greenfield Times now has support for Akismet.
  • 10354: Captcha is now used for article comments in Greenfield Times.
  • 10357: Teasers without titles now use the title of the articles they tease for in the GUI.
  • 10358: A Refresh-button is now present in the button toolbar for Site and Page.
  • 10359: GreenfieldTimes: DefaultPageLayout and ColumnSplitter templates are now localized.
  • 10368: The index server now has counters for number and size of searches in MBeans.
  • 10380: A white paper about designing for Live Layout Management has been added to the Developer’s Guide.
  • 10382: The OCalendarSelect now shows hours 1-12 instead of 0-12 when setting show12HourFormat to true.
  • 10393: XML import using xmlio.xml now fails when the import isn’t successful, rather than reporting an error but succeeding.
  • 10394: A White Paper describing the Polopoly session management and personalization is now available in the Developer’s Guide.
  • 10396: Community: ContentForumUser now uses the component Email instead of EMail for E-mail.
  • 10408: A command line tool for manipulating Polopoly content has been added. See the Polopoly Command Line Tool section of the Developer’s Guide for details.
  • 10412: Rebind of Searchables is disabled for forum index to prevent the number of file handles in the index server to grow out of control.
  • 10419: Site Engine: A faster way of generating friendly urls has been implemented, that does not require content to be published in a content list. To use it, configure ‘com.polopoly.cm.path.impl.SiteEngineContentPathTranslator’ as path translator in web.xml. For more info, see Friendly Urls section under the Site Engine documentation.
  • 10428: A login element was added to Greenfield Times.
  • 10431: SiteEngine: All content URLs representing the same content path are now redirected with a permanently moved (301) to one canonical URL, ie. the one matching the links created for the content path. For more information, see the friendly URL section in the Developer’s Guide.
  • 10436: SiteEngine: Friendly URLs are now written using ‘-’ instead of ‘_’ to comply with Google’s recommendation. Old URLs will be redirected with a permanently moved (301) to the new URLs.
  • 10437: Searches in the Polopoly admin GUI are stopped when too many contents are found that the user does not have permission to see. This is needed to ensure that the index server and admin GUI are not overloaded by searches run amok. To avoid running into this, make sure the working sites (or home department) for users do not contain departments where the users do not have read permission.
  • 10444: Greenfield Times: All elements can now handle removal of referenced content gracefully. The following elements have been updated: Teaser element, Gallery element, List element and the Search element. For the new list element to work, the statistic and search based publishing queues have been fixed so that they return correct content list models.
  • 10445: My News List element was added to Greenfield Times.
  • 10446: Greenfield Times: If an article referred to by a teaser is not publicly viewable the teaser will no longer be shown. This is the case if for example the article has been deleted, is in an off time state or is not workflow approved.
  • 10451: Greenfield Times: There are no longer duplicate pages under sport.
  • 10453: The rss feeds in Greenfield Times do not contain encoding in the xml anymore. A positive side effect of this is that they work in preview.
  • 10456: Passwords for default system cmUsers (webmaster, xmlioadmin, sysadmin) are no longer reset at upgrade. Also the forumsuperuser’s password is not reset but for new installations after 9.10.0 forumsuperuser is no longer a CM user.
  • 10459: AJAX Widgets now always use UTF-8 as encoding (according to JSON standard)
  • 10467: Request preparator now correctly follows the ignore request flag and does not set response encoding if it is set.
  • 10469: FCKEditor has been upgraded to version 2.6.4 and WSP has been configured as the default spell checker.
  • 10470: The site engine dispatcher now sets Expires and Cache-Control headers using the lowest cache time for any element in the page, rather than the time remaining until the first element expires from the cache. This will make it easier to set up an efficient HTTP cache, and also make sure all pages don’t expire at the same time because they all contain some shared element (like the site navigation).
  • 10480: Greenfield times elements now handles disconencted/not serving clients in a more graceful manner.
  • 10481: Mochikit, used internally by Orchid, has been upgraded to 1.4.2.
  • 10503: User Guide has been moved to the Administration GUI. It can be found under the About Polopoly tab, in the top frame.
  • 10512: The JBoss installation instruction is now correct regarding the UseJBossWebLoader when using JBoss Web.
  • 10515: Sites aliases can now be resolved even if using a versioned content id.
  • 10520: The cm-server.ear can now be patched as the other jars.
  • 10525: A synchronization issue in community policy cache is now fixed.
  • 10528: Uploaded PNG files now get right mime type set ”image/png”.
  • 10530: Reconnecting to servers now works again when using PEAR.
  • 10538: The thread read performance of the CM client has been improved.
  • 10542: The default character encoding can now be set for the preview filter.
  • 10548: When creating a new version from a symbolic version using the CmServer or PolicyCMServer it is now guaranteed that this will always be done using the LATEST_COMMITTED_VERSION on the server, and not the one available in client caches.
  • 10549: The security parent loop detector now works correct in the 3-tier setup.
  • 10550: Default max versions on work flow content has been increased to 50000 to avoid having articles point to a version of the work flow content that has been removed.
  • 10551: GreenfieldTimes: Top list path when using a statistics based publishing queue is now correctly built using a leading ‘/’.
  • 10555: Cached statistics data on the client is now removed if it hasn’t been accessed for a long time (>1 hour).
  • 10560: The documentation for adding a new locale to the admin GUI has been reworked.
  • 10562: A white paper about backup has been added to the Developer’s Guide.
  • 10567: There now exists a Blog Top List, based on statistics, in Greenfield Times.
  • 10574: The site engine parent hierarchy indexer now follows the insert parent of the content being indexed rather than security parent, if there is an insert parent. The insert parent is the content reference named ”insertParentId” in the group ”polopoly.Parent”.
  • 10575: Greenfield Times now contains a list of the latest blog postings.
  • 10577: The forum index search service strategy now rebinds its searcher once every three minutes rather than always. This means performance for community searches will be better, but searching in the GUI will show older results.
  • 10582: Greenfield Times and the Community Example now requires at least Java 1.5 to compile.
  • 10589: A new page layout with two columns has been added to Greenfield Times to support blogs.
  • 10607: New content filters have been created for the front and preview webapps. For fronts com.polopoly.cm.client.filter.StandardFrontContentFilter should be used, for the preview webapp com.polopoly.cm.app.util.StandardPreviewContentFilter should be used. The filters include the functionality of the TimeStateFilter/PreviewTimeStateFilter that were previously default, and will be continuously updated with any new standard content filtering functionality.
  • 10619: Link resources in navigation elements of Greenfield Times now work the same way in both ”www” and ”mobile” modes.
Taggar: , , , ,

Change list – Polopolyversion 9.10.3

Apr 06

Atex Polopoly släppte i dag polopolyversionerna 9.10.3 och 9.12 här är ändringarna för 9.10.3 , så som de presenteras på Atex Polopolys supportwebb.

Change List for 9.10.3

  • 10456: Passwords for default system cmUsers (webmaster, xmlioadmin, sysadmin) are no longer reset at upgrade. Also the forumsuperuser’s password is not reset but for new installations after 9.10.0 forumsuperuser is no longer a CM user.
  • 10480: Greenfield times elements now handles disconencted/not serving clients in a more graceful manner.
  • 10515: Sites aliases can now be resolved even if using a versioned content id.
  • 10519: Corrected localized string keys for captcha in Greenfield Times.
  • 10520: The cm-server.ear can now be patched as the other jars.
  • 10525: A synchronization issue in community policy cache is now fixed.
  • 10528: Uploaded PNG files now get right mime type set ”image/png”.
  • 10530: Reconnecting to servers now works again when using PEAR.
  • 10538: The thread read performance of the CM client has been improved.
  • 10542: The default character encoding can now be set for the preview filter.
  • 10549: The security parent loop detector now works correct in the 3-tier setup.
  • 10550: Default max versions on work flow content has been increased to 50000 to avoid having articles point to a version of the work flow content that has been removed.
  • 10551: GreenfieldTimes: Top list path when using a statistics based publishing queue is now correctly built using a leading ‘/’.
  • 10555: Cached statistics data on the client is now removed if it hasn’t been accessed for a long time (>1 hour).
  • 10560: The documentation for adding a new locale to the admin GUI has been reworked.
  • 10562: A white paper about backup has been added to the Developer’s Guide.
  • 10574: The site engine parent hierarchy indexer now follows the insert parent of the content being indexed rather than security parent, if there is an insert parent. The insert parent is the content reference named ”insertParentId” in the group ”polopoly.Parent”.
  • 10582: Greenfield Times and the Community Example now requires at least Java 1.5 to compile.
  • 10619: Link resources in navigation elements of Greenfield Times now work the same way in both ”www” and ”mobile” modes.

Taggar: , , , ,

Systemmeddelande i Polopolys redaktörsgränssnitt

Apr 01

En länge efterlängtad funktion från informationsavdelningen och systemdriften som underhåller installationen på KTH har varit att man ska kunna lägga upp ett systemmeddelande i Polopolys redaktörsgränssnitt som alla som loggar in eller redan är inloggade ska kunna se tydligt. Detta för att man snabbt och enkelt ska kunna informera alla inloggade redaktörer om man till exempel ska göra ändringar eller ska ta ner back end-servern för en uppgradering, så att de i god tid kan spara sitt pågående arbete och logga ut.

Systemmeddelande

Funktionen bygger på följande komponenter:

  • Polopolys indatamall p.UserSessionTemplate överlagras och får fältet:
    <field="systemMessage" input-template="it.field.systemMessage" label="" />
  • Mallen it.field.systemMessage definierar enbart policyn och en widget för editor och viewer.
  • Policyn är en extendad SingeValuePolicy som för tillfället inte innehåller någon extra funktionalitet.
  • Widgeten rendrerar en stylad div och hämtar systemmeddelandet (första gången) om det finns något. Till denna policywidget finns också en jQuerybaserad javascriptfil som till uppgift har att hämta systemmeddelandet via ett ajaxanrop var 3:e minut från en specificerd url, detta så att det ständigt uppdateras även om redaktören inte refreshar sidan.
  • I den mall (valfri) som sytemmeddelandet ska matas in läggs ett fält av typen p.TextArea in som senare innehåller själva meddelandet.
  • På den ovannämnda specificerade url:en ligger en servlet som hämtar systemmeddelandet och skriver ut det i en divtagg med ett id som ajaxanropet känner till. I responset så var vi tvugna att sätt headen så att den aldrig cachar sidan. response.setHeader(”Cache-Control”, ”no-cache”); Annars fanns det risk att IE inte fick ett uppdaterat meddelande.

Om det är någon som vill veta mer om denna mall, ta en titt på tråden i forumet med namnet ”Systemmeddelande” under kategorin ”Mallutveckling”. Den innehåller bl.a. delar av källkoden.

Taggar: , , , , ,