P. Christeas
6cb5fa01ed
Document, FTP: handle case of move into existing name.
...
Unlike unix 'mv', we do not allow move to point to an existing 'new_name'.
bzr revid: p_christ@hol.gr-20100714125232-fmm9sm1nc30nz92k
2010-07-14 15:52:32 +03:00
P. Christeas
5a5608d71b
Document FTP: restructure the function calling, more consistent exceptions.
...
Hopefully, FTP now will behave better to clients like Firefox. It is better
to pass the node-API messages to the FTP layer, than always return 550.
Conflicts:
document_ftp/ftpserver/ftpserver.py
bzr revid: p_christ@hol.gr-20100714125228-7xs3zbi72may4198
2010-07-14 15:52:28 +03:00
P. Christeas
9e390e4d17
Document FTP: avoid operations at "/"
...
bzr revid: p_christ@hol.gr-20100714090243-1ob78zjmfbtjsg2a
2010-07-14 12:02:43 +03:00
P. Christeas
a47be2ef0d
Document ftp: improve exception handling, size may return 404
...
bzr revid: p_christ@hol.gr-20100713205418-8oe6svsdvw2yy4jn
2010-07-13 23:54:18 +03:00
P. Christeas
d3ae0b0083
Document FTP: after nodefd.open_data(), cursor must commit
...
Because open_data, at the create case, updates the store_fname.
bzr revid: p_christ@hol.gr-20100713205336-jodj31v722x81grb
2010-07-13 23:53:36 +03:00
P. Christeas
bbbf42c6ba
Document FTP: try to get meaningful length from files.
...
This improves response from kio_ftp, because the SIZE request will no longer
report 0 length. However, LIST etc may still report 0, which will confuse
some clients. Solution is non-trivial, because the length can only be
computed after the content is generated.
bzr revid: p_christ@hol.gr-20100713103102-v5uou8uuqvqxm6yc
2010-07-13 13:31:02 +03:00
P. Christeas
8cd367f9ed
Document FTP: fix open_data after 1e1118a2bd7ae
...
After the revert, the node exception is TypeError (so that it is clearly
distinguishable from any others).
bzr revid: p_christ@hol.gr-20100713103035-usb1dbnma2l9c4ju
2010-07-13 13:30:35 +03:00
P. Christeas
0dedf035f9
Document ftp: allow non-latin user, group.
...
bzr revid: p_christ@hol.gr-20100711142548-6uzoxs4224u8n2cf
2010-07-11 17:25:48 +03:00
P. Christeas
173be44150
Document ftp: fix unicode in NLST
...
At the nlst command, the paths from the API could have been unicode, in
which case the '\r\n' separator would be sent as '\00\r\00\n' over the
wire (that's utf-16 encoding).
For that, bring the utf-8 conversion functions inside ftpserver.
bzr revid: p_christ@hol.gr-20100708225433-fqpl911kqfsrm1ff
2010-07-09 01:54:33 +03:00
P. Christeas
796ed8e598
Document FTP: fix typo inside error message.
...
bzr revid: p_christ@hol.gr-20100708225217-ui4z1rc8gkuyynnl
2010-07-09 01:52:17 +03:00
P. Christeas
e7d01ae1e3
Document FTP: fix walking utf8 paths.
...
Also fix the error message when rename fails for utf8 filenames.
bzr revid: p_christ@hol.gr-20100708225213-fcq2nbgectztjycq
2010-07-09 01:52:13 +03:00
P. Christeas
eb96e0f256
Document ftp: solve the tests paradox
...
the FTP server has been limited to only serve databases that have the
document_ftp module "installed". However, this would break running the
tests, because the module would be marked as "to upgrade".
bzr revid: p_christ@hol.gr-20100706232928-5ckj97p61nfrq3rn
2010-07-07 02:29:28 +03:00
P. Christeas
61b09c7fc9
Document ftp: fix NLST, path resolution.
...
bzr revid: p_christ@hol.gr-20100706121050-5u0i2hsm2phz0i30
2010-07-06 15:10:50 +03:00
P. Christeas
606df7368c
Document ftp: better handling of wrong paths.
...
bzr revid: p_christ@hol.gr-20100706060155-nyljhua59ahax7sx
2010-07-06 09:01:55 +03:00
P. Christeas
0828a06de4
Document ftp: don't close the cursor at the abstract_fs
...
Since the get_crdata() has created cursors outside the scope of this
function, it is not wise to close them inside.
bzr revid: p_christ@hol.gr-20100702215302-y6fsu4kz05g1a9v7
2010-07-03 00:53:02 +03:00
P. Christeas
e29f5bef65
Document FTP: rewrite the code, resolve nodes only once.
...
A big patch: nodes should not be calculated multiple times from the path
string, within an operation. Instead, they are resolved only once in a
node object (may reuse the cwd_node, if possible) and then op relative
to that node.
bzr revid: p_christ@hol.gr-20100702215249-kzucr3i1p5f6vvnt
2010-07-03 00:52:49 +03:00
P. Christeas
dce6c87084
Document ftp: stop early if not in a node.
...
This will rather help debug some cases, where we try operations on the
"/" path.
bzr revid: p_christ@hol.gr-20100702103858-8jrqfzkd8g65vrzr
2010-07-02 13:38:58 +03:00
P. Christeas
88b0420b3e
Document ftp: do commit the cursors, at mkdir and rename
...
cr.close() is not enough for data to go to db.
bzr revid: p_christ@hol.gr-20100701224311-ef8q4qbmb8b9j6p1
2010-07-02 01:43:11 +03:00
P. Christeas
5da9c26605
Document FTP: fix syntax error in mkdir.
...
bzr revid: p_christ@hol.gr-20100701224308-g95nx5ckh8mgjgsb
2010-07-02 01:43:08 +03:00
P. Christeas
fb3f520268
Document ftp: use create, coll_create, rename from node API
...
bzr revid: p_christ@hol.gr-20100701175134-g5wkaweznslhajgm
2010-07-01 20:51:34 +03:00
P. Christeas
abebb5c311
Document_ftp: *only* serve databases that have the module installed.
...
The document_ftp is not really a database-specific server, but a
server-wide implementation. So, it could normally serve all the databases
of the server, once one of them has it installed. Limit that and instead
only serve the dbs that have the module marked as installed.
bzr revid: p_christ@hol.gr-20100701175132-dydehiw5m6nnvcwy
2010-07-01 20:51:32 +03:00
P. Christeas
b2a10c1b20
Document FTP: adapt to node_descriptors API
...
bzr revid: p_christ@hol.gr-20100629140532-xgpjex7h0q1g0cff
2010-06-29 17:05:32 +03:00
P. Christeas
d130db349e
Document FTP: use pythonic logging in abstract_fs
...
bzr revid: p_christ@hol.gr-20100629140515-u73gs9ks4tiylhuo
2010-06-29 17:05:15 +03:00
P. Christeas
d835a1419b
Document FTP: don't touch the databases, on db_list
...
Trying a login on each db listed would result in the database loaded by
the pooler. This behaviour is not really welcome.
However, some clients (like kio_ftp) may still want to descend into the
databases listed, in which case we cannot avoid to load the db(s).
bzr revid: p_christ@hol.gr-20100629140328-2kqlfpo3oyhu0ufi
2010-06-29 17:03:28 +03:00
P. Christeas
ad31f812bc
Document_ftp: Don't use the open() method, but the get_data()
...
bzr revid: p_christ@hol.gr-20100629140311-7bvmbrc2t7gjyn1g
2010-06-29 17:03:11 +03:00
Antony Lesuisse
f386869927
Don't bind ftpserver on detected ip address, bind it to 127.0.0.1 or the provided config value.
...
bzr revid: al@openerp.com-20100622122030-56azfsum3gjjgvp8
2010-06-22 14:20:30 +02:00
vra
bf8d2a73c0
[IMP][REF] Sql-injection changes, remove print statement, some space improvement.
...
bzr revid: vra@tinyerp.com-20100616115139-cql5oiqf622spa6p
2010-06-16 17:21:39 +05:30
Stephane Wirtel
6c44f59c55
[FIX] Typo
...
bzr revid: stephane@openerp.com-20100602071339-hwrtzy4w3e5wg7xw
2010-06-02 09:13:39 +02:00
Harry (Open ERP)
a855625916
[MERGE] work of document module
...
bzr revid: hmo@tinyerp.com-20100527124458-02xxdfbi8kp0x94k
2010-05-27 18:14:58 +05:30
vra
f2638bb616
[MERGE] merged from trunk main addons branch
...
bzr revid: vra@tinyerp.com-20100514044836-q9iucv080zovjqkd
2010-05-14 10:18:36 +05:30
gpa
68737dfd09
[FIX] Document : It should be allowed to browse through FTP,disregard to --no-databse-list option
...
bzr revid: gpa@tinyerp.com-20100511070138-xy7s91dyvamlx0m0
2010-05-11 12:31:38 +05:30
Xavier Morel
3458b06eba
[merge] ftp deactivation branch, thanks greg-apieum
...
bzr revid: xmo@tinyerp.com-20100224105529-4fs9rhk6x2mm28c4
2010-02-24 11:55:29 +01:00
greg-apieum
e7a22755e5
[FIX]lp:515507
...
lp bug: https://launchpad.net/bugs/515507 fixed
bzr revid: greg-apieum-20100224093035-str2dr0e8vrqpfww
2010-02-24 10:30:35 +01:00
greg-apieum
f15d0a6895
[CLEAN] Set Withespaces to PEP8 format
...
bzr revid: greg-apieum-20100224085404-j1onx0jxchv3m51a
2010-02-24 09:54:04 +01:00
rpa (Open ERP)
bfbe18b5f1
[FIX] document_ftp: fixed problem of directory listing in filezilla(on Windows)
...
bzr revid: rpa@openerp.co.in-20100218124241-edqfocpn66z6u519
2010-02-18 18:12:41 +05:30
Guillem Barba
9924d22236
[FIX]: document: Fixed non-closed Cursor problem
...
lp bug: https://launchpad.net/bugs/522862 fixed
bzr revid: rpa@openerp.co.in-20100217083629-l4ju8rtudusf6woq
2010-02-17 14:06:29 +05:30
Stephane Wirtel
fb3ef7a2f4
[FIX] Change the year of the copyright
...
bzr revid: stephane@openerp.com-20100112091839-a6p7tenhb4e4zxyx
2010-01-12 10:18:39 +01:00
Harry (Open ERP)
6d32891c04
[FIX] document, document_ics, document_ftp : solved problem to read content data
...
bzr revid: hmo@tinyerp.com-20091217132231-a4zcin2lvd2qjjsn
2009-12-17 18:52:31 +05:30
Harry (Open ERP)
ad5882ec42
[IMP] document: remove ftp Integration from document and make seperate module for FTP Integration
...
bzr revid: hmo@tinyerp.com-20091217084214-6mve0dt68u8jdded
2009-12-17 14:12:14 +05:30