Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1348897

Summary: Add relative path validation for gluster copy file utility
Product: [Community] GlusterFS Reporter: Aravinda VK <avishwan>
Component: geo-replicationAssignee: Aravinda VK <avishwan>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.9.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1350783 1350784 1350785 (view as bug list) Environment:
Last Closed: 2017-03-27 18:13:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1350783, 1350784, 1350785    

Comment 1 Aravinda VK 2016-06-22 09:31:18 UTC
Relative path validation missing in gluster copy file command.

Comment 2 Vijay Bellur 2016-06-22 09:31:53 UTC
REVIEW: http://review.gluster.org/14772 (glusterd/geo-rep: Add relative path validation to copy file command) posted (#1) for review on master by Aravinda VK (avishwan)

Comment 3 Vijay Bellur 2016-06-24 06:35:32 UTC
REVIEW: http://review.gluster.org/14772 (glusterd/geo-rep: Add relative path validation to copy file command) posted (#2) for review on master by Aravinda VK (avishwan)

Comment 4 Vijay Bellur 2016-06-27 09:11:36 UTC
REVIEW: http://review.gluster.org/14772 (glusterd/geo-rep: Add relative path validation to copy file command) posted (#3) for review on master by Aravinda VK (avishwan)

Comment 5 Vijay Bellur 2016-06-27 12:54:37 UTC
REVIEW: http://review.gluster.org/14772 (glusterd/geo-rep: Add relative path validation to copy file command) posted (#4) for review on master by Aravinda VK (avishwan)

Comment 6 Vijay Bellur 2016-06-27 17:11:47 UTC
COMMIT: http://review.gluster.org/14772 committed in master by Jeff Darcy (jdarcy) 
------
commit 888de8851e718d8e3117e47fa35cfc075b998f62
Author: Aravinda VK <avishwan>
Date:   Wed Jun 22 14:57:44 2016 +0530

    glusterd/geo-rep: Add relative path validation to copy file command
    
    Added validation for input file, command fails if input file path is
    relative path pointing outside of GLUSTERD_WORKDIR.
    
    BUG: 1348897
    Change-Id: I329d43ebed69bfe9fe03d6be70dc8c78a605ffc5
    Signed-off-by: Aravinda VK <avishwan>
    Reviewed-on: http://review.gluster.org/14772
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Jeff Darcy <jdarcy>

Comment 7 Shyamsundar 2017-03-27 18:13:46 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.9.0, please open a new bug report.

glusterfs-3.9.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://lists.gluster.org/pipermail/gluster-users/2016-November/029281.html
[2] https://www.gluster.org/pipermail/gluster-users/