1242 Commits

Author SHA1 Message Date
Karel Picman
0bc63d689d Tree view doesn't work in some installations 2016-12-09 09:50:33 +01:00
Karel Picman
45b67f4ca6 An attempt to create a folder in the root causes an infinite loop #616 2016-11-30 15:23:36 +01:00
Karel Picman
562ad3b0f7 An attempt to create a folder in the root causes an infinite loop #616 2016-11-30 14:49:33 +01:00
Karel Picman
6a41b06129 Merge branch 'devel-1.5.9' of https://github.com/danmunn/redmine_dmsf into devel-1.5.9 2016-11-28 15:18:05 +01:00
Karel Picman
e1209a6148 WebDAV: PROPFIND to "/" and "/dmsf" throws FATAL error #598 2016-11-28 15:17:26 +01:00
Karel Picman
d7a0d8e2e3 #605 Russion localisation by movcale 2016-11-28 09:10:53 +01:00
Karel Picman
1b9bab1493 Merge pull request #610 from carlolars/global_title_format_fixes
Global title format fixes
2016-11-25 09:02:21 +01:00
Karel Picman
62b7e04a15 Merge pull request #612 from carlolars/restore_file_problem
Restore file problem
2016-11-25 08:58:44 +01:00
COLA@Redminetest
9e328c39ab dmsf_file_revisions are ordered by id instead of major_version, minor_version and updated_at.
Previously they were ordered by major_version DESC, minor_version DESC and updated_at DESC.
This caused problems after restoring deleted files as the updated_at field were set to the same for all revisions,
and renamed files have the same major and minor version and could therefore be sorted in the wrong order.
Why would it not be ordered by id from the start?
2016-11-24 22:23:46 +01:00
COLA@Redminetest
d2f3af0b88 source_revision for dependent revisions is updated on destroy instead of delete. 2016-11-24 21:37:17 +01:00
COLA@Redminetest
e7925a4f9a When displaying a link to a file use the display_name. 2016-11-24 17:31:35 +01:00
COLA@Redminetest
c53e8735b1 The display_name should also use the formatted_name. 2016-11-24 17:02:03 +01:00
COLA@Redminetest
db885d4edc The DmsfFilesController.view and .show methods did not use the global title format, only the user configured title format. 2016-11-24 16:32:44 +01:00
COLA@Redminetest
7a66ce52a9 The DmsfFileRevision.formatted_name method does no longer corrupt the argument 'format'. 2016-11-24 16:17:53 +01:00
Karel Picman
1d81f4c2c8 #605 Russion localisation by movcale 2016-11-23 10:50:05 +01:00
Karel Picman
c7b4e7e1a7 Merge pull request #607 from carlolars/MoveToUpdateRevision
Move to update revision, fixed #606
2016-11-22 12:43:47 +01:00
COLA@Redminetest
5d9826ebaa Update last_revision when moving a file. 2016-11-20 13:15:35 +01:00
Karel Picman
bd389c1e55 Merge pull request #604 from carlolars/603_WrongEmailWhenSendingDocuments
Fixing #603
2016-11-16 12:27:35 +01:00
Redmine User
84a878d2a5 Mailer.mail does not use :from but 'From' as the key for the from-address. #603
The from field is set to "Username <Usermail>".
2016-11-15 18:37:19 +01:00
Karel Picman
44be3cf540 modern upload file type don't work #593 2016-11-15 14:03:34 +01:00
Karel Picman
02c65e87aa 1.5.7 devel branch: Setting Title format should be global setting, but released as local setting #547 2016-11-15 08:56:11 +01:00
Karel Picman
3952ba31f7 Merge pull request #602 from carlolars/GlobalTitleFormat
Global Title Format
2016-11-15 08:51:35 +01:00
COLA@Redminetest
0d58cfade3 Added a global Title Format, configured in plugin settings and used when no user defined format is present. 2016-11-14 19:16:30 +01:00
Karel Picman
70b56a0a53 Revision deleting #580 2016-11-10 11:00:05 +01:00
Karel Picman
539daa5472 Wrong file size #579 2016-11-10 10:23:56 +01:00
Karel Picman
44bf173845 Merge pull request #595 from carlolars/OfficeSupport
Office support
2016-11-09 08:47:28 +01:00
COLA@Redminetest
6bbe6fc3cc Instead of having one options/head method in each resource call the options/head method in the superclass. 2016-11-09 00:09:12 +01:00
COLA@Redminetest
94369569f3 Only allow anonymous OPTIONS and HEAD if request really is anonymous. 2016-11-09 00:09:12 +01:00
COLA@Redminetest
311eeb86d6 Added tests for OPTIONS and HEAD requests for updated MsOffice support. 2016-11-09 00:08:45 +01:00
COLA@Redminetest
1ba6b3e7d5 Verify that user_agent is not nil before using it. 2016-11-08 21:08:08 +01:00
COLA@Redminetest
f34c8ef4ec Anonymous OPTIONS and HEAD requests are only allowed from Microsoft Office clients. 2016-11-08 14:45:57 +01:00
COLA@Redminetest
05b0f1b08c Changed MsOffice check to look for 'Microsoft Office' in the User Agent. 2016-11-08 14:27:31 +01:00
Karel Picman
2f9fc02114 Merge pull request #594 from carlolars/OfficeSupport
Office support
2016-11-08 10:15:24 +01:00
COLA@Redminetest
e160df298c MsOffice wants response 405 on anonymous OPTIONS requests. 2016-11-07 18:31:48 +01:00
COLA@Redminetest
3812be1cea Implemented OPTIONS and HEAD requests, used by MsOffice.
MsOffice use anonymous OPTIONS and HEAD requests.
OPTIONS always returns MethodNotAllowed(405).
HEAD (hopefully) returns a valid response.
See https://support.microsoft.com/en-us/kb/2019105 for details.
2016-11-07 10:08:30 +01:00
COLA@Redminetest
4ae5c37966 When deleting temporary MsOffice files then also destroy the file. 2016-11-07 10:08:30 +01:00
COLA@Redminetest
86fdb76c1e If reusing a revision because the last had zero size then don't generate a new filename. 2016-11-07 10:08:30 +01:00
COLA@Redminetest
988799d13b MOVEing a file from .tmp also destroys the .tmp file. (MsOffice rename) 2016-11-07 10:08:30 +01:00
COLA@Redminetest
f9a1620657 fixed typo 2016-11-06 14:39:39 +01:00
Karel Picman
a383b19c4c rsync doesn't work for WebDAV mounted folder #591 2016-11-05 07:51:54 +01:00
Karel Picman
bb937a037b reset_column_information is missing in DB migration #592 2016-11-04 10:25:47 +01:00
Karel Picman
7a178c1026 rsync doesn't work for WebDAV mounted folder #591 2016-11-04 09:29:32 +01:00
Karel Picman
e7dd90685d Merge pull request #589 from carlolars/OfficeSupport
Office support
2016-11-03 11:49:28 +01:00
COLA@Redminetest
0c05284993 When moving from .tmp then must rename the file on disk so Xapian knows what type of document it is. 2016-11-02 16:56:30 +01:00
COLA@Redminetest
e6c80c4977 Fix for supporting Office save sequence (at least Word)
When moving a file to xxx.tmp then a copy is done instead.
When moving a file from xxx.tmp then only the last revision of is moved, the rest is deleted.
2016-11-02 16:56:18 +01:00
COLA@Redminetest
b5348ab4b2 On PUT request, if previous revision size was 0 then just update that revision. 2016-11-02 16:55:44 +01:00
Karel Picman
47084814b5 Webdav always shows the create date #581 2016-11-02 15:07:08 +01:00
Karel Picman
538371e316 A lot of warnings in WebDAV unit tests #584 2016-11-02 14:33:24 +01:00
Karel Picman
de2ad3f1a6 FATAL -- : ActionController::RoutingError (No route matches [GET] '/plugin_assets/redmine_dmsf/javascripts/jquery.dataTables/zh.json') type:bug #582 2016-10-24 12:27:57 +02:00
Karel Picman
84b162761d devel-1.5.8 merged to the master v1.5.8 2016-10-21 11:19:24 +02:00