[jboss-jira] [JBoss JIRA] (DROOLS-240) ResourceChangeScanner not removing UrlResources

Demian Calcaprina (JIRA) jira-events at lists.jboss.org
Sat Aug 24 16:11:26 EDT 2013


     [ https://issues.jboss.org/browse/DROOLS-240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Demian Calcaprina updated DROOLS-240:
-------------------------------------

    Attachment: UrlTest.java

    
> ResourceChangeScanner not removing UrlResources
> -----------------------------------------------
>
>                 Key: DROOLS-240
>                 URL: https://issues.jboss.org/browse/DROOLS-240
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.5.0.Final
>         Environment: java version "1.7.0_21"
> Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
>            Reporter: Demian Calcaprina
>            Assignee: Mark Proctor
>            Priority: Critical
>         Attachments: UrlTest.java
>
>
> I am seing that the resources in the KnowledgeBase are being deleted without aparent reason.
> I have some URL resources configured to get it from guvnor using the basic auth.
> It seems this method,
> https://github.com/droolsjbpm/drools/blob/5.5.x/drools-core/src/main/java/org/drools/io/impl/UrlResource.java#L252
> is not including auth parameters to get the last modified date from the resource url. This is causing (in my environment), to get last modified date as 0, and this makes the ResourceChangeScanner to remove the resource from the kbase. I made the fix and seems to work fine in my machine.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list