https://bugs.contribs.org/show_bug.cgi?id=9681

--- Comment #5 from John Crisp <[email protected]> ---
OK, I think I get it.

The issue is the RPM is WAAAAAAAY old (as pointed out by Charlie in the foros)

That means it is using old and deprecated methods for using the SME database
system.

Fundamentally you used to be able to set a property directly without creating a
full key. Doing that would then create the key, and a property.

https://wiki.contribs.org/Esmith::DB::db
https://wiki.contribs.org/Esmith::DB::db#creating_a_new_record
https://wiki.contribs.org/Create_server-manager_panels_by_perl_cgi_(deprecated)
(This contrib uses perl_cgi and not formagick!!!!)

getting & setting properties

was:
              my $val = db_get_prop(\%config, ’foo’, ’some prop’);
              db_set_prop(\%config, ’foo’, ’some prop’ => $new_val);
now:

              my $val = $record->prop(’some prop’);
              $record->set_prop(’some prop’ => $new_val);

So on the first pass creating a record it doesn't do the job properly, but
eventually does enough to create the key (more by luck than judgement I think
!). On the next pass it then has a key and can write some more values.

At least I think that is what is happening !!

I can go through and try to update the relevant bits, but it might take me a
little while.

Note to self. Perl debugging server panel web pages is a pain in the butt.

Can't use SetEnv in httpd and -d as perl is suid

Finally found this which dumps to /var/log/httpd/admin_error_log

print STDERR "My key is $key\n";

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to