Opened 6 years ago

Closed 6 years ago

#1042 closed defect (fixed)

The release exporter fails if the release server has a specified port

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: minor Milestone: Reggie v4.16
Component: net.sf.basedb.reggie Keywords:
Cc:

Description

The File server item in BASE that is used by the release exporter may specify a port as part of the hostname: foo.bar.com:2222. This causes the release exporter to fail with an error message:

net.sf.basedb.core.InvalidDataException: 
  Parameter may only contain [a-zA-Z0-9._-]: foo.bar.com:2222

It is the ':' separator between the hostname and port number that causes this. But it doesn't work to simply allow ':' in script parameters since that will generate an invalid call to 'rsync':

rsync foo.bar.com:2222:/path/to/file

If the port number is something else than 22 it must be set as a parameter to rsync:

-e 'ssh -p 2222'

Change History (2)

comment:1 by Nicklas Nordborg, 6 years ago

Component: not classifiednet.sf.basedb.reggie
Milestone: Reggie v4.16
Owner: changed from Jari Häkkinen to Nicklas Nordborg
Priority: majorminor
Type: Requestdefect

comment:2 by Nicklas Nordborg, 6 years ago

Resolution: fixed
Status: newclosed

(In [4760]) Fixes #1042: The release exporter fails if the release server has a specified port

The port number is now extracted from the host name and added as a separate option to rsync.

Note: See TracTickets for help on using tickets.