30 Commits

Author SHA1 Message Date
Gary Spencer
cc503b2ac8 Added guest account support to the CIFS server. Refactored authenticator code and moved
common code down into the base class.
Added configuration value to control if unknown users should be mapped to the guest account.
Fixed a couple of uncaught access denied exceptions in the CIFS protocol handler.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2317 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-02-07 20:04:16 +00:00
Gary Spencer
d5c8cba194 Fix bug in folder search code when there are pseudo files and only one real file, the real file was not being returned in the search.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-02-06 17:55:13 +00:00
Gary Spencer
7bd656484e Changed transaction handling in the main request processing loop to use the new method
that handles commit and rollback.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2309 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-02-06 17:53:22 +00:00
Gary Spencer
385d11b33a Added guest user support to FTP server/filesystem authenticator. Changed authentication to use the standard authentication classes so FTP should work with LDAP and Kerberos setups.
Fixed server session transaction rollback problem.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2308 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-02-06 17:50:25 +00:00
Derek Hulley
e27b81132e Exception message was only getting reported in DEBUG
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2303 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-02-06 16:47:26 +00:00
Gary Spencer
5d8d0e136c Fixed ClassCastException caused by the home share mapper using the DiskDeviceContext to generate the dynamic share. (AR-400)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2281 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-02-02 10:49:08 +00:00
Gary Spencer
5792f7ae2d Removed check for empty configuration section for FTP as it disables the server. Only disable the
server if the configuration section is not present. (AR-397)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2279 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-02-01 17:43:31 +00:00
Gary Spencer
2f7aaab592 Added check for open for overwrite in the main openFile() method so that it covers
FTP as well as CIFS file opens.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2263 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-31 15:47:59 +00:00
Gary Spencer
db4ea8197f Added open for overwrite optimization that stops existing content being copied when the file
is opened for write access.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2256 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-31 10:22:54 +00:00
Derek Hulley
9bac8270f4 AR-383: Optimized overwrite behaviour for ContentWriter. Content will only be duplicated for the writes if explicitly requesting a random-access file without the truncate option
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2254 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-31 05:40:51 +00:00
Gary Spencer
5ccf3681e9 Fake oplocks for URL file opens to prevent Windows Explorer trying to use
byte range locking which causes an error dialog.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2250 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-30 14:18:37 +00:00
Gary Spencer
1304c3b82e Fix typo in CIFS URL link building.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2238 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-27 17:26:37 +00:00
Gary Spencer
b4d2db1017 Added URL link pseudo files support. Split pseudo file classes to allow local filesystem and
in memory pseudo files.
Drag/drop and URL link pseudo files now only appear when using CIFS.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2229 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-27 15:36:32 +00:00
Andrew Hind
aa831ddd85 Tidy up of UserTransaction roll back on throwable as opposed to Exception
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2218 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-26 15:38:58 +00:00
Derek Hulley
0a7c58b127 Fixed NullPointerException when FTP server fails to start AND info logging is on
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2212 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-26 03:28:02 +00:00
Gary Spencer
29da65708a Added defaulting of domain/workgroup name to 'WORKGROUP' when the domain cannot
be resolved via network broadcast. Also outputs a message to indicate the domain
was defaulted and possible causes (firewall settings/broadcast mask).
Added hint message to check the broadcast mask when the host announcer fails
with an IOException.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2185 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-24 13:51:00 +00:00
Gary Spencer
cc60741883 Added support for resume ids and resuming searches. This is required to support folders with large numbers of files.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2178 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-23 17:59:12 +00:00
Kevin Roast
8481d30d8c .reverted
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2165 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-20 17:18:10 +00:00
Kevin Roast
be812b30bb . Guest access check-point
. Fixes to document/space details screen when expanding/collapsing the Links panel
. Fix to Saved Searches to handle AuthenticationException for Guest user access to saved searches folder
. Fix to New User and Edit Password dialogs to fire text changed events when paste is used to fill in form fields

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2164 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-20 17:15:32 +00:00
Andrew Hind
1a1e8f5ebf Fix
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2152 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-19 17:01:29 +00:00
Gary Spencer
e7a04ebff4 Allow CIFS server to be disabled by removing the configuration section
from file-servers.xml.
Fixed check for disabling FTP server if config section is not available.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2149 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-19 15:36:08 +00:00
Gary Spencer
235eedee97 Changed filesystem initialization code to use the system user as the security
context to allow calls to normal services.
Added <relativePath> filesystem configuration to allow root of filesystem to be
a folder node within the hierarchy.
Changed drag and drop <path> setting to search the classpath for the file. Added checks
to validate that the file exists and is on the local filesystem.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2134 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-18 13:17:53 +00:00
Gary Spencer
08b0f1f668 Fixed problem where the MS Word renames during document save lose the original mime-type.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2128 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-17 14:47:38 +00:00
Gary Spencer
c4e84b9dc7 Added pseudo file support
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2123 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-17 11:16:39 +00:00
Derek Hulley
7de3129545 Added support to load config from 'file:', 'classpath:' or 'http:'
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2089 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-09 17:05:36 +00:00
Gary Spencer
dad8713bc8 Check for the NodeLockedException when deleting a file and convert to
an access denied error. When marking a file for delete check if the file
node has a lock, return an access denied error if locked.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2087 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-09 15:00:12 +00:00
Gary Spencer
927c58f048 Added custom I/O control support to the CIFS server to support the client
side Windows application to expose repo specific functions such as check in/out.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2058 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2005-12-22 15:04:54 +00:00
Kevin Roast
6171b6ae11 . backed out change
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2044 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2005-12-16 12:56:47 +00:00
Roy Wetherall
e6987f6c49 - UIArtifacts aspect is now added when content is created via CIFS
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2041 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2005-12-16 11:57:23 +00:00
Derek Hulley
e1e6508fec Moving to root below branch label
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2005 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2005-12-08 07:13:07 +00:00