Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-55047

Basic document type is not added automatically to newly created shards

    Details

    • Fix Priority:
      2

      Description

      Basic document type is not added automatically to newly created shards.

      Steps

      1. Unzip a clean bundle of 6.2 SP10
      2. Extract portal-impl.jar > META-INF/shard-data-source-spring.xml to webapps/ROOT/WEB-INF/classes/META-INF
      3. Copy the following portal-ext.properties. Be sure the third shard remains commented out. (replace the database settings with your own)
        jdbc.default.driverClassName=com.mysql.jdbc.Driver
        jdbc.default.url=jdbc:mysql://localhost/62ga1?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
        jdbc.default.username=root
        jdbc.default.password=liferay
        
        jdbc.one.driverClassName=com.mysql.jdbc.Driver
        jdbc.one.username=root
        jdbc.one.url=jdbc:mysql://localhost/ga2?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
        jdbc.one.password=liferay
        
        #jdbc.two.driverClassName=com.mysql.jdbc.Driver
        #jdbc.two.username=root
        #jdbc.two.url=jdbc:mysql://localhost/ga1?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
        #jdbc.two.password=liferay
        
        shard.selector=com.liferay.portal.dao.shard.ManualShardSelector
        
      1. add META-INF/shard-data-source-spring.xml,\ to spring.configs in portal-ext.properties
      2. Start the portal.
      3. Notice that two verify processes run - one per shard.
      4. Stop the portal.
      5. Uncomment the database connection properties for the third shard.
      6. Start the portal.
      7. The log output will show the the new shard being detected and it will create the default schema, however the VerifyProcess IS NOT RUN.
      8. Log into MySQL and check the DLFileEntryType table – it is empty.

      Expected
      New shard would have a basic document type
      Actual Result
      New shard does not have a basic document type

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 24 weeks, 3 days ago

                Packages

                Version Package