Tags:
create new tag
view all tags

Question

Our servers have an old version of perl. 5.005_3 to be exact. RcsFile.pm line 148 uses the move function in File::Copy to rename wikitopics, but that function does not exist in my version of perl so the rename fails and the TWiki generates an Internal Server Error.

I've modified the RcsFile.pm code to use 'rename' instead of 'move', which seems to work, but I'm not really sure what benefits move provides over rename (if any). I can't upgrade perl on the box (and the admins won't). So:

  • Should I keep my fix?
  • Is it dangerous in ways I just don't see?
  • Is this a patch-worthy change to the TWiki codebase?

Thanks! Matt bockol@fasPLEASENOSPAM.harvard.edu

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: SunOS 5.6
Web server: Apache 1.3.26
Perl version: 5.005_3
Client OS: Linux 2.4.20
Web Browser: Firebird .8

-- MattBockol - 16 Apr 2004

Answer

This is kind of odd. File::Copy has a move function since Perl 5.004. TWiki requires 5.005_3. The rename function is a standard function of Perl and should work just fine for your case.

-- PeterThoeny - 19 Apr 2004

You're absolutely right re: File::Copy. Upon further examination I shouldn't have trusted that just because the perl executable is v5.005_3 that all of the modules are from that distribution as well. I'm slowly being introduced to an organic method of system administration and software installation. Thanks for your help!

-- MattBockol - 19 Apr 2004

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-04-19 - MattBockol
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.