From: SourceForge.net <no...@so...> - 2008-11-24 22:59:20
|
Bugs item #2317757, was opened at 2008-11-20 07:14 Message generated for change (Comment added) made by jheiss You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1093658&aid=2317757&group_id=234501 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interface (example) Group: None Status: Open >Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Jason Heiss (jheiss) Summary: etch group failback error Initial Comment: The failback of the group ownerschip is wrong. It crashes: {{{ ./etch --generate-all --interactive --server http://localhost:3000 Destination /tmp/otherfile for link /tmp/etchdemo/link does not exist, consider the allow_nonexistent_dest flag if appropriate. ./etch.rb:1618:in `lookup_gid': uninitialized constant Errno::ArgumentError (NameError) from ./etch.rb:307:in `process' from ./etch.rb:156:in `process_until_done' from /usr/lib/ruby/1.8/rexml/element.rb:892:in `each' from /usr/lib/ruby/1.8/rexml/xpath.rb:53:in `each' from /usr/lib/ruby/1.8/rexml/element.rb:892:in `each' from ./etch.rb:154:in `process_until_done' from ./etch.rb:114:in `times' from ./etch.rb:114:in `process_until_done' from ./etch:90 }}} Here is the fix in etch.rb: {{{ begin gr = Etc.getgrnam(group) gid = gr.gid rescue ArgumentError puts "config.xml requests group #{group}, but that group can't be found. Using GID 0." gid = 0 end }}} ---------------------------------------------------------------------- >Comment By: Jason Heiss (jheiss) Date: 2008-11-24 14:59 Message: Sorry for the slow reply, I didn't realize I needed to configure Tracker to email me when there were new bugs. Strangely enough I found this bug myself right about the same time you did. My fix to lookup_gid is exactly the same as yours, and I made the same fix in lookup_uid. I'll go ahead and roll a new release. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1093658&aid=2317757&group_id=234501 |