Issue Details (XML | Word | Printable)

Key: CORE-4624
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: MichaƂ Ziemski
Votes: 1
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Firebird handles ':' characters in mount table entries invalid

Created: 24/Nov/14 02:17 PM   Updated: 23/Sep/15 11:31 AM
Component/s: Engine
Affects Version/s: 2.5.3, 3.0 Beta 1
Fix Version/s: 2.5.4, 3.0 Beta 2

File Attachments: 1. Text File firebird-docker.patch (0.5 kB)

Environment: CentOs 7 Docker 1.3.1

QA Status: Cannot be tested


 Description  « Hide
When running under docker Firebird won't start.

As far as I was able to debug the issue the reason is as follows:

Under Docker the mount table looks somewhat like follows:
/dev/mapper/docker-9:1-3063-cf43ec04ee218f73bcc6e0b31f04c73a7c2df8b838a4a391b3b70462d58345e0 on / type ext4 (rw,relatime,discard,stripe=16,data=ordered)

It contains a colon character ':' which is handled specially somewhere in src/jrd/isc_file.cpp
As a result only the former part "/dev/mapper/docker-9" gets prepended to the file name in
the call to isc_expand_filename with expand_mounts = true



 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov made changes - 24/Nov/14 02:27 PM
Field Original Value New Value
Assignee Alexander Peshkov [ alexpeshkoff ]
Marcus Brinkmann made changes - 20/Jan/15 03:11 AM
Attachment firebird-docker.patch [ 12665 ]
Alexander Peshkov made changes - 22/Jan/15 10:34 AM
Fix Version/s 3.0 Beta 2 [ 10586 ]
Affects Version/s 3.0 Beta 1 [ 10332 ]
Alexander Peshkov made changes - 03/Feb/15 11:43 AM
Summary Firebird won't start under Docker Firebird handles ':' characters in mount table entries invalid
Alexander Peshkov made changes - 03/Feb/15 11:48 AM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.5.4 [ 10585 ]
Resolution Fixed [ 1 ]
Pavel Zotov made changes - 31/May/15 08:20 AM
Status Resolved [ 5 ] Resolved [ 5 ]
QA Status Cannot be tested
Pavel Cisar made changes - 23/Sep/15 11:31 AM
Status Resolved [ 5 ] Closed [ 6 ]