Homec4science

BibUpload: os.path.realpath to os.path.abspath

Authored by Samuele Kaplun <samuele.kaplun@cern.ch> on Mar 18 2009, 11:56.

Description

BibUpload: os.path.realpath to os.path.abspath

  • BibUpload and BibDocFile libraries were using os.path.realpath to obtain an absolute path for inputted files. This was also used for security checking. However, os.path.realpath resolves symbolic links, thus some good absolute path containing a symbolic link would have been resolved to a different path. This is now solved by using abspath in place of realpath.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Mar 24 2009, 15:30
Parents
R3600:7db4ad06856c: BibEdit: new web tests
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:15d778abe7ce: BibUpload: os.path.realpath to os.path.abspath (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Mar 24 2009, 15:30