Issue #144 has been reported by Clément Oudot.
----------------------------------------
Bug #144: Error if CSV file is empty,
http://tools.lsc-project.org/issues/show/144
Author: Clément Oudot
Status: Assigned
Priority: Normal
Assigned to: Clément Oudot
Category: LDAP Scripts
Target version: ldap-scripts-0.4
If CSV file is empty or contains only headers, we have:
<pre>
Can't call method "get_value" on an undefined value at file2ldif.pl line 292.
</pre>
The quick fix is:
<pre>
@@ -223,6 +226,7 @@
# Parse LDIF
while( not $inldif->eof() ) {
my $entry = $inldif->read_entry();
+ next unless $entry;
if ( $inldif->error() ) {
print STDERR "Error msg: ", $inldif->error (), "\n";
print STDERR "Error lines:\n", $inldif->error_lines (), "\n";
</pre>
To apply...
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://tools.lsc-project.org/my/account
_______________________________________________
ltb-dev mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-dev