[
https://issues.apache.org/jira/browse/ATLAS-4924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Priyanshi Shah updated ATLAS-4924:
----------------------------------
Description:
When client timezone is UTC and server is on PST timezone, search filters will
process the result according to the system timezone i.e PST and hence, the
results are wrongly fetched. This is an intermittent issue as if the entities
were created according to PST timezones then the search filter could have
fetched proper results.
*Steps to reproduce:*
*Scenario* : Using "Today" filter with timerange operator, also client and
server are on different timezones say UTC and PST:
{code:java}
1. Create two entities in UTC timezones.
For example: If Today is 18th Nov'24 set one entity createTime as
"1731888000000" and other as "1731974399000" which are basically start and end
time of the day.
2. Search that entity with its typedef and select "createTime" as attributeName
and operator as "Time Range" and value as "Today".
{code}
*Results:*
{+}Expectation{+}: Both the entities should be fetched.
{+}Actual{+}: Only one entity is getting fetched having createTime as
"1731974399000".
was:
When client timezone is UTC and server is on PST timezone, searchfilters will
process the result according to the system timezone i.e PST and hence, the
results are wrongly fetched. This is an intermediate issue.
*Steps to reproduce:*
*Scenario* : Using "Today" filter with timerange operator, also client and
server are on different timezones say UTC and PST:
{code:java}
1. Create two entities in UTC timezones.
For example: If Today is 18th Nov'24 set one entity createTime as
"1731888000000" and other as "1731974399000" which are basically start and end
time of the day.
2. Search that entity with its typedef and select "createTime" as attributeName
and operator as "Time Range" and value as "Today".
{code}
*Results:*
{+}Expectation{+}: Both the entities should be fetched.
{+}Actual{+}: Only one entity is getting fetched having createTime as
"1731974399000".
> When client and server are on different timezones, searchFilter gives
> incorrect results using timerange operator.
> -----------------------------------------------------------------------------------------------------------------
>
> Key: ATLAS-4924
> URL: https://issues.apache.org/jira/browse/ATLAS-4924
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Reporter: Priyanshi Shah
> Assignee: Priyanshi Shah
> Priority: Major
> Fix For: 3.0.0, 2.3.0
>
>
> When client timezone is UTC and server is on PST timezone, search filters
> will process the result according to the system timezone i.e PST and hence,
> the results are wrongly fetched. This is an intermittent issue as if the
> entities were created according to PST timezones then the search filter could
> have fetched proper results.
> *Steps to reproduce:*
> *Scenario* : Using "Today" filter with timerange operator, also client and
> server are on different timezones say UTC and PST:
>
> {code:java}
> 1. Create two entities in UTC timezones.
> For example: If Today is 18th Nov'24 set one entity createTime as
> "1731888000000" and other as "1731974399000" which are basically start and
> end time of the day.
> 2. Search that entity with its typedef and select "createTime" as
> attributeName and operator as "Time Range" and value as "Today".
>
> {code}
> *Results:*
> {+}Expectation{+}: Both the entities should be fetched.
> {+}Actual{+}: Only one entity is getting fetched having createTime as
> "1731974399000".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)