Am Donnerstag, 10. Juli 2008 13:54:46 schrieb Alexander Klink:
> Hi Jochen,
>
> On Thu, Jul 10, 2008 at 11:35:41AM +0000, Jochen Kunkel wrote:
> > But i have some questions:
> > - Are my test results OK?
> >
> > Failed Test                       Stat Wstat Total Fail  Failed  List of
> > Failed
> > -------------------------------------------------------------------------
> >------ t/20_xml/8_xinclude_relative_dir.  255 65280     6   12 200.00% 
> > 1-6
>
> This works for me, can you try running
> $ DEBUG_LEVEL=128 prove -v t/20_xml/8_xinclude_relative_dir.t
> and posting the output to the list, please?


openXpki:/usr/src/svn-openxpki/trunk/perl-modules/core/trunk# DEBUG_LEVEL=128 
prove -v t/20_xml/8_xinclude_relative_dir.t
t/20_xml/8_xinclude_relative_dir....Debugging module(s) 'OpenXPKI::XML::Cache' 
with level 128.
Debugging module(s) 'OpenXPKI::Exception' with level 128.
Debugging module(s) 'OpenXPKI::i18n' with level 128.
Debugging module(s) 'OpenXPKI::Serialization::Fast' with level 128.
Debugging module(s) 'OpenXPKI::XML::Config' with level 128.
1..6
XINCLUDE SUPPORT
2008-07-10 18:50:50.659355 DEBUG:16 PID:4661 OpenXPKI::XML::Config::new (line 
33): keys: $VAR1 = {
          'CONFIG' => 't/20_xml/top3.xml'
        };

2008-07-10 18:50:50.660155 DEBUG:1 PID:4661 OpenXPKI::XML::Cache::init (line 
69): start
2008-07-10 18:50:50.660851 DEBUG:2 PID:4661 OpenXPKI::XML::Cache::init (line 
104): load the XML data
2008-07-10 18:50:50.698546 DEBUG:2 PID:4661 OpenXPKI::XML::Cache::init (line 
119): filename: t/20_xml/top3.xml
2008-07-10 18:50:50.703643 DEBUG:64 PID:4661 OpenXPKI::XML::Cache::init (line 
132): cache: $VAR1 = {
          'xi:include' => [
                          {
                            'href' => 'testdir/sub.xml',
                            'xmlns:xi' => 'http://www.w3.org/2001/XInclude'
                          }
                        ],
          'config' => [
                      {
                        'content' => 'before xi'
                      },
                      {
                        'content' => 'after xi'
                      }
                    ]
        };

2008-07-10 18:50:50.704795 DEBUG:64 PID:4661 OpenXPKI::XML::Cache::init (line 
137): xtree: $VAR1 = {
          't/20_xml/top3.xml' => {
                                   'LEVEL' => 1,
                                   'REF' => {
                                            'xi:include' => [
                                                            {
                                                              'href' 
=> 'testdir/sub.xml',
                                                              'xmlns:xi' 
=> 'http://www.w3.org/2001/XInclude'
                                                            }
                                                          ],
                                            'config' => [
                                                        {
                                                          'content' => 'before 
xi'
                                                        },
                                                        {
                                                          'content' => 'after 
xi'
                                                        }
                                                      ]
                                          }
                                 }
        };

2008-07-10 18:50:50.705747 DEBUG:1 PID:4661 
OpenXPKI::XML::Cache::__perform_xinclude (line 567): start
2008-07-10 18:50:50.706451 DEBUG:1 PID:4661 
OpenXPKI::XML::Cache::__scan_xinclude (line 676): start
2008-07-10 18:50:50.707144 DEBUG:8 PID:4661 
OpenXPKI::XML::Cache::__scan_xinclude (line 700): xi:include tag present
2008-07-10 18:50:50.726587 DEBUG:16 PID:4661 
OpenXPKI::XML::Cache::__scan_xinclude (line 709): xi:include tag correct
2008-07-10 18:50:50.727412 DEBUG:16 PID:4661 
OpenXPKI::XML::Cache::__scan_xinclude (line 713): file testdir/sub.xml ready 
for include
2008-07-10 18:50:50.728218 DEBUG:8 PID:4661 
OpenXPKI::XML::Cache::__scan_xinclude (line 685): scanning tag config
2008-07-10 18:50:50.728856 DEBUG:1 PID:4661 
OpenXPKI::XML::Cache::__scan_xinclude (line 676): start
2008-07-10 18:50:50.729675 DEBUG:1 PID:4661 
OpenXPKI::XML::Cache::__scan_xinclude (line 719): end
2008-07-10 18:50:50.730412 DEBUG:1 PID:4661 
OpenXPKI::XML::Cache::__scan_xinclude (line 676): start
2008-07-10 18:50:50.731103 DEBUG:1 PID:4661 
OpenXPKI::XML::Cache::__scan_xinclude (line 719): end
2008-07-10 18:50:50.731784 DEBUG:1 PID:4661 
OpenXPKI::XML::Cache::__scan_xinclude (line 719): end
2008-07-10 18:50:50.732475 DEBUG:2 PID:4661 
OpenXPKI::XML::Cache::__perform_xinclude (line 573): xinclude tag detected
2008-07-10 18:50:50.733186 DEBUG:4 PID:4661 
OpenXPKI::XML::Cache::__perform_xinclude (line 580): integrate loaded XML 
data into XML tree
2008-07-10 18:50:50.734045 DEBUG:4 PID:4661 
OpenXPKI::XML::Cache::__perform_xinclude (line 599): calculate filename from 
path t/20_xml/top3.xml
2008-07-10 18:50:50.744841 DEBUG:4 PID:4661 
OpenXPKI::XML::Cache::__perform_xinclude (line 609): load the included 
file 
/usr/src/svn-openxpki/trunk/perl-modules/core/trunk/t/20_xml/testdir/sub.xml
2008-07-10 18:50:50.753332 DEBUG:16 PID:4661 
OpenXPKI::Exception::__fake_stacktrace_new (line 128): fake_stacktrace_new 
called
2008-07-10 18:50:50.754208 DEBUG:16 PID:4661 
OpenXPKI::Exception::__fake_stacktrace_frame (line 139): 
fake_stacktrace_frame called
2008-07-10 18:50:50.755894 DEBUG:1 PID:4661 OpenXPKI::Exception::full_message 
(line 65): exception thrown: 
I18N_OPENXPKI_XML_CACHE_PERFORM_XINCLUDE_XML_ERROR; __ERRVAL__ => File does 
not 
exist: 
/usr/src/svn-openxpki/trunk/perl-modules/core/trunk/t/20_xml/testdir/sub.xml 
at /usr/local/lib/perl/5.8.8/OpenXPKI/XML/Cache.pm line 610
; __FILE__ 
=> /usr/src/svn-openxpki/trunk/perl-modules/core/trunk/t/20_xml/testdir/sub.xml
I18N_OPENXPKI_XML_CACHE_PERFORM_XINCLUDE_XML_ERROR; __ERRVAL__ => File does 
not 
exist: 
/usr/src/svn-openxpki/trunk/perl-modules/core/trunk/t/20_xml/testdir/sub.xml 
at /usr/local/lib/perl/5.8.8/OpenXPKI/XML/Cache.pm line 610
; __FILE__ 
=> 
/usr/src/svn-openxpki/trunk/perl-modules/core/trunk/t/20_xml/testdir/sub.xml# 
Looks like your test died before it could output anything.
dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-6
        Failed 6/6 tests, 0.00% okay
Failed Test                       Stat Wstat Total Fail  Failed  List of 
Failed
-------------------------------------------------------------------------------
t/20_xml/8_xinclude_relative_dir.  255 65280     6   12 200.00%  1-6
Failed 1/1 test scripts, 0.00% okay. 6/6 subtests failed, 0.00% okay.




>
> > t/60_workflow/15_csr_and_certific  255 65280    24    8  33.33%  19-20
> > 22-24 t/60_workflow/20_certificate_revo   17  4352    23   17  73.91%  5
> > 7-17 19-23 t/60_workflow/40_certificate_revo               10    2 
> > 20.00%  8-9
>
> The workflow tests have been failing on my system as well, I've been
> looking into that lately (without much success, unluckily) - so that's
> "fine" ...
ok


>
> > - If I initialize a SQLight DB everithing works fine, but if I write the
> > schema into an MySQL DB I get following error:
> > I think its a Problem with MySQL v5
>
> Weird, it's running fine here on MySQL 5.
>
> > openXpki:/# openxpkiadm initdb
> > Database type: MySQL
> > Setting up database 'log'
> > ERROR: init_schema on 'log' failed
> > (I18N_OPENXPKI_SERVER_DBI_DBH_PREPARE_FAILED; __ERRNO__ => 1; __ERRVAL__
> > => table workflow_context already exists(1) at dbdimp.c line 271;
> > __QUERY__ =>
>
> ... "already exists" sounds like it already worked once?
> Try openxpkiadm initdb --force to drop the tables beforehand ...
>
> > openXpki:/# mysql -u openxpki -p openxpki
> > Enter password:
> > Welcome to the MySQL monitor.  Commands end with ; or \g.
> > Your MySQL connection id is 15
> > Server version: 5.0.32-Debian_7etch5-log Debian etch distribution
>
> I am running 5.0.22 here.
>
> > Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
> > mysql> create table workflow_context (workflow_id NUMERIC(49,0) NOT NULL,
> > workflow_context_key TEXT NOT NULL, workflow_context_value TEXT, PRIMARY
> > KEY (workflow_id, workflow_context_key));
> > ERROR 1170 (42000): BLOB/TEXT column 'workflow_context_key' used in key
> > specification without a key length
>
> Hmmm, that's a bit weird, would they really change something like that in
> a minor release?

openXpki:/# openxpkiadm initdb --force
Database type: MySQL
Setting up database 'log'
Database 'log' initialized.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| openxpki           |
+--------------------+
3 rows in set (0.00 sec)

mysql> use openxpki
Database changed
mysql> show tables;
Empty set (0.00 sec)


openXpki:/# cat /usr/etc/openxpki/database.xml
<database>
  <debug>0</debug>
    <server_id>0</server_id>
    <server_shift>8</server_shift>
    <type>MySQL</type>
    <name>openxpki</name>
    <host>localhost</host>
    <port>3306</port>
    <user>openxpki</user>
    <passwd>openxpki</passwd>
    <namespace></namespace>
  <environment>
    <vendor>
      <type>mysql</type>
    </vendor>
  </environment>
</database>
openXpki:/# cat /usr/etc/openxpki/log_database.xml
<log_database>
  <debug>0</debug>
    <server_id>0</server_id>
    <server_shift>8</server_shift>
    <type>SQLite</type>
    <name>/usr/var/openxpki/sqlite.db</name>
  <environment>
    <vendor>
      <type>SQLite</type>
    </vendor>
  </environment>
</log_database>



>
> > - if I use the WEBinterface, sometimes apache do not map the language.
>
> Can you be a bit more specific about the "sometimes", please?
> On the german interface, a lot of text is missing and you will see
> the so-called I18N-identifiers (I18N_OPENXPKI_...) - the english
> interface is still missing a few, too - is this what you're talking
> about?

-If I switch between languages, in the uri string exists de_DE and en_GB.
-if I surfe, longer times, only the I18N-identifiers will be displayed and 
some times the the mapped translated string.

>
> > /etc/apache/conf.d/openxpki-mason-mod_perl.conf:
> > "SetEnv OPENXPKI_LOCALE_PREFIX /usr/share/locale/"
>
>  Looks fine to me ...
>
> Cheers,
>   Alex

thx for the quick help

jochen


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
OpenXPKI-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-users

Reply via email to