Commit Graph

53 Commits

Author SHA1 Message Date
Bhumika (OpenERP) d11103b2f1 [Fix] document_ftp: In pooler method is remvoe so i rename the method
bzr revid: sbh@tinyerp.com-20110624105108-w8pbhpb1mfb0kcfk
2011-06-24 16:21:08 +05:30
P. Christeas 9e44cd5bfe all: Fix execute permission and shebang at files
Non-standalone python scripts shall not have a shebang. Others will need
to be executable.
(cherry picked from commit 6ec513d17cafcdd235b4805363d3cd6daa494f2f)

bzr revid: p_christ@hol.gr-20110408112324-nc781po7efhjye21
2011-04-08 14:23:24 +03:00
qdp-launchpad@tinyerp.com dc6e8e9b34 [MERGE] merged the numerigraphe branch related to common typo mistake 'childs' instead of children. Thanks for the contribution
bzr revid: qdp-launchpad@tinyerp.com-20101228170718-3r55jyvpb6m5h05u
2010-12-28 18:07:18 +01:00
sbh (Open ERP) 3389c99ee6 [Fix] caldav,document,document_ftp,document_webdav: fix buildbot warnings
bzr revid: sbh@tinyerp.com-20101112114946-u19wkxzh1vj33sol
2010-11-12 17:19:46 +05:30
P. Christeas bc7871e2f9 doc ftp: some assertions, close ftp sessions at YML tests
bzr revid: p_christ@hol.gr-20101103112605-dq8jthkma78ccmcj
2010-11-03 13:26:05 +02:00
Christophe Simonis b68dda729b [FIX] document_ftp: fix server shutdown
bzr revid: chs@openerp.com-20101026134449-mfan2d5pfj9m0pqx
2010-10-26 15:44:49 +02:00
Numerigraphe - Lionel Sausin ae6b790237 [MERGE] upgraded to v6.0.0-RC1
bzr revid: ls@numerigraphe.fr-20101025084446-w4pv2twvms9zlyxx
2010-10-25 10:44:46 +02:00
P. Christeas 305b48abe3 Document, calendar: Patch code from trunk-xrg branch
several fixes that hadn't been backported or applied correctly.

bzr revid: p_christ@hol.gr-20101012112030-snnb4fjkya4ndqkm
2010-10-12 14:20:30 +03:00
P. Christeas 7098bbcae1 doc ftp: Fix bdf1f16b77c60, typo at keyword string.
bzr revid: p_christ@hol.gr-20100827073950-j95wl8ojuav8s1ej
2010-08-27 10:39:50 +03:00
P. Christeas 283ea41e47 doc ftp: enable ftp even before the module is fully installed.
This is marginally correct, but the document_ftp module would cause
its own tests to fail (because it's not installed yet) and thus won't
allow access to the db. Then, a 'tests.fatal' setting means that the
module will never install successfully!

Ideally, the tests should be performed *after* the db is inited and
module is fully loaded. But the yaml mechanism performs them too early
for us.

bzr revid: p_christ@hol.gr-20100827073917-g6jwwskgpnnwl855
2010-08-27 10:39:17 +03:00
RHA (Open ERP) d5ad0b8ff1 [CLEAN]: Removed commented codes, unnecessary spaces.
bzr revid: uco@tinyerp.com-20100819115157-sfsmbnjdgpp4wl12
2010-08-19 17:21:57 +05:30
P. Christeas 97f6f059e1 Document_ftp: second round of lint checks
These are the functional ones. Don't mess with the real os, because
we're just an abstraction layer of nodes, drop support for
Python < 2.4, because the server wouldn't work anyway.

bzr revid: p_christ@hol.gr-20100810122957-41n7lq0o287j62vw
2010-08-10 15:29:57 +03:00
P. Christeas 559df13770 Document_ftp: cleanup code for lint
bzr revid: p_christ@hol.gr-20100810122957-y0wqscm0xcfppbqd
2010-08-10 15:29:57 +03:00
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
Numerigraphe - Lionel Sausin 744bfb8cc1 [IMP] wording: "children" intead of "childs"
lp bug: https://launchpad.net/bugs/327259 fixed

bzr revid: ls@numerigraphe.fr-20100324163724-q1xe1ozomk23k17j
2010-03-24 17:37:24 +01:00
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