• M
    Merge r27590:28071 and r28073 from branches/old-data-monitor into trunk. · 07f0405f
    mindless 提交于
    --Merged-in:------------------------------------------------------------
    r27601 | mindless | 2010-02-16 20:21:50 -0800 (Tue, 16 Feb 2010) | 8 lines
    
    Add OldDataMonitor for tracking loaded data that contained old deprecated data,
    the Saveable objects that can be save()'ed to persist the data in its new format,
    and the Hudson releases where these structure changes took place.
    A "Manage Old Data" form explains how Hudson deals with migrating old data
    (keeping downgrades possible), lists the old data, and allows upgrade of the data
    files with changes up through a selected Hudson release.
    Added calls of OldDataMonitor.report() for six old deprecated fields/data changes.
    
    --Merged-in:------------------------------------------------------------
    r27683 | mindless | 2010-02-19 11:43:40 -0800 (Fri, 19 Feb 2010) | 5 lines
    
    Expand OldDataMonitor to also track unreadable data found while loading.
    These are reported from util.RobustReflectionConverter and RobustCollectionConverter.
    "Manage Old Data" screen has additional text about unreadable data, and a form
    to resave those files which will discard that data.
    
    --Merged-in:------------------------------------------------------------
    r27715 | mindless | 2010-02-20 08:56:51 -0800 (Sat, 20 Feb 2010) | 3 lines
    
    Add Saveable/Item/Run listeners to remove entries tracked by OldDataMonitor
    if they are resaved or deleted.
    
    --Merged-in:------------------------------------------------------------
    r27970 | mindless | 2010-02-26 09:02:43 -0800 (Fri, 26 Feb 2010) | 6 lines
    
    Add OldDataMonitor reporting for deprecated fields in Mailer and HudsonPrivateSecurityRealm.
    Includes fix in RobustReflectionConverter to report against outermost Saveable object
    (User object can contain MyViewsProperty which is also Saveable).
    Also added XStream2.PassthruConverter which is used to report old data during
    unmarshalling when the containing Saveable is not known.
    
    --Merged-in:------------------------------------------------------------
    r27982 | mindless | 2010-02-26 11:35:41 -0800 (Fri, 26 Feb 2010) | 3 lines
    
    Fix to show username for User objects instead of "fullDisplayName".
    Also increased threshold for possible compatibility removal from 100 to 150 releases.
    
    --Merged-in:------------------------------------------------------------
    r27983 | mindless | 2010-02-26 11:43:06 -0800 (Fri, 26 Feb 2010) | 5 lines
    
    Add OldDataMonitor reporting for ParametersAction.build, CauseAction.cause
    and UpstreamCause.upstreamCause.
    Note: these will make the list of objects on the OldData/manage screen very long
    for Hudson installs with lots of builds run on Hudson 1.283 to 1.287.
    
    --Merged-in:------------------------------------------------------------
    r27987 | mindless | 2010-02-26 12:33:59 -0800 (Fri, 26 Feb 2010) | 4 lines
    
    Refactored XStream2.PassthruConverter so uses do not need to be registered with
    the XStream2 instance, but work for all XStream2 (using ConverterImpl subclass
    found by AssociatedConverterImpl).
    
    --Merged-in:------------------------------------------------------------
    r27989 | mindless | 2010-02-26 13:38:35 -0800 (Fri, 26 Feb 2010) | 3 lines
    
    Add a cache of ConverterImpl instances in AssociatedConverterImpl to avoid
    repeated work in findConverter every time such an object is marshalled/unmarshalled.
    
    --Merged-in:------------------------------------------------------------
    r27996 | mindless | 2010-02-26 16:47:19 -0800 (Fri, 26 Feb 2010) | 2 lines
    
    Add OldDataMonitor reporting for HealthReport.description
    
    --Merged-in:------------------------------------------------------------
    r27997 | mindless | 2010-02-26 16:49:28 -0800 (Fri, 26 Feb 2010) | 5 lines
    
    Remove readResolve() in 3 classes where a Converter now does that work.
    In GlobalMatrixAuthorizationStrategy and AuthorizationMatrixProperty also
    add unreadable-data reporting when unable to parse a permission type,
    and report when Item.READ permission is added for migration from < 1.301
    
    --Merged-in:------------------------------------------------------------
    r28073 | mindless | 2010-02-28 23:18:06 -0800 (Sun, 28 Feb 2010) | 5 lines
    
    Report any old XStream 1.1.x serialized (files from Hudson before 1.106)
    to OldDataMonitor, using a ThreadLocal since the unmarshal context is not
    available in the mapper.  These use "-" to encode "$" in a class name
    instead of "_-" used now.
    
    +-End-of-merged-revisions----------------------------------------------+
    
    
    
    git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28147 71c3de6d-444a-0410-be80-ed276b4c234a
    07f0405f
XStream2.java 10.1 KB