Skip to content

Update of the code with the update of some of the dependencies #846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

mmoqui
Copy link
Member

@mmoqui mmoqui commented Oct 26, 2017

Don't forget to merge before:

Don't forget to merge after:

With the update of some of the dependencies and the removal of some of very old
dependencies, some codes have been refactored:

  • The application cache in the Caching Engine is now based upon the new version
    of ehcache. In its new version the element expiry mechanism has now to be
    explicitly defined. If ehcache 3 provides a default mechanism for TTL-based
    expiry or TTI-based expiry, nothing is provided to define a mechanism based
    upon both TTL and TTI as it was in ehcache 2. So a custom expiry mechanism
    is defined to implement the way the TTL-and-TTI-based expiry was
    managed in ehcache 2.
    With the new version of ehcache, any null key throws immediately
    NullPointerException. This cause problems with MessageManager that uses the
    application cache and particularely in tests. So, the tests were updated to
    initialize MessageManager and a check is performed in MessageManager when
    accessing the application cache to catch the NullPointerException exception.

  • In the last version of Apache POI, the attributes are now encapsultated by
    getter. So replace all the direct attribute accesses by their counterpart
    getter.

  • The iCal4J API as some subtle changes. The HTMLProperty is modified
    consequently to those changes. Timezone registry in iCal4J requires a JCache
    implementation to cache timezones. EhCache 3 provides an implementation of
    JCache but it is necessary to declare the cache-api (JCache API) dependency to
    load this implementation for the iCal4J Timezone (use of the ServiceLoader
    mechanism)

  • In the new Jackson version, the null fields are now also serialized.
    Set a configuration parameter to the ObjectMapper in JSONCodec so that
    Jackson behaves like its previous versions, that is to say by omitting any null fields.

  • The very old informa library to produce or to consume RSS feeds is now
    replaced by the last version of Rome. All the codes that used informa are now
    refactored to use Rome instead of informa.

  • Spring social connectors are updated to their last stable version. For doing,
    as LinkedIn has migrated their OAuth mechanism to OAuth2 and discourages
    strongly the use of OAuth1, the Linked connector in Silverpeas is updated to
    use OAuth2 instead of OAuth1.

…f very old

dependencies, some codes have been refactored:
- The application cache in the Caching Engine is now based upon the new version
  of ehcache. In its new version the element expiry mechanism has now to be
  explicitly defined. If ehcache 3 provides a default mechanism for TTL-based
  expiry or TTI-based expiry, nothing is provided to define a mechanism based
  upon both TTL and TTI as it was in ehcache 2. So a custom expiry mechanism
  is defined to implement close the way the TTL-and-TTI-based expiry was
  managed in ehcache 2.
  With the new version of ehcache, any null key throws immediately
  NullPointerException. This cause problems with MessageManager that uses the
  application cache and particularely in tests. So, the tests were updated to
  initialize MessageManager and a check is performed in MessageManager when
  accessing the application cache to catch the NullPointerException exception.

- In the last version of Apache POI, the attributes are now encapsultated by
  getter. So replace all the direct attribute accesses by their counterpart
  getter.

- The iCal4J API as some subtle changes. The HTMLProperty is modified
  consequently to those changes.

- In the new Jackson version, the null fields are now also serialized.
  Set a configuration parameter to the ObjectMapper in JSONCodec so that
  Jackson behaves like its previous versions.

- The very old informa library to produce or to consume RSS feeds is now
  replaced by the last version of Rome. All the codes that used informa are now
  refactored to use Rome instead of informa.

- Spring social connectors are updated to their last stable version. For doing,
  as LinkedIn has migrated their OAuth mechanism to OAuth2 and discourages
  strongly the use of OAuth1, the Linked connector in Silverpeas is updated to
  use OAuth2 instead of OAuth1.
@SilverYoCha
Copy link
Member

Merged.
Closed manually because of manual git operations performed during integration.

@SilverYoCha SilverYoCha closed this Nov 7, 2017
@mmoqui mmoqui deleted the dependencies-update branch November 27, 2017 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants