Hi devs,

As with the offline discussion with @Ayesha <aye...@wso2.com> , we are
going to add the missing configs in registry.xml file. According to the new
config, these configs will be added in registry.xml.j2 file by default.
There are three ways proposed by @Hasini Witharana <hasi...@wso2.com> to
add these configs in the j2 file.

1. Using antrun-plugin add add the config. Since the
<indexingConfiguration> is a large config, it will take much space if we
add this in distribution/pom.xml file
2. Taking the registry.xml.j2 file to the product-is side and override the
configs. But if some new configs are added in registry.xml file from kernel
side, then this may cause some issues.
3. Using config-processor plugin and add the missing config in
registry.xml.j2 file.

With the offline discussion with @Hasini Witharana <hasi...@wso2.com> and
@Ayesha <aye...@wso2.com> ,  option 3  was suggested and we are going with
option3 to add the missing configs.

Thanks,
Piraveena
*Piraveena Paralogarajah*
Software Engineer | WSO2 Inc.
*(m)* +94776099594 | *(e)* pirave...@wso2.com



On Sun, Aug 4, 2019 at 12:58 PM Piraveena Paralogarajah <pirave...@wso2.com>
wrote:

> Hi Darshana,
>
> Is the "indexingConfiguration" only config that has been missed in the
>> 5.9.0 when compared to 5.8.0?
>>
>
> No. Another config is also missing. I have added below
>
>  <handler
> class="org.wso2.carbon.identity.entitlement.policy.finder.registry.RegistryPolicyHandler">
>  <filter
> class="org.wso2.carbon.identity.entitlement.policy.finder.registry.RegistryPolicyMediaTypeMatcher">
>  <property name="mediaType">application/xacml-policy+xml</property>
>  </filter>
>  </handler>
>
> But the following configs are added newly in 5.9.0 pack with the new
> config model in registry.xml file.
>
> <dbConfig name="govregistry">
>         <dataSource>jdbc/SHARED_DB</dataSource>
>     </dbConfig>
>     <dbConfig name="configregistry">
>         <dataSource>jdbc/SHARED_DB</dataSource>
>     </dbConfig>
>
>     <remoteInstance url="https://localhost";>
>         <id>gov</id>
>         <cacheId>wso2carbon@jdbc
> :h2:./repository/database/WSO2SHARED_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000</cacheId>
>         <dbConfig>govregistry</dbConfig>
>         <readOnly>false</readOnly>
>         <enableCache>true</enableCache>
>         <registryRoot>/</registryRoot>
>     </remoteInstance>
>
>  <remoteInstance url="https://localhost";>
>         <id>conf</id>
>         <cacheId>wso2carbon@jdbc
> :h2:./repository/database/WSO2SHARED_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000</cacheId>
>         <dbConfig>configregistry</dbConfig>
>         <readOnly>false</readOnly>
>         <enableCache>true</enableCache>
>         <registryRoot>/</registryRoot>
>     </remoteInstance>
>
>     <mount path="/_system/governance" overwrite="true">
>         <instanceId>gov</instanceId>
>         <targetPath>/_system/governance</targetPath>
>     </mount>
>     <mount path="/_system/config" overwrite="true">
>         <instanceId>conf</instanceId>
>         <targetPath>/_system/config</targetPath>
>     </mount>
>
> Thanks,
> Piraveena
>
> *Piraveena Paralogarajah*
> Software Engineer | WSO2 Inc.
> *(m)* +94776099594 | *(e)* pirave...@wso2.com
>
>
>
> On Sat, Aug 3, 2019 at 9:08 AM Darshana Gunawardana <darsh...@wso2.com>
> wrote:
>
>> Hi Piraveena,
>>
>> Is the "indexingConfiguration" only config that has been missed in the
>> 5.9.0 when compared to 5.8.0?
>>
>> Thanks,
>>
>> On Fri, Aug 2, 2019 at 6:28 PM Piraveena Paralogarajah <
>> pirave...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> When I go through the registry.xml file in the IS-5.9.0-m5 pack, some
>>> configs which are in IS 5.8.0 are missing.
>>>
>>> The following *<indexingConfiguration> *config is found in IS 5.8.0
>>> pack. But it is not found in IS-5.9.0-m5 according to the current config
>>> model.
>>>
>>> <indexingConfiguration>
>>>         <startIndexing>false</startIndexing>
>>>         <startingDelayInSeconds>35</startingDelayInSeconds>
>>>         <indexingFrequencyInSeconds>5</indexingFrequencyInSeconds>
>>>         <!--number of resources submit for given indexing thread -->
>>>         <batchSize>40</batchSize>
>>>         <!--number of worker threads for indexing -->
>>>         <indexerPoolSize>40</indexerPoolSize>
>>>         <!-- location storing the time the indexing took place-->
>>>
>>> <lastAccessTimeLocation>/_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime</lastAccessTimeLocation>
>>>         <!-- the indexers that implement the indexer interface for a
>>> relevant media type/(s) -->
>>>         <indexers>
>>>             <indexer
>>> class="org.wso2.carbon.registry.indexing.indexer.MSExcelIndexer"
>>> mediaTypeRegEx="application/vnd.ms-excel"/>
>>>             <indexer
>>> class="org.wso2.carbon.registry.indexing.indexer.MSPowerpointIndexer"
>>> mediaTypeRegEx="application/vnd.ms-powerpoint"/>
>>>             <indexer
>>> class="org.wso2.carbon.registry.indexing.indexer.MSWordIndexer"
>>> mediaTypeRegEx="application/msword"/>
>>>             <indexer
>>> class="org.wso2.carbon.registry.indexing.indexer.PDFIndexer"
>>> mediaTypeRegEx="application/pdf"/>
>>>             <indexer
>>> class="org.wso2.carbon.registry.indexing.indexer.XMLIndexer"
>>> mediaTypeRegEx="application/xml"/>
>>>             <indexer
>>> class="org.wso2.carbon.registry.indexing.indexer.XMLIndexer"
>>> mediaTypeRegEx="application/(.)+\+xml"/>
>>>             <indexer
>>> class="org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer"
>>> mediaTypeRegEx="application/swagger\+json"/>
>>>             <indexer
>>> class="org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer"
>>> mediaTypeRegEx="application/(.)+\+json"/>
>>>             <indexer
>>> class="org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer"
>>> mediaTypeRegEx="text/(.)+"/>
>>>             <indexer
>>> class="org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer"
>>> mediaTypeRegEx="application/x-javascript"/>
>>>         </indexers>
>>>         <exclusions>
>>>             <exclusion
>>> pathRegEx="/_system/config/repository/dashboards/gadgets/swfobject1-5/.*[.]html"/>
>>>             <exclusion
>>> pathRegEx="/_system/local/repository/components/org[.]wso2[.]carbon[.]registry/mount/.*"/>
>>>         </exclusions>
>>>     </indexingConfiguration>
>>>
>>> Some new configs are available according to the new config model in
>>> registry.xml file. Are there any reasons for removing this particular
>>> config from registry.xml in the new configuration model?
>>>
>>> Thanks,
>>> Piraveena
>>> *Piraveena Paralogarajah*
>>> Software Engineer | WSO2 Inc.
>>> *(m)* +94776099594 | *(e)* pirave...@wso2.com
>>>
>>>
>>
>> --
>> Regards,
>>
>>
>> *Darshana Gunawardana*Technical Lead
>> WSO2 Inc.; http://wso2.com
>>
>> *E-mail: darsh...@wso2.com <darsh...@wso2.com>*
>> *Mobile: +94718566859*Lean . Enterprise . Middleware
>>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to