65 Commits

Author SHA1 Message Date
Daniel Munn
9f86383ab4 Resolves #89 - with thanks to nolar 2013-01-18 23:34:24 +00:00
Daniel Munn
fdb99d7af0 Resolve error in project_patch.rb #84 2013-01-10 10:13:49 +00:00
Daniel Munn
076f840eee Resolves pull request #84 2013-01-09 23:55:20 +00:00
Назар Вінничук
9260bb2a7a Line breaks converted to unix for file lib/dmsf_zip.rb 2012-10-24 16:51:59 +03:00
Назар Вінничук
a6cd899513 Updated temp downloadable zip file permissions to 0644 - useful when using XSendFile apache module for file downloads 2012-10-24 16:50:19 +03:00
Daniel Munn
e46d07e8a2 Resolution attempt for #46
all entities are listed including deleted items (which may have no revisions as a result of deletion)
if we call for the scoped listing with .visible should remove deleted items and rectify issue.
2012-09-04 11:36:12 +02:00
Daniel Munn
04064a9c98 Webdav R/RW functionality introduced 2012-07-11 15:23:32 +01:00
Daniel Munn
0bff9c36d1 Fixes #22 PUT request relies on request.body.length which passenger socket class does not contain (all other variants seems to) there is now implemented fallback based on reflection request.body.length then request.body.size and if all else fails request.content_length (which isn't ideal) 2012-07-08 21:09:53 +01:00
unknown
4b74726cf1 Issue #21 - updated to provide fallback URI parse - should correct issue
(Test Pending)
2012-07-05 23:55:35 +01:00
Daniel Munn
e8afc9f584 Fixes #21 Webdav seems to be functional from subfolder 2012-07-05 13:12:56 +01:00
Daniel Munn
5dee0c03e2 Issue #21 unable to access webdav when a subfolder
Resolution comes with using path_info in request - to be tested
2012-07-05 13:00:58 +01:00
Daniel Munn
88536e0def Fixes #17 - DAV4Rack is now vendored - documentation updated 2012-06-29 11:29:30 +01:00
Daniel Munn
7649310272 Fixes #18 - warning enducing spaces removed 2012-06-29 10:35:41 +01:00
Daniel Munn
b8716a5cc2 Multiple fixes: upload not rendered for DMSF root; dmsf_lock is now storing uuid for lock; db upgrade / downgrade script updated for support 2012-06-29 08:26:43 +01:00
Daniel Munn
6237e09581 New: Support for lockdiscover and supported lock PROPFIND requests
Update: file_revision visible scope now is joined with parent item and checked for both revision and file visibility
New: Projects now store into their own folder within configured path
Fix: db upgrade script does a one-time re-sort of existing physical data to ensure it can be read in new world
Fix: webdav controller (from Gem) did not flag output as utf-8 with correct header, overloaded in dmsf controller instance to fix
Update: Testsuites updated to support a few more conditions for lock processing
2012-06-28 14:29:13 +01:00
Daniel Munn
6a9fa3236f Fix: Webdav sometimes called without scope or type is actually a lock extension
Fix: Controller did not properly search lock attributes because of gem bug
2012-06-27 16:19:49 +01:00
Daniel Munn
e3831b409f Fix: errors.add_to_base is not Rails3 compliant - changed with errors[:base] <<
Update: UI updates to better notify of locked status
2012-06-27 12:56:41 +01:00
Daniel Munn
86bc901965 Fix: due to a bad if in Lockable::lock did not traverse the heirarchy as expected 2012-06-27 11:41:03 +01:00
Daniel Munn
c9d6c32ba4 Implementing folder locking (Issue #14) 2012-06-27 11:09:38 +01:00
Daniel Munn
f120b04b30 Webdav updated to support folder locking (shared locking not yet implemented) 2012-06-27 07:51:46 +01:00
Daniel Munn
e1fdc030e6 Issue #14, implementation of lock! and unlock! methods
Correcting test-cases with corrected lock check (should have been asserting !locked?, not locked? in case of unlock check)
2012-06-27 07:30:45 +01:00
Daniel Munn
7d8b941e4a Starting lock system overhaul in line with #14 - designed new approach will allow for folder locking, and shared locking - todo: rewrite lock! and
unlock! methods in lib/redmine_dmsf/lockable.rb
2012-06-26 15:21:26 +01:00
Daniel Munn
5de3bd7720 Included unit test for file structure change 2012-06-26 08:00:02 +01:00
Daniel Munn
6c8d3c1128 Updated files inline with changes in #12 2012-06-22 13:38:21 +01:00
Daniel Munn
a445de4cc8 Updates around #12 2012-06-22 12:32:16 +01:00
Daniel Munn
82e53e7fdf Copy DMSF functionality expansion
Data linkup (with dependency destruction)
2012-06-22 09:26:45 +01:00
Daniel Munn
ccfa81340a PUT testing 2012-06-20 15:32:04 +01:00
Daniel Munn
a5c72bb997 HEAD method testing 2012-06-20 12:29:28 +01:00
Daniel Munn
5e8e61f80f OPTIONS testing + relevent fixes 2012-06-20 09:51:51 +01:00
Daniel Munn
d6ee91342a Updating code to fix issues related to #5 2012-06-18 23:12:34 +01:00
Daniel Munn
bad46400c7 Test-suite functionality 2012-06-18 11:36:51 +01:00
Daniel Munn
6f7a4f2e4a Fixes #5 : Projects and subsequent DMSF children are now not permitted access to where the project does not have DMSF module enabled. 2012-06-18 11:18:56 +01:00
Daniel Munn
e223b22a6c Settings to turn webdav on/off (or eqivilent) 2012-06-15 12:50:41 +01:00
Daniel Munn
39947104fe Preparing for 1.4.1 2012-06-15 12:03:48 +01:00
Daniel Munn
493fac024e Preparing for 1.4.1 2012-06-15 08:09:59 +01:00
Daniel Munn
c76556c507 Parse fix applied for webdav PUT method, where .Net / Office over WebDav pushes content with text/xml mime type. Rails stack automatically will try to parse XML, however unfortunately as content is
not XML, it ends up failing. "init.rb" has a hook adding RedmineDmsf::NoParse into Rails middleware a step before content parsing occurs, and will rewrite content type on put method, within specified
target area (identified in init.rb). Controller has been added to override options function (maybe removed later on).
2012-06-14 22:35:02 +01:00
Daniel Munn
3bd5d93479 MS Webdav Client authentication problem 2012-06-14 09:33:28 +01:00
Daniel Munn
4e044384ce parent should not always cast same case (in case of folder switching to project list or similar)
instead now calls via proxy and returns the resulting resource from that

Note: Gemfile (althought changed previous commit) contains a github tag, which can cause some installation problems
  - may integrate into plugin (not elegant, but fixes issue), as dev plugin passes aspects of litmus that release doesn't

Todo: Integrate permission model into functionality
2012-06-14 09:23:58 +01:00
Daniel Munn
9ae871be66 Introduce PUT method - file adding supported, work needed for better integration
with windows Webdav
2012-06-13 23:59:06 +01:00
Daniel Munn
34611df3fd File locking seemingly working (untested) 2012-06-13 15:15:45 +01:00
Daniel Munn
df15cf2d5d Implementation of COPY 2012-06-13 13:41:14 +01:00
Daniel Munn
271fdab66e Code cleanup, added comments into some files so that 3rd parties can establish behaviour (or intended).
Introduced parent directory into GET based directory listing via webdav
2012-06-13 12:07:32 +01:00
Daniel Munn
c8441bc4bb File move (within) project now supported; overwrite on both folder and file is still unspported at this time 2012-06-13 09:21:09 +01:00
Daniel Munn
24c2646d8e Functionality for MOVE (incomplete)
Todo: Determine best approach for cross-project moves
Determine best approach for merging resource in case of overwrite
Start file move functionality (Collection works)
2012-06-12 17:20:54 +01:00
Daniel Munn
81ed1ce712 MKCOL correctly responded to, creates folders within DMSF (as expected) 2012-06-11 21:40:32 +01:00
Daniel Munn
2e431568d6 Pass 1 of webdav (VERY ROUGH) - Functional on Get/Head (Web based listing) and also webdav listing and downloading of resources.
User based authentication and tracking of downloads, however security model not implemented yet.
2012-06-11 11:31:45 +01:00
Daniel Munn
fa4207dfce Updating Dav to list second level (folders / other), doesn't function in webdav client until 3rd level object functions 2012-06-09 11:13:18 +01:00
Daniel Munn
bf6c4e8f53 Webdav integration - introduced get respond page for top level. TODO: define permission denied for move / copy new folder directives until after entered project; file inclusion still outstanding 2012-06-09 00:03:11 +01:00
Daniel Munn
83a1613467 Starting to investigate webdav in dmsf 2012-06-08 13:42:29 +01:00
Daniel Munn
bb53713608 Fix: path in rake file breaks rake usage for redmine due to path change for plugins 2012-06-04 05:08:35 +01:00