document ftp server doesn't bind if another service listens on e.g. 127.0.0.1:8021

Bug #411430 reported by jehan

This bug report was converted into a question: question #79810: document ftp server doesn't bind if another service listens on e.g. 127.0.0.1:8021.

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

Tested with server and addons 5.0.1.0.

If you install the document addon the ftp server allways binds to 0.0.0.0:8021. If you have another service listen on e.g. 127.0.0.1:8021 the ftp server seem to bind to no address. Sometimes it is necessary to let the document ftp server bind to a specific IP only. E.g. bind only to 127.0.0.1:8021 or 192.168.1.1:8021 if want ftp access only from and to localhost or in a LAN network.

To reproduce this:
- make a fresh install of openerp
- install document addon
=> 0.0.0.0:8021 is occupied by the document ftp server

- make a fresh install of openerp
- let another service listen on e.g. 127.0.0.1:8021
- install document addon
=> the only service listening on port 8021 is the one listening on 127.0.0.1:8021

Revision history for this message
Harry (OpenERP) (hmo-tinyerp) wrote :

You can set another port for ftp server in openerp server configuration file.
ftp_server_port = <your port>

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
jehan (jens-e-hansen) wrote : Re: [Bug 411430] Re: document ftp server doesn't bind if another service listens on e.g. 127.0.0.1:8021

> You can set another port for ftp server in openerp server
configuration file.
> ftp_server_port = <your port>

This is interesting, I looked at the server options and haven't found
the option - maybe there should be a descriptive text if you call
openerp-server.py --help.

BTW: is there a option to change the ftp server interface also? I think
this is an important security related feature.

Revision history for this message
Harry (OpenERP) (hmo-tinyerp) wrote :

Yes. this option is not available in server options list. b'z this option is for document module. so. it is not display in 'openerp-server.py --help'

and currently , does not available option to change ftp server interface. Yes you can create blueprint for this suggestion.

Revision history for this message
Christophe CHAUVET (christophe-chauvet) wrote :

Hi Harry

Can you convert this bug to a Question, it must be usefull

Regards,

Changed in openobject-addons:
status: Invalid → New
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.