Jean-Philippe Lang
dac7903da3
Fixes uploading of empty files ( #25115 ).
...
- prevents creation of attachment records without existing diskfile and empty
digest
- adds test case to check file upload API response
- also removes the file size check in ActsAsAttachable which still prevented
attachment of zero size attachments to containers but only for clients
without Javascript (where save_attachments is called with the actual file
upload).
Patch by Jens Kraemer.
git-svn-id: http://svn.redmine.org/redmine/trunk@16341 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-02-28 18:05:17 +00:00
Jean-Philippe Lang
56159412b3
Issues API does not respect time_entries_visibility ( #24875 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@16293 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-29 10:31:04 +00:00
Jean-Philippe Lang
514d9bad9e
Fixed that project settings should show locked members ( #22034 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16116 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-31 13:33:02 +00:00
Jean-Philippe Lang
e068f855dc
Files REST API ( #19116 ).
...
Patch by Lucile Quirion and Jake Kemme.
git-svn-id: http://svn.redmine.org/redmine/trunk@16109 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-21 10:05:55 +00:00
Jean-Philippe Lang
3186130966
Don't use assert_equal nil.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16064 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-12 21:36:14 +00:00
Jean-Philippe Lang
bf5dade8df
Use assert_nil instead of assert_equal.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16060 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-11 15:26:41 +00:00
Jean-Philippe Lang
3a2b6c7c96
Enforce issue assignee validation ( #23921 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16055 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-10 12:02:37 +00:00
Jean-Philippe Lang
4df50bc66b
Adds a test for #24297 .
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15956 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-11-18 08:37:24 +00:00
Jean-Philippe Lang
be11a2048b
Test failure.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15888 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-04 20:31:32 +00:00
Jean-Philippe Lang
30fc03ac32
Adds a routing test for deleting attachment via the API.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15862 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-01 13:24:18 +00:00
Jean-Philippe Lang
696c510852
Add support for updating attachments over REST API ( #22356 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15861 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-01 13:22:35 +00:00
Jean-Philippe Lang
d478785aea
Let the API accept project identifier for creating issues ( #23766 ).
...
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@15855 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-01 09:06:17 +00:00
Jean-Philippe Lang
baaa15ebdd
Return attachment id in api response to attachment upload ( #23566 ).
...
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@15762 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-08-30 21:15:13 +00:00
Jean-Philippe Lang
8b107b6058
Don't use render :text => "".
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15731 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-21 20:49:14 +00:00
Jean-Philippe Lang
e1da6de36f
Removes calls to #assert_template and #assigns in integration tests.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15727 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-21 17:50:00 +00:00
Jean-Philippe Lang
681740d5be
Tests for #22754 .
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15443 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-06-04 07:41:05 +00:00
Jean-Philippe Lang
7d6b3d344d
Add support for attaching file to WIKI pages by REST API ( #14830 ).
...
Patch by Takenori TAKAKI.
git-svn-id: http://svn.redmine.org/redmine/trunk@15415 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-16 06:29:52 +00:00
Jean-Philippe Lang
0e59482e90
Include private_notes property in xml/json Journals output ( #20985 ).
...
Patch by Takenori TAKAKI.
git-svn-id: http://svn.redmine.org/redmine/trunk@15414 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-16 06:25:11 +00:00
Jean-Philippe Lang
60bb7565dd
Include value and label of possible values in custom fields API ( #22745 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15401 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-08 08:44:53 +00:00
Jean-Philippe Lang
130424fc3e
Support for deleting attachments via API ( #14828 ).
...
Patch by Takenori TAKAKI.
git-svn-id: http://svn.redmine.org/redmine/trunk@15332 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-04-12 19:18:34 +00:00
Jean-Philippe Lang
223141a20b
Support of default Active Record (I18n) transliteration paths ( #22383 ).
...
Patch by Ivan Zabrovskiy.
git-svn-id: http://svn.redmine.org/redmine/trunk@15330 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-04-12 18:54:28 +00:00
Jean-Philippe Lang
e1aa18b333
Handle search pagination with the REST API ( #6277 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15264 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-19 10:27:55 +00:00
Jean-Philippe Lang
7a81281583
Missing fixtures ( #6277 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15263 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-19 09:43:53 +00:00
Jean-Philippe Lang
5533a2b5f2
REST API for Search ( #6277 ).
...
Patch by Akiko Takano and Takenori TAKAKI.
git-svn-id: http://svn.redmine.org/redmine/trunk@15262 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-19 09:42:35 +00:00
Jean-Philippe Lang
39a3ffd069
Total spent hours and estimated hours need to be get via REST ( #21757 ).
...
Patch by Takenori TAKAKI.
git-svn-id: http://svn.redmine.org/redmine/trunk@15254 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-19 09:05:12 +00:00
Jean-Philippe Lang
5d9b87de3a
NameError: uninitialized constant Redmine::ApiTest::GroupsTest::MultiJson
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15252 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-17 19:57:59 +00:00
Jean-Philippe Lang
cda9c63d9c
Updates copyright for 2016.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-13 10:30:10 +00:00
Jean-Philippe Lang
aaeb0807bf
Accept dots in JSONP callback ( #13718 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15066 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-01-16 09:08:06 +00:00
Jean-Philippe Lang
a196aaa2a9
Fixed that Issues API may disclose changesets that are not visible ( #21136 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14794 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-11-04 18:17:07 +00:00
Jean-Philippe Lang
e6112a9710
New custom fields of existing issues are not initialized with their default value ( #21074 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14773 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-31 09:17:29 +00:00
Jean-Philippe Lang
fac0f7f38b
Adds tests for default custom field value ( #21074 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14768 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-30 12:59:48 +00:00
Jean-Philippe Lang
c63da2c0a5
Use generated groups.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14710 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-20 18:02:52 +00:00
Jean-Philippe Lang
d509341797
API: creating an issue with an invalid project_id should return 422 instead of 403 ( #19276 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14141 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-20 10:02:45 +00:00
Jean-Philippe Lang
6c5e5142df
Don't include milliseconds in JSON API responses ( #19354 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14101 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-15 09:49:35 +00:00
Jean-Philippe Lang
242eb5db5d
Fixed assertion ( #19368 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14087 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-14 12:13:37 +00:00
Jean-Philippe Lang
1014ba195f
Fixed assertion ( #19368 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14086 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-14 11:40:01 +00:00
Jean-Philippe Lang
9dfe8fe03c
Adds a test for setting multivalued custom fields with JSON ( #19368 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14084 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-14 09:54:11 +00:00
Jean-Philippe Lang
5e1d042c40
Fixed that creating an issue without tracker_id attribute ignores custom field values ( #19368 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14083 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-14 09:53:36 +00:00
Jean-Philippe Lang
95e5902b4c
Adds a test for #19270 .
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14046 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-07 07:31:01 +00:00
Jean-Philippe Lang
0b04de0a23
Send a better content type than application/octet-stream ( #19131 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14034 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-19 17:46:24 +00:00
Jean-Philippe Lang
177dd7bff1
Fixed that timestamps may not be formatted as expected in XML responses ( #19065 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14015 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-16 17:57:52 +00:00
Jean-Philippe Lang
b50fa8fec1
Fixed attachment fixture (should be attached to issue 3 because one of its journals references it), r13937.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13942 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-24 11:27:28 +00:00
Toshi MARUYAMA
0bc87002d2
add missing fixture to test/integration/api_test/groups_test.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13917 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-19 04:50:29 +00:00
Jean-Philippe Lang
d85f73a30d
Upgrade to Rails 4.2.0 ( #14534 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13892 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-17 17:02:55 +00:00
Jean-Philippe Lang
e3618bdbec
Add support for multiple email addresses per user ( #4244 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13886 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-17 14:14:12 +00:00
Jean-Philippe Lang
000124f44f
Copyright update.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-11 09:09:50 +00:00
Jean-Philippe Lang
12890945e5
Allow attachment thumbnails from REST API ( #18707 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13806 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-26 11:26:24 +00:00
Jean-Philippe Lang
e723081ff4
Use upload helper method.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13793 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-22 14:14:36 +00:00
Jean-Philippe Lang
3fe8197d73
Use raw request content in tests to make sure that XML/JSON payload is properly parsed.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13792 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-22 13:46:31 +00:00
Jean-Philippe Lang
9b082712a0
Adds tests for creating an issue with multiple uploads.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@13791 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-12-22 13:41:51 +00:00