Skip to content

Migration notes

Benoit Orihuela edited this page Dec 20, 2018 · 34 revisions

Version 1.54.0

In application.yml :

  • Create an object confs which will contain configuration for the different portal. Don't forget to add a new conf here when you add a new domain name, the critical key is confs.yourWebSite.url. For example confs contains Ozwillo portal configuration :
confs:
  ozwillo:
    url: https://portal.ozwillo.com
    error_401: https://portal.ozwillo.com/my
    baseImageUrl: ${confs.ozwillo.url}/media
    defaultIconUrl: ${confs.ozwillo.url}/img/noicon.png
    web:
      googleTag: googleTagHere
      home: https://www.ozwillo.com
      sitemap:
        url_footer: ${confs.ozwillo.web.home}/footer.json
    kernel:
      client_id: clientIdHere
      client_secret: clientSecretHere
      callback_uri: ${confs.ozwillo.url}/callback
      post_logout_redirect_uri: ${conf.ozwillo.url}/fr/store
      home_uri: ${confs.ozwillo.url}/my
    opendata:
      url: https://opendata.ozwillo.com
  • Don't forget to replace clientIdHere, clientSecretHere and googleTagHere with your values.
  • Remove opendata object
  • Remove web's keys : home , url_header, url_footer
  • Remove kernel's keys : client_id, client_secret, callback_uri, home_uri
  • Remove application's keys : baseImageUrl, defaultIconUrl, url, error.401
  • Remove spring.mail object
  • Remove mail object
  • Remove captcha object

In your MongoDB's portal and portal_test :

  • Remove sitemap and sitemapheader collections.
  • To add a new theme create a new entry in style_properties collection, and add your CSS properties.

  • Migrate portal app id (java -cp "/usr/lib/oasis/lib/*" oasis.tools.MigratePortalAppId -c /etc/oasis/oasis.conf)
  • destroy and recreate Kernel's ES indexes

Version 1.53.0

No special actions needed.

Version 1.52.0

In application.yml :

Version 1.51.0 (current)

In application.yml :

  • Rename the key spring.http.multipart.max-file-size to spring.servlet.multipart.max-file-size

Version 1.50.0

In application.yml :

  • Remove the following key :
kernel.maxUserMembershipsPerPage
  • Add the following key (used to batch import organizations) :
application.importPassword
  • Add the FranceConnect keys :
account_france_connect_uri: ${kernel.account_uri}/a/franceconnect
kernel_france_connect_uri: ${kernel.base_uri}/a/franceconnect
france_connect:
  link_endpoint: ${kernel.account_france_connect_uri}/login
  unlink_endpoint: ${kernel.account_france_connect_uri}/unlink
  userinfo_endpoint: ${kernel.kernel_france_connect_uri}/userinfo
  enabled: false

The page /my/network no longer exists and is automatically redirected to /my/organization. Please update your links to this page.

Version 1.49.0

You should add secret, siteKey and account_uri in application.yml for the reCaptcha Google API

// application.yml
kernel:
  account_uri: 
captcha:
  secret: 
  sitekey: 

Version 1.48.0

In application.yml :

  • Remove the following keys :
application.imageBlacklistTtl
application.installedStatusTtl
application.catalogCacheTtl
  • Update mail configuration

Version 1.44.0

Before restarting the application, clean up the sitemap and sitemapheader collections.

In application.yml, add the following keys :

spring.output.ansi.enabled: DETECT

server:
  compression.enabled: true

# only for 64x64 pngs which should be mostly below 5000B
multipart.max-file-size: 20KB

And remove the web.maxUploadSize key.

Version 1.43.0

In application.yml, apply the following changes :

  • Remove spring.thymeleaf.cache property (automatically managed by Spring Boot)

Version 1.37

In application.yml, apply the following changes :

  • Change Kernel's URL to https (instead of http)