プロジェクト

全般

プロフィール

Vote #77795

未完了

Regression in REST API ISSUES GET

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Needs feedback
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
23794
author_id:
158110
assigned_to_id:
0
comments:
5
status_id:
10
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
110
ステータス-->[Needs feedback]

説明

In previos redmine version i've used rest api to sync with our ERP/CRM system for further analisis

To get only updated issues we used uri like this

issues.xml?key=8c4cc4a8a142484dcbe62b7e86bdfe1cb9045bec&updated_on=%3E%3D2016-09-07T06:12:07Z&limit=100&status_id=*&sort=updated_on

Where "2016-09-07T06:12:07Z" is a timestamp of the last sync issue

After 3.3 update this GET request returns issues that were update before this date

I've tried this request with various dates and came across to the conclusion, that when i use only "2016-09-07" i get the correct result, but when i add time - i get strange set of issues

I've also checked the Rest_Issues, but i did not see any changes

Please help to understand what is whong in this request (it worked well for a long time before the 3.3 update) or fix the problem if it is a bug


journals

It seems that when i use timestamp (e.g "2016-09-07T06:12:07Z") the request returns all issues updated_on from the begining of that year.
--------------------------------------------------------------------------------
Test covers.
source:tags/3.3.0/test/integration/api_test/issues_test.rb#L128

Please see [[submissions]].
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Our's environment is:
<pre>
Environment:
Redmine version 3.3.0.stable
Ruby version 2.1.2-p95 (2014-05-08) [x86_64-linux]
Rails version 4.2.6
Environment production
Database adapter Mysql2
SCM:
Subversion 1.6.11
Git 1.7.1
Filesystem
Redmine plugins:
a_common_libs 2.2.0
ajax_counters 1.4.0
clear_plan 2.2.0
global_roles 2.1.0
luxury_buttons 3.7.5
redmine_favorite_projects 2.0.2
redmine_issue_tabs 1.1.1
redmine_my_page 0.1.9
unread_issues 2.1.0
usability 2.1.3
</pre>

Should we provide anything more ?
And what about your's point to test ? Do you want, that we shall run it ?

--------------------------------------------------------------------------------
Wadim Incognito wrote:
> Do you want, that we shall run it ?

Yes. Because vanilla Redmine tests pass.
http://www.redmine.org/builds/index.html
Make sure to run on *test* environment, not production environment.

--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリREST API_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0