Re: Different time in Simple History Report

2018-08-14 Thread Karl Wright
Hi Mario,

Where did you deploy the war files on tomcat?

Karl


On Tue, Aug 14, 2018 at 10:25 AM Bisonti Mario 
wrote:

> I used those commands:
>
> sudo service tomcat start
>
> cd /home/administrator/mcfsorce/
>
> sudo svn co https://svn.apache.org/repos/asf/manifoldcf/trunk
>
> cd trunk
>
> sudo ant make-core-deps
>
> sudo ant make-deps
>
> sudo ant build
>
> cd /opt/
>
> ll
>
> sudo mv manifoldcf manifoldcf_ok
>
> sudo mkdir /opt/manifoldcf
>
> sudo cp -a /home/administrator/mcfsorce/trunk/dist/. /opt/manifoldcf/
>
>
>
> sudo cp
> /opt/manifoldcf_ok/multiprocess-file-example-proprietary/options.env.unix
> /opt/manifoldcf/multiprocess-file-example-proprietary/
>
> sudo cp
> /opt/manifoldcf_ok/multiprocess-file-example-proprietary/stop-agents.sh
> /opt/manifoldcf/multiprocess-file-example-proprietary/
>
> sudo cp
> /opt/manifoldcf_ok/multiprocess-file-example-proprietary/start-agents.sh
> /opt/manifoldcf/multiprocess-file-example-proprietary/
>
> sudo cp
> /opt/manifoldcf_ok/multiprocess-file-example-proprietary/start-agents-2.sh
> /opt/manifoldcf/multiprocess-file-example-proprietary/
>
> sudo cp
> /opt/manifoldcf_ok/multiprocess-file-example-proprietary/properties.xml
> /opt/manifoldcf/multiprocess-file-example-proprietary/
>
>
>
> sudo service tomcat start
>
>
>
>
>
> I obtained some warnings in the compilation but no errors.
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 16:03
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> It does not look at all like you have properly built with the changed
> source code.
>
>
>
> Karl
>
>
>
>
>
> On Tue, Aug 14, 2018 at 9:51 AM Bisonti Mario 
> wrote:
>
> I am not able to check the file..
>
>
>
> Furthermore, I try to explain better the behaviour that I see with the
> attachment
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 15:25
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> There were a number of files committed.
>
>
>
>
>
> On Tue, Aug 14, 2018 at 9:02 AM Bisonti Mario 
> wrote:
>
> I don’t obtain a different result..
>
> Where could I check the commit?
>
> Which is the file commited , so I can check it ?
>
> Thanks a lot
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 14:17
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Ok, I committed code that insures that all times displayed in reports are
> in the browser client timezone.  The same timezone is used throughout.
> Hopefully this will clear up any remaining confusion.
>
>
>
> Karl
>
>
>
>
>
> On Tue, Aug 14, 2018 at 6:33 AM Bisonti Mario 
> wrote:
>
> This from http://browserspy.dk/date.php
> 
>
>
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 12:20
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Hi Mario,
>
>
>
> I did not change how the Start Time filter was defined in the UI at all.
> The only change was in how the report data was presented.
>
>
>
> Can you please check your browser time?
>
>
>
> Karl
>
>
>
>
>
> On Tue, Aug 14, 2018 at 6:13 AM Bisonti Mario 
> wrote:
>
> Hi Karl.
>
>
>
> In my environment, browser time and server timezone are the same.
>
>
>
> Before the modification, I saw that the “Start Time:” filter was right, so
> in the timezone of the browser, equal to the server timezone (Europe/Rome)
>
> Instead the report, had the column “start Time” equal to my timezone plus
> two hours.
>
>
>
> After the modification, I see that the “Start Time:” filter timezone less
> one hour,  Instead the report, has the column “start Time” equal to my
> timezone less two hours.
>
>
>
> After,for mw, the server timezone, equal to the browser timezone, would be
> right if they would be equal to the “Start time:” filter and to the “Start
> time column”
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 12:04
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Hi Mario,
>
>
>
> The UI uses browser time exclusively.  The columns displayed, however, are
> based on the server's time.  This is how MCF functioned up until the year
> 2016, when the columns were changed to display UTC instead.  I reverted
> that behavior with my commit.
>
>
>
> I am not sure I know what it is you are asking for me to do here.  Do you
> want all times displayed in UTC?  Or, all times displayed in the browser
> timezone?  Or all times displayed in the server timezone?
>
>
>
> Karl
>
>
>
>
>
> On Tue, Aug 14, 2018 at 5:13 AM Bisonti Mario 
> wrote:
>
> Hallo.
>
> I compiled, but with this version I see the time 2 hour less of 

R: Different time in Simple History Report

2018-08-14 Thread Bisonti Mario
I used those commands:

sudo service tomcat start
cd /home/administrator/mcfsorce/
sudo svn co https://svn.apache.org/repos/asf/manifoldcf/trunk
cd trunk
sudo ant make-core-deps
sudo ant make-deps
sudo ant build
cd /opt/
ll
sudo mv manifoldcf manifoldcf_ok
sudo mkdir /opt/manifoldcf
sudo cp -a /home/administrator/mcfsorce/trunk/dist/. /opt/manifoldcf/

sudo cp 
/opt/manifoldcf_ok/multiprocess-file-example-proprietary/options.env.unix 
/opt/manifoldcf/multiprocess-file-example-proprietary/
sudo cp /opt/manifoldcf_ok/multiprocess-file-example-proprietary/stop-agents.sh 
/opt/manifoldcf/multiprocess-file-example-proprietary/
sudo cp 
/opt/manifoldcf_ok/multiprocess-file-example-proprietary/start-agents.sh 
/opt/manifoldcf/multiprocess-file-example-proprietary/
sudo cp 
/opt/manifoldcf_ok/multiprocess-file-example-proprietary/start-agents-2.sh 
/opt/manifoldcf/multiprocess-file-example-proprietary/
sudo cp /opt/manifoldcf_ok/multiprocess-file-example-proprietary/properties.xml 
/opt/manifoldcf/multiprocess-file-example-proprietary/

sudo service tomcat start


I obtained some warnings in the compilation but no errors.



Da: Karl Wright 
Inviato: martedì 14 agosto 2018 16:03
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

It does not look at all like you have properly built with the changed source 
code.

Karl


On Tue, Aug 14, 2018 at 9:51 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
I am not able to check the file..

Furthermore, I try to explain better the behaviour that I see with the 
attachment



Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: martedì 14 agosto 2018 15:25
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

There were a number of files committed.


On Tue, Aug 14, 2018 at 9:02 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
I don’t obtain a different result..
Where could I check the commit?
Which is the file commited , so I can check it ?
Thanks a lot


Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: martedì 14 agosto 2018 14:17
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Ok, I committed code that insures that all times displayed in reports are in 
the browser client timezone.  The same timezone is used throughout.  Hopefully 
this will clear up any remaining confusion.

Karl


On Tue, Aug 14, 2018 at 6:33 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
This from 
http://browserspy.dk/date.php





Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: martedì 14 agosto 2018 12:20
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Hi Mario,

I did not change how the Start Time filter was defined in the UI at all.  The 
only change was in how the report data was presented.

Can you please check your browser time?

Karl


On Tue, Aug 14, 2018 at 6:13 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Hi Karl.

In my environment, browser time and server timezone are the same.

Before the modification, I saw that the “Start Time:” filter was right, so in 
the timezone of the browser, equal to the server timezone (Europe/Rome)
Instead the report, had the column “start Time” equal to my timezone plus two 
hours.

After the modification, I see that the “Start Time:” filter timezone less one 
hour,  Instead the report, has the column “start Time” equal to my timezone 
less two hours.

After,for mw, the server timezone, equal to the browser timezone, would be 
right if they would be equal to the “Start time:” filter and to the “Start time 
column”



Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: martedì 14 agosto 2018 12:04
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Hi Mario,

The UI uses browser time exclusively.  The columns displayed, however, are 
based on the server's time.  This is how MCF functioned up until the year 2016, 
when the columns were changed to display UTC instead.  I reverted that behavior 
with my commit.

I am not sure I know what it is you are asking for me to do here.  Do you want 
all times displayed in UTC?  Or, all times displayed in the browser timezone?  
Or all times displayed in the server timezone?

Karl


On Tue, Aug 14, 2018 at 5:13 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Hallo.
I compiled, but with this version I see the time 2 hour less of the right time 
and the report seems wrong time by the actual time as you can see in the 
attachment.

So I rollback to the previous version.





Da: Karl Wright mailto:daddy...@gmail.com>>

Re: Different time in Simple History Report

2018-08-14 Thread Karl Wright
It does not look at all like you have properly built with the changed
source code.

Karl


On Tue, Aug 14, 2018 at 9:51 AM Bisonti Mario 
wrote:

> I am not able to check the file..
>
>
>
> Furthermore, I try to explain better the behaviour that I see with the
> attachment
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 15:25
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> There were a number of files committed.
>
>
>
>
>
> On Tue, Aug 14, 2018 at 9:02 AM Bisonti Mario 
> wrote:
>
> I don’t obtain a different result..
>
> Where could I check the commit?
>
> Which is the file commited , so I can check it ?
>
> Thanks a lot
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 14:17
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Ok, I committed code that insures that all times displayed in reports are
> in the browser client timezone.  The same timezone is used throughout.
> Hopefully this will clear up any remaining confusion.
>
>
>
> Karl
>
>
>
>
>
> On Tue, Aug 14, 2018 at 6:33 AM Bisonti Mario 
> wrote:
>
> This from http://browserspy.dk/date.php
> 
>
>
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 12:20
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Hi Mario,
>
>
>
> I did not change how the Start Time filter was defined in the UI at all.
> The only change was in how the report data was presented.
>
>
>
> Can you please check your browser time?
>
>
>
> Karl
>
>
>
>
>
> On Tue, Aug 14, 2018 at 6:13 AM Bisonti Mario 
> wrote:
>
> Hi Karl.
>
>
>
> In my environment, browser time and server timezone are the same.
>
>
>
> Before the modification, I saw that the “Start Time:” filter was right, so
> in the timezone of the browser, equal to the server timezone (Europe/Rome)
>
> Instead the report, had the column “start Time” equal to my timezone plus
> two hours.
>
>
>
> After the modification, I see that the “Start Time:” filter timezone less
> one hour,  Instead the report, has the column “start Time” equal to my
> timezone less two hours.
>
>
>
> After,for mw, the server timezone, equal to the browser timezone, would be
> right if they would be equal to the “Start time:” filter and to the “Start
> time column”
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 12:04
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Hi Mario,
>
>
>
> The UI uses browser time exclusively.  The columns displayed, however, are
> based on the server's time.  This is how MCF functioned up until the year
> 2016, when the columns were changed to display UTC instead.  I reverted
> that behavior with my commit.
>
>
>
> I am not sure I know what it is you are asking for me to do here.  Do you
> want all times displayed in UTC?  Or, all times displayed in the browser
> timezone?  Or all times displayed in the server timezone?
>
>
>
> Karl
>
>
>
>
>
> On Tue, Aug 14, 2018 at 5:13 AM Bisonti Mario 
> wrote:
>
> Hallo.
>
> I compiled, but with this version I see the time 2 hour less of the right
> time and the report seems wrong time by the actual time as you can see in
> the attachment.
>
>
>
> So I rollback to the previous version.
>
>
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 17:23
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Try it now.
>
>
>
> Karl
>
>
>
>
>
> On Fri, Aug 10, 2018 at 10:57 AM Bisonti Mario 
> wrote:
>
> Yes
>
> sudo ant make-core-deps
>
> Buildfile: /home/administrator/mcfsorce/trunk/build.xml
>
> Trying to override old definition of task javac
>
>
>
> BUILD FAILED
>
> /home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class
> de.thetaphi.forbiddenapis.ant.AntTask cannot be found
>
> using the classloader AntClassLoader[]
>
>
>
> Total time: 0 seconds
>
> administrator@sengvivv01:~/mcfsorce/trunk$
>
>
>
> But the downloaded trunk directory is very small, instead the last trunk
> was bigger:
>
> administrator@sengvivv01:~/mcfsorce$ du -sh tr*
>
> 121Mtrunk
>
> 1.8Gtrunk_19062018
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 16:47
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Did you first do:
>
>
>
> ant make-core-deps
>
>
>
> ?
>
> Karl
>
>
>
>
>
> On Fri, Aug 10, 2018 at 5:04 AM Bisonti Mario 
> wrote:
>
> Thanks Karl.
>
> I tried to compile the trunk version but I obtian:
>
> Buildfile: /home/administrator/mcfsorce/trunk/build.xml
>
> Trying to override old definition of task javac
>
>
>
> BUILD FAILED
>

Re: Different time in Simple History Report

2018-08-14 Thread Karl Wright
There were a number of files committed.


On Tue, Aug 14, 2018 at 9:02 AM Bisonti Mario 
wrote:

> I don’t obtain a different result..
>
> Where could I check the commit?
>
> Which is the file commited , so I can check it ?
>
> Thanks a lot
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 14:17
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Ok, I committed code that insures that all times displayed in reports are
> in the browser client timezone.  The same timezone is used throughout.
> Hopefully this will clear up any remaining confusion.
>
>
>
> Karl
>
>
>
>
>
> On Tue, Aug 14, 2018 at 6:33 AM Bisonti Mario 
> wrote:
>
> This from http://browserspy.dk/date.php
> 
>
>
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 12:20
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Hi Mario,
>
>
>
> I did not change how the Start Time filter was defined in the UI at all.
> The only change was in how the report data was presented.
>
>
>
> Can you please check your browser time?
>
>
>
> Karl
>
>
>
>
>
> On Tue, Aug 14, 2018 at 6:13 AM Bisonti Mario 
> wrote:
>
> Hi Karl.
>
>
>
> In my environment, browser time and server timezone are the same.
>
>
>
> Before the modification, I saw that the “Start Time:” filter was right, so
> in the timezone of the browser, equal to the server timezone (Europe/Rome)
>
> Instead the report, had the column “start Time” equal to my timezone plus
> two hours.
>
>
>
> After the modification, I see that the “Start Time:” filter timezone less
> one hour,  Instead the report, has the column “start Time” equal to my
> timezone less two hours.
>
>
>
> After,for mw, the server timezone, equal to the browser timezone, would be
> right if they would be equal to the “Start time:” filter and to the “Start
> time column”
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 12:04
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Hi Mario,
>
>
>
> The UI uses browser time exclusively.  The columns displayed, however, are
> based on the server's time.  This is how MCF functioned up until the year
> 2016, when the columns were changed to display UTC instead.  I reverted
> that behavior with my commit.
>
>
>
> I am not sure I know what it is you are asking for me to do here.  Do you
> want all times displayed in UTC?  Or, all times displayed in the browser
> timezone?  Or all times displayed in the server timezone?
>
>
>
> Karl
>
>
>
>
>
> On Tue, Aug 14, 2018 at 5:13 AM Bisonti Mario 
> wrote:
>
> Hallo.
>
> I compiled, but with this version I see the time 2 hour less of the right
> time and the report seems wrong time by the actual time as you can see in
> the attachment.
>
>
>
> So I rollback to the previous version.
>
>
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 17:23
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Try it now.
>
>
>
> Karl
>
>
>
>
>
> On Fri, Aug 10, 2018 at 10:57 AM Bisonti Mario 
> wrote:
>
> Yes
>
> sudo ant make-core-deps
>
> Buildfile: /home/administrator/mcfsorce/trunk/build.xml
>
> Trying to override old definition of task javac
>
>
>
> BUILD FAILED
>
> /home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class
> de.thetaphi.forbiddenapis.ant.AntTask cannot be found
>
> using the classloader AntClassLoader[]
>
>
>
> Total time: 0 seconds
>
> administrator@sengvivv01:~/mcfsorce/trunk$
>
>
>
> But the downloaded trunk directory is very small, instead the last trunk
> was bigger:
>
> administrator@sengvivv01:~/mcfsorce$ du -sh tr*
>
> 121Mtrunk
>
> 1.8Gtrunk_19062018
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 16:47
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Did you first do:
>
>
>
> ant make-core-deps
>
>
>
> ?
>
> Karl
>
>
>
>
>
> On Fri, Aug 10, 2018 at 5:04 AM Bisonti Mario 
> wrote:
>
> Thanks Karl.
>
> I tried to compile the trunk version but I obtian:
>
> Buildfile: /home/administrator/mcfsorce/trunk/build.xml
>
> Trying to override old definition of task javac
>
>
>
> BUILD FAILED
>
> /home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class
> de.thetaphi.forbiddenapis.ant.AntTask cannot be found
>
> using the classloader AntClassLoader[]
>
>
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 10:53
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> I've committed a change to trunk which will restore the pre-2016 behavior.
>
>
>
> Karl
>
>
>
> On Fri, 

R: Different time in Simple History Report

2018-08-14 Thread Bisonti Mario
I don’t obtain a different result..
Where could I check the commit?
Which is the file commited , so I can check it ?
Thanks a lot


Da: Karl Wright 
Inviato: martedì 14 agosto 2018 14:17
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Ok, I committed code that insures that all times displayed in reports are in 
the browser client timezone.  The same timezone is used throughout.  Hopefully 
this will clear up any remaining confusion.

Karl


On Tue, Aug 14, 2018 at 6:33 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
This from 
http://browserspy.dk/date.php


[cid:image002.jpg@01D433CA.F56CDDF0]



Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: martedì 14 agosto 2018 12:20
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Hi Mario,

I did not change how the Start Time filter was defined in the UI at all.  The 
only change was in how the report data was presented.

Can you please check your browser time?

Karl


On Tue, Aug 14, 2018 at 6:13 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Hi Karl.

In my environment, browser time and server timezone are the same.

Before the modification, I saw that the “Start Time:” filter was right, so in 
the timezone of the browser, equal to the server timezone (Europe/Rome)
Instead the report, had the column “start Time” equal to my timezone plus two 
hours.

After the modification, I see that the “Start Time:” filter timezone less one 
hour,  Instead the report, has the column “start Time” equal to my timezone 
less two hours.

After,for mw, the server timezone, equal to the browser timezone, would be 
right if they would be equal to the “Start time:” filter and to the “Start time 
column”



Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: martedì 14 agosto 2018 12:04
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Hi Mario,

The UI uses browser time exclusively.  The columns displayed, however, are 
based on the server's time.  This is how MCF functioned up until the year 2016, 
when the columns were changed to display UTC instead.  I reverted that behavior 
with my commit.

I am not sure I know what it is you are asking for me to do here.  Do you want 
all times displayed in UTC?  Or, all times displayed in the browser timezone?  
Or all times displayed in the server timezone?

Karl


On Tue, Aug 14, 2018 at 5:13 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Hallo.
I compiled, but with this version I see the time 2 hour less of the right time 
and the report seems wrong time by the actual time as you can see in the 
attachment.

So I rollback to the previous version.





Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: venerdì 10 agosto 2018 17:23
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Try it now.

Karl


On Fri, Aug 10, 2018 at 10:57 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Yes
sudo ant make-core-deps
Buildfile: /home/administrator/mcfsorce/trunk/build.xml
Trying to override old definition of task javac

BUILD FAILED
/home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class 
de.thetaphi.forbiddenapis.ant.AntTask cannot be found
using the classloader AntClassLoader[]

Total time: 0 seconds
administrator@sengvivv01:~/mcfsorce/trunk$

But the downloaded trunk directory is very small, instead the last trunk was 
bigger:
administrator@sengvivv01:~/mcfsorce$ du -sh tr*
121Mtrunk
1.8Gtrunk_19062018




Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: venerdì 10 agosto 2018 16:47
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Did you first do:

ant make-core-deps

?

Karl


On Fri, Aug 10, 2018 at 5:04 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Thanks Karl.
I tried to compile the trunk version but I obtian:

Buildfile: /home/administrator/mcfsorce/trunk/build.xml
Trying to override old definition of task javac

BUILD FAILED
/home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class 
de.thetaphi.forbiddenapis.ant.AntTask cannot be found
using the classloader AntClassLoader[]





Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: venerdì 10 agosto 2018 10:53
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

I've committed a change to trunk which will restore the pre-2016 behavior.

Karl

On Fri, Aug 10, 2018 at 3:40 AM Karl Wright 
mailto:daddy...@gmail.com>> wrote:
The code that formats the time is here:

>>
String 

Re: Different time in Simple History Report

2018-08-14 Thread Karl Wright
Ok, I committed code that insures that all times displayed in reports are
in the browser client timezone.  The same timezone is used throughout.
Hopefully this will clear up any remaining confusion.

Karl


On Tue, Aug 14, 2018 at 6:33 AM Bisonti Mario 
wrote:

> This from http://browserspy.dk/date.php
>
>
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 12:20
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Hi Mario,
>
>
>
> I did not change how the Start Time filter was defined in the UI at all.
> The only change was in how the report data was presented.
>
>
>
> Can you please check your browser time?
>
>
>
> Karl
>
>
>
>
>
> On Tue, Aug 14, 2018 at 6:13 AM Bisonti Mario 
> wrote:
>
> Hi Karl.
>
>
>
> In my environment, browser time and server timezone are the same.
>
>
>
> Before the modification, I saw that the “Start Time:” filter was right, so
> in the timezone of the browser, equal to the server timezone (Europe/Rome)
>
> Instead the report, had the column “start Time” equal to my timezone plus
> two hours.
>
>
>
> After the modification, I see that the “Start Time:” filter timezone less
> one hour,  Instead the report, has the column “start Time” equal to my
> timezone less two hours.
>
>
>
> After,for mw, the server timezone, equal to the browser timezone, would be
> right if they would be equal to the “Start time:” filter and to the “Start
> time column”
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 12:04
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Hi Mario,
>
>
>
> The UI uses browser time exclusively.  The columns displayed, however, are
> based on the server's time.  This is how MCF functioned up until the year
> 2016, when the columns were changed to display UTC instead.  I reverted
> that behavior with my commit.
>
>
>
> I am not sure I know what it is you are asking for me to do here.  Do you
> want all times displayed in UTC?  Or, all times displayed in the browser
> timezone?  Or all times displayed in the server timezone?
>
>
>
> Karl
>
>
>
>
>
> On Tue, Aug 14, 2018 at 5:13 AM Bisonti Mario 
> wrote:
>
> Hallo.
>
> I compiled, but with this version I see the time 2 hour less of the right
> time and the report seems wrong time by the actual time as you can see in
> the attachment.
>
>
>
> So I rollback to the previous version.
>
>
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 17:23
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Try it now.
>
>
>
> Karl
>
>
>
>
>
> On Fri, Aug 10, 2018 at 10:57 AM Bisonti Mario 
> wrote:
>
> Yes
>
> sudo ant make-core-deps
>
> Buildfile: /home/administrator/mcfsorce/trunk/build.xml
>
> Trying to override old definition of task javac
>
>
>
> BUILD FAILED
>
> /home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class
> de.thetaphi.forbiddenapis.ant.AntTask cannot be found
>
> using the classloader AntClassLoader[]
>
>
>
> Total time: 0 seconds
>
> administrator@sengvivv01:~/mcfsorce/trunk$
>
>
>
> But the downloaded trunk directory is very small, instead the last trunk
> was bigger:
>
> administrator@sengvivv01:~/mcfsorce$ du -sh tr*
>
> 121Mtrunk
>
> 1.8Gtrunk_19062018
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 16:47
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Did you first do:
>
>
>
> ant make-core-deps
>
>
>
> ?
>
> Karl
>
>
>
>
>
> On Fri, Aug 10, 2018 at 5:04 AM Bisonti Mario 
> wrote:
>
> Thanks Karl.
>
> I tried to compile the trunk version but I obtian:
>
> Buildfile: /home/administrator/mcfsorce/trunk/build.xml
>
> Trying to override old definition of task javac
>
>
>
> BUILD FAILED
>
> /home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class
> de.thetaphi.forbiddenapis.ant.AntTask cannot be found
>
> using the classloader AntClassLoader[]
>
>
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 10:53
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> I've committed a change to trunk which will restore the pre-2016 behavior.
>
>
>
> Karl
>
>
>
> On Fri, Aug 10, 2018 at 3:40 AM Karl Wright  wrote:
>
> The code that formats the time is here:
>
>
>
> >>
>
> String startTimeString =
> org.apache.manifoldcf.ui.util.Formatter.formatTime(Converter.asLong(row.getValue("starttime")));
>
> <<
>
>
>
> This explicitly uses UTC as the timezone:
>
> >>
>
>   /** Format a long as an understandable date.
>
>   *@param time is the long.
>
>   *@return the date, as a human-readable string.  This date will be in
> local time.
>
>   */
>
>   public static String formatTime(long time)
>
>   {
>
> Calendar c = new GregorianCalendar(TimeZone.getTimeZone("UTC"),
> Locale.ROOT);
>
> c.setTimeInMillis(time);
>
> // We want to format this 

R: Different time in Simple History Report

2018-08-14 Thread Bisonti Mario
This from http://browserspy.dk/date.php


[cid:image002.jpg@01D433CA.F56CDDF0]



Da: Karl Wright 
Inviato: martedì 14 agosto 2018 12:20
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Hi Mario,

I did not change how the Start Time filter was defined in the UI at all.  The 
only change was in how the report data was presented.

Can you please check your browser time?

Karl


On Tue, Aug 14, 2018 at 6:13 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Hi Karl.

In my environment, browser time and server timezone are the same.

Before the modification, I saw that the “Start Time:” filter was right, so in 
the timezone of the browser, equal to the server timezone (Europe/Rome)
Instead the report, had the column “start Time” equal to my timezone plus two 
hours.

After the modification, I see that the “Start Time:” filter timezone less one 
hour,  Instead the report, has the column “start Time” equal to my timezone 
less two hours.

After,for mw, the server timezone, equal to the browser timezone, would be 
right if they would be equal to the “Start time:” filter and to the “Start time 
column”



Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: martedì 14 agosto 2018 12:04
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Hi Mario,

The UI uses browser time exclusively.  The columns displayed, however, are 
based on the server's time.  This is how MCF functioned up until the year 2016, 
when the columns were changed to display UTC instead.  I reverted that behavior 
with my commit.

I am not sure I know what it is you are asking for me to do here.  Do you want 
all times displayed in UTC?  Or, all times displayed in the browser timezone?  
Or all times displayed in the server timezone?

Karl


On Tue, Aug 14, 2018 at 5:13 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Hallo.
I compiled, but with this version I see the time 2 hour less of the right time 
and the report seems wrong time by the actual time as you can see in the 
attachment.

So I rollback to the previous version.





Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: venerdì 10 agosto 2018 17:23
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Try it now.

Karl


On Fri, Aug 10, 2018 at 10:57 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Yes
sudo ant make-core-deps
Buildfile: /home/administrator/mcfsorce/trunk/build.xml
Trying to override old definition of task javac

BUILD FAILED
/home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class 
de.thetaphi.forbiddenapis.ant.AntTask cannot be found
using the classloader AntClassLoader[]

Total time: 0 seconds
administrator@sengvivv01:~/mcfsorce/trunk$

But the downloaded trunk directory is very small, instead the last trunk was 
bigger:
administrator@sengvivv01:~/mcfsorce$ du -sh tr*
121Mtrunk
1.8Gtrunk_19062018




Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: venerdì 10 agosto 2018 16:47
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Did you first do:

ant make-core-deps

?

Karl


On Fri, Aug 10, 2018 at 5:04 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Thanks Karl.
I tried to compile the trunk version but I obtian:

Buildfile: /home/administrator/mcfsorce/trunk/build.xml
Trying to override old definition of task javac

BUILD FAILED
/home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class 
de.thetaphi.forbiddenapis.ant.AntTask cannot be found
using the classloader AntClassLoader[]





Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: venerdì 10 agosto 2018 10:53
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

I've committed a change to trunk which will restore the pre-2016 behavior.

Karl

On Fri, Aug 10, 2018 at 3:40 AM Karl Wright 
mailto:daddy...@gmail.com>> wrote:
The code that formats the time is here:

>>
String startTimeString = 
org.apache.manifoldcf.ui.util.Formatter.formatTime(Converter.asLong(row.getValue("starttime")));
<<

This explicitly uses UTC as the timezone:

>>
  /** Format a long as an understandable date.
  *@param time is the long.
  *@return the date, as a human-readable string.  This date will be in local 
time.
  */
  public static String formatTime(long time)
  {
Calendar c = new GregorianCalendar(TimeZone.getTimeZone("UTC"), 
Locale.ROOT);
c.setTimeInMillis(time);
// We want to format this string in a compact way:
// mm-dd- hh:mm:ss.mmm
StringBuilder returnString = new StringBuilder();
writechars(returnString,c.get(Calendar.MONTH)+1,2);
returnString.append("-");
writechars(returnString,c.get(Calendar.DAY_OF_MONTH),2);
returnString.append("-");
writechars(returnString,c.get(Calendar.YEAR),4);

Re: Using mainfoldCF as a webcrawler with tika and solr

2018-08-14 Thread Karl Wright
Hi Sven,

Please have a look at the Simple History report to see what happened to the
documents you are interested in.
The Web Connector will fetch binary documents no problem, but it sounds
like you have something else in your configuration that is causing them to
be rejected.  The configuration of the web connector, as well as the
configuration of the downstream pipeline connectors, all are able to reject
documents based on mime type.  The Simple History will give you a reason
for that rejection.  If not, you can turn on connector debugging and you
can see the decisions that go into whether to index a document or not.

Karl


On Tue, Aug 14, 2018 at 5:40 AM Farrenkopf, Sven 
wrote:

> I’m using manifoldCF with solr, trying to get it working as a webcrawler.
> Crawling the websites (HTML, Text) works fine, the problem is that links to
> binary documents (pdf, xlsx, docx, …) don’t work even if I put a
> tika-Transformation in the job. I haven’t even found a written confirmation
> that the webcrawler-connector does support  binary documents, although some
> posts to the mailing-lists indicate that it is possible.
>
>
>
> The documents are apparently recognized – I put a direct link to a
> pdf-document in the seeds and it is processed as I run the job.
>
>
>
> But there is no error (Tika-errors are not ignored!) and the document is
> not transferred to solr. With no error-message I have nothing to work with …
>
>
>
> Any ideas/hints what to do? Does somebody know a tutorial for setting up a
> webcrawler with solr & tika? I haven’t found any on the web, which made me
> ask myself if I’m trying sth impossible here?
>
>
>
> Thanks in advance.
>
>
>
> Sven
>


Re: Different time in Simple History Report

2018-08-14 Thread Karl Wright
Hi Mario,

I did not change how the Start Time filter was defined in the UI at all.
The only change was in how the report data was presented.

Can you please check your browser time?

Karl


On Tue, Aug 14, 2018 at 6:13 AM Bisonti Mario 
wrote:

> Hi Karl.
>
>
>
> In my environment, browser time and server timezone are the same.
>
>
>
> Before the modification, I saw that the “Start Time:” filter was right, so
> in the timezone of the browser, equal to the server timezone (Europe/Rome)
>
> Instead the report, had the column “start Time” equal to my timezone plus
> two hours.
>
>
>
> After the modification, I see that the “Start Time:” filter timezone less
> one hour,  Instead the report, has the column “start Time” equal to my
> timezone less two hours.
>
>
>
> After,for mw, the server timezone, equal to the browser timezone, would be
> right if they would be equal to the “Start time:” filter and to the “Start
> time column”
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* martedì 14 agosto 2018 12:04
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Hi Mario,
>
>
>
> The UI uses browser time exclusively.  The columns displayed, however, are
> based on the server's time.  This is how MCF functioned up until the year
> 2016, when the columns were changed to display UTC instead.  I reverted
> that behavior with my commit.
>
>
>
> I am not sure I know what it is you are asking for me to do here.  Do you
> want all times displayed in UTC?  Or, all times displayed in the browser
> timezone?  Or all times displayed in the server timezone?
>
>
>
> Karl
>
>
>
>
>
> On Tue, Aug 14, 2018 at 5:13 AM Bisonti Mario 
> wrote:
>
> Hallo.
>
> I compiled, but with this version I see the time 2 hour less of the right
> time and the report seems wrong time by the actual time as you can see in
> the attachment.
>
>
>
> So I rollback to the previous version.
>
>
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 17:23
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Try it now.
>
>
>
> Karl
>
>
>
>
>
> On Fri, Aug 10, 2018 at 10:57 AM Bisonti Mario 
> wrote:
>
> Yes
>
> sudo ant make-core-deps
>
> Buildfile: /home/administrator/mcfsorce/trunk/build.xml
>
> Trying to override old definition of task javac
>
>
>
> BUILD FAILED
>
> /home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class
> de.thetaphi.forbiddenapis.ant.AntTask cannot be found
>
> using the classloader AntClassLoader[]
>
>
>
> Total time: 0 seconds
>
> administrator@sengvivv01:~/mcfsorce/trunk$
>
>
>
> But the downloaded trunk directory is very small, instead the last trunk
> was bigger:
>
> administrator@sengvivv01:~/mcfsorce$ du -sh tr*
>
> 121Mtrunk
>
> 1.8Gtrunk_19062018
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 16:47
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Did you first do:
>
>
>
> ant make-core-deps
>
>
>
> ?
>
> Karl
>
>
>
>
>
> On Fri, Aug 10, 2018 at 5:04 AM Bisonti Mario 
> wrote:
>
> Thanks Karl.
>
> I tried to compile the trunk version but I obtian:
>
> Buildfile: /home/administrator/mcfsorce/trunk/build.xml
>
> Trying to override old definition of task javac
>
>
>
> BUILD FAILED
>
> /home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class
> de.thetaphi.forbiddenapis.ant.AntTask cannot be found
>
> using the classloader AntClassLoader[]
>
>
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 10:53
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> I've committed a change to trunk which will restore the pre-2016 behavior.
>
>
>
> Karl
>
>
>
> On Fri, Aug 10, 2018 at 3:40 AM Karl Wright  wrote:
>
> The code that formats the time is here:
>
>
>
> >>
>
> String startTimeString =
> org.apache.manifoldcf.ui.util.Formatter.formatTime(Converter.asLong(row.getValue("starttime")));
>
> <<
>
>
>
> This explicitly uses UTC as the timezone:
>
> >>
>
>   /** Format a long as an understandable date.
>
>   *@param time is the long.
>
>   *@return the date, as a human-readable string.  This date will be in
> local time.
>
>   */
>
>   public static String formatTime(long time)
>
>   {
>
> Calendar c = new GregorianCalendar(TimeZone.getTimeZone("UTC"),
> Locale.ROOT);
>
> c.setTimeInMillis(time);
>
> // We want to format this string in a compact way:
>
> // mm-dd- hh:mm:ss.mmm
>
> StringBuilder returnString = new StringBuilder();
>
> writechars(returnString,c.get(Calendar.MONTH)+1,2);
>
> returnString.append("-");
>
> writechars(returnString,c.get(Calendar.DAY_OF_MONTH),2);
>
> returnString.append("-");
>
> writechars(returnString,c.get(Calendar.YEAR),4);
>
> returnString.append(" ");
>
> writechars(returnString,c.get(Calendar.HOUR_OF_DAY),2);
>
> returnString.append(":");
>
> 

R: Different time in Simple History Report

2018-08-14 Thread Bisonti Mario
Hi Karl.

In my environment, browser time and server timezone are the same.

Before the modification, I saw that the “Start Time:” filter was right, so in 
the timezone of the browser, equal to the server timezone (Europe/Rome)
Instead the report, had the column “start Time” equal to my timezone plus two 
hours.

After the modification, I see that the “Start Time:” filter timezone less one 
hour,  Instead the report, has the column “start Time” equal to my timezone 
less two hours.

After,for mw, the server timezone, equal to the browser timezone, would be 
right if they would be equal to the “Start time:” filter and to the “Start time 
column”



Da: Karl Wright 
Inviato: martedì 14 agosto 2018 12:04
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Hi Mario,

The UI uses browser time exclusively.  The columns displayed, however, are 
based on the server's time.  This is how MCF functioned up until the year 2016, 
when the columns were changed to display UTC instead.  I reverted that behavior 
with my commit.

I am not sure I know what it is you are asking for me to do here.  Do you want 
all times displayed in UTC?  Or, all times displayed in the browser timezone?  
Or all times displayed in the server timezone?

Karl


On Tue, Aug 14, 2018 at 5:13 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Hallo.
I compiled, but with this version I see the time 2 hour less of the right time 
and the report seems wrong time by the actual time as you can see in the 
attachment.

So I rollback to the previous version.

[cid:image001.jpg@01D433BF.C8289560]




Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: venerdì 10 agosto 2018 17:23
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Try it now.

Karl


On Fri, Aug 10, 2018 at 10:57 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Yes
sudo ant make-core-deps
Buildfile: /home/administrator/mcfsorce/trunk/build.xml
Trying to override old definition of task javac

BUILD FAILED
/home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class 
de.thetaphi.forbiddenapis.ant.AntTask cannot be found
using the classloader AntClassLoader[]

Total time: 0 seconds
administrator@sengvivv01:~/mcfsorce/trunk$

But the downloaded trunk directory is very small, instead the last trunk was 
bigger:
administrator@sengvivv01:~/mcfsorce$ du -sh tr*
121Mtrunk
1.8Gtrunk_19062018




Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: venerdì 10 agosto 2018 16:47
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Did you first do:

ant make-core-deps

?

Karl


On Fri, Aug 10, 2018 at 5:04 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Thanks Karl.
I tried to compile the trunk version but I obtian:

Buildfile: /home/administrator/mcfsorce/trunk/build.xml
Trying to override old definition of task javac

BUILD FAILED
/home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class 
de.thetaphi.forbiddenapis.ant.AntTask cannot be found
using the classloader AntClassLoader[]





Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: venerdì 10 agosto 2018 10:53
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

I've committed a change to trunk which will restore the pre-2016 behavior.

Karl

On Fri, Aug 10, 2018 at 3:40 AM Karl Wright 
mailto:daddy...@gmail.com>> wrote:
The code that formats the time is here:

>>
String startTimeString = 
org.apache.manifoldcf.ui.util.Formatter.formatTime(Converter.asLong(row.getValue("starttime")));
<<

This explicitly uses UTC as the timezone:

>>
  /** Format a long as an understandable date.
  *@param time is the long.
  *@return the date, as a human-readable string.  This date will be in local 
time.
  */
  public static String formatTime(long time)
  {
Calendar c = new GregorianCalendar(TimeZone.getTimeZone("UTC"), 
Locale.ROOT);
c.setTimeInMillis(time);
// We want to format this string in a compact way:
// mm-dd- hh:mm:ss.mmm
StringBuilder returnString = new StringBuilder();
writechars(returnString,c.get(Calendar.MONTH)+1,2);
returnString.append("-");
writechars(returnString,c.get(Calendar.DAY_OF_MONTH),2);
returnString.append("-");
writechars(returnString,c.get(Calendar.YEAR),4);
returnString.append(" ");
writechars(returnString,c.get(Calendar.HOUR_OF_DAY),2);
returnString.append(":");
writechars(returnString,c.get(Calendar.MINUTE),2);
returnString.append(":");
writechars(returnString,c.get(Calendar.SECOND),2);
returnString.append(".");
writechars(returnString,c.get(Calendar.MILLISECOND),3);
return returnString.toString();
  }
<<

This was last changed:

>>
1756230kwright Calendar c = new 
GregorianCalendar(TimeZone.getTimeZone("UTC"), Locale.ROOT);
<<

The reason 

Re: Different time in Simple History Report

2018-08-14 Thread Karl Wright
Hi Mario,

The UI uses browser time exclusively.  The columns displayed, however, are
based on the server's time.  This is how MCF functioned up until the year
2016, when the columns were changed to display UTC instead.  I reverted
that behavior with my commit.

I am not sure I know what it is you are asking for me to do here.  Do you
want all times displayed in UTC?  Or, all times displayed in the browser
timezone?  Or all times displayed in the server timezone?

Karl


On Tue, Aug 14, 2018 at 5:13 AM Bisonti Mario 
wrote:

> Hallo.
>
> I compiled, but with this version I see the time 2 hour less of the right
> time and the report seems wrong time by the actual time as you can see in
> the attachment.
>
>
>
> So I rollback to the previous version.
>
>
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 17:23
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Try it now.
>
>
>
> Karl
>
>
>
>
>
> On Fri, Aug 10, 2018 at 10:57 AM Bisonti Mario 
> wrote:
>
> Yes
>
> sudo ant make-core-deps
>
> Buildfile: /home/administrator/mcfsorce/trunk/build.xml
>
> Trying to override old definition of task javac
>
>
>
> BUILD FAILED
>
> /home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class
> de.thetaphi.forbiddenapis.ant.AntTask cannot be found
>
> using the classloader AntClassLoader[]
>
>
>
> Total time: 0 seconds
>
> administrator@sengvivv01:~/mcfsorce/trunk$
>
>
>
> But the downloaded trunk directory is very small, instead the last trunk
> was bigger:
>
> administrator@sengvivv01:~/mcfsorce$ du -sh tr*
>
> 121Mtrunk
>
> 1.8Gtrunk_19062018
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 16:47
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> Did you first do:
>
>
>
> ant make-core-deps
>
>
>
> ?
>
> Karl
>
>
>
>
>
> On Fri, Aug 10, 2018 at 5:04 AM Bisonti Mario 
> wrote:
>
> Thanks Karl.
>
> I tried to compile the trunk version but I obtian:
>
> Buildfile: /home/administrator/mcfsorce/trunk/build.xml
>
> Trying to override old definition of task javac
>
>
>
> BUILD FAILED
>
> /home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class
> de.thetaphi.forbiddenapis.ant.AntTask cannot be found
>
> using the classloader AntClassLoader[]
>
>
>
>
>
>
>
>
>
>
>
> *Da:* Karl Wright 
> *Inviato:* venerdì 10 agosto 2018 10:53
> *A:* user@manifoldcf.apache.org
> *Oggetto:* Re: Different time in Simple History Report
>
>
>
> I've committed a change to trunk which will restore the pre-2016 behavior.
>
>
>
> Karl
>
>
>
> On Fri, Aug 10, 2018 at 3:40 AM Karl Wright  wrote:
>
> The code that formats the time is here:
>
>
>
> >>
>
> String startTimeString =
> org.apache.manifoldcf.ui.util.Formatter.formatTime(Converter.asLong(row.getValue("starttime")));
>
> <<
>
>
>
> This explicitly uses UTC as the timezone:
>
> >>
>
>   /** Format a long as an understandable date.
>
>   *@param time is the long.
>
>   *@return the date, as a human-readable string.  This date will be in
> local time.
>
>   */
>
>   public static String formatTime(long time)
>
>   {
>
> Calendar c = new GregorianCalendar(TimeZone.getTimeZone("UTC"),
> Locale.ROOT);
>
> c.setTimeInMillis(time);
>
> // We want to format this string in a compact way:
>
> // mm-dd- hh:mm:ss.mmm
>
> StringBuilder returnString = new StringBuilder();
>
> writechars(returnString,c.get(Calendar.MONTH)+1,2);
>
> returnString.append("-");
>
> writechars(returnString,c.get(Calendar.DAY_OF_MONTH),2);
>
> returnString.append("-");
>
> writechars(returnString,c.get(Calendar.YEAR),4);
>
> returnString.append(" ");
>
> writechars(returnString,c.get(Calendar.HOUR_OF_DAY),2);
>
> returnString.append(":");
>
> writechars(returnString,c.get(Calendar.MINUTE),2);
>
> returnString.append(":");
>
> writechars(returnString,c.get(Calendar.SECOND),2);
>
> returnString.append(".");
>
> writechars(returnString,c.get(Calendar.MILLISECOND),3);
>
> return returnString.toString();
>
>   }
>
> <<
>
> This was last changed:
>
> >>
>
> 1756230kwright Calendar c = new
> GregorianCalendar(TimeZone.getTimeZone("UTC"), Locale.ROOT);
>
> <<
>
>
>
> The reason for the change:
>
> >>
>
> 
>
> r1756230 | kwright | 2016-08-12 18:20:00 -0400 (Fri, 12 Aug 2016) | 1 line
>
>
>
> Fix for CONNECTORS-1332.  Committed on behalf of Furkan KAMACI.
>
> <<
>
> CONNECTORS-1332 is about calling forbidden APIS:
>
>
>
> >>
>
> We should avoid forbidden calls
> 
>  and
> check for it in the ant build.

Using mainfoldCF as a webcrawler with tika and solr

2018-08-14 Thread Farrenkopf, Sven
I'm using manifoldCF with solr, trying to get it working as a webcrawler. 
Crawling the websites (HTML, Text) works fine, the problem is that links to 
binary documents (pdf, xlsx, docx, ...) don't work even if I put a 
tika-Transformation in the job. I haven't even found a written confirmation 
that the webcrawler-connector does support  binary documents, although some 
posts to the mailing-lists indicate that it is possible.

The documents are apparently recognized - I put a direct link to a pdf-document 
in the seeds and it is processed as I run the job.

But there is no error (Tika-errors are not ignored!) and the document is not 
transferred to solr. With no error-message I have nothing to work with ...

Any ideas/hints what to do? Does somebody know a tutorial for setting up a 
webcrawler with solr & tika? I haven't found any on the web, which made me ask 
myself if I'm trying sth impossible here?

Thanks in advance.

Sven


R: Different time in Simple History Report

2018-08-14 Thread Bisonti Mario
Hallo.
I compiled, but with this version I see the time 2 hour less of the right time 
and the report seems wrong time by the actual time as you can see in the 
attachment.

So I rollback to the previous version.

[cid:image001.jpg@01D433BF.C8289560]




Da: Karl Wright 
Inviato: venerdì 10 agosto 2018 17:23
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Try it now.

Karl


On Fri, Aug 10, 2018 at 10:57 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Yes
sudo ant make-core-deps
Buildfile: /home/administrator/mcfsorce/trunk/build.xml
Trying to override old definition of task javac

BUILD FAILED
/home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class 
de.thetaphi.forbiddenapis.ant.AntTask cannot be found
using the classloader AntClassLoader[]

Total time: 0 seconds
administrator@sengvivv01:~/mcfsorce/trunk$

But the downloaded trunk directory is very small, instead the last trunk was 
bigger:
administrator@sengvivv01:~/mcfsorce$ du -sh tr*
121Mtrunk
1.8Gtrunk_19062018




Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: venerdì 10 agosto 2018 16:47
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

Did you first do:

ant make-core-deps

?

Karl


On Fri, Aug 10, 2018 at 5:04 AM Bisonti Mario 
mailto:mario.biso...@vimar.com>> wrote:
Thanks Karl.
I tried to compile the trunk version but I obtian:

Buildfile: /home/administrator/mcfsorce/trunk/build.xml
Trying to override old definition of task javac

BUILD FAILED
/home/administrator/mcfsorce/trunk/build.xml:2929: taskdef class 
de.thetaphi.forbiddenapis.ant.AntTask cannot be found
using the classloader AntClassLoader[]





Da: Karl Wright mailto:daddy...@gmail.com>>
Inviato: venerdì 10 agosto 2018 10:53
A: user@manifoldcf.apache.org
Oggetto: Re: Different time in Simple History Report

I've committed a change to trunk which will restore the pre-2016 behavior.

Karl

On Fri, Aug 10, 2018 at 3:40 AM Karl Wright 
mailto:daddy...@gmail.com>> wrote:
The code that formats the time is here:

>>
String startTimeString = 
org.apache.manifoldcf.ui.util.Formatter.formatTime(Converter.asLong(row.getValue("starttime")));
<<

This explicitly uses UTC as the timezone:

>>
  /** Format a long as an understandable date.
  *@param time is the long.
  *@return the date, as a human-readable string.  This date will be in local 
time.
  */
  public static String formatTime(long time)
  {
Calendar c = new GregorianCalendar(TimeZone.getTimeZone("UTC"), 
Locale.ROOT);
c.setTimeInMillis(time);
// We want to format this string in a compact way:
// mm-dd- hh:mm:ss.mmm
StringBuilder returnString = new StringBuilder();
writechars(returnString,c.get(Calendar.MONTH)+1,2);
returnString.append("-");
writechars(returnString,c.get(Calendar.DAY_OF_MONTH),2);
returnString.append("-");
writechars(returnString,c.get(Calendar.YEAR),4);
returnString.append(" ");
writechars(returnString,c.get(Calendar.HOUR_OF_DAY),2);
returnString.append(":");
writechars(returnString,c.get(Calendar.MINUTE),2);
returnString.append(":");
writechars(returnString,c.get(Calendar.SECOND),2);
returnString.append(".");
writechars(returnString,c.get(Calendar.MILLISECOND),3);
return returnString.toString();
  }
<<

This was last changed:

>>
1756230kwright Calendar c = new 
GregorianCalendar(TimeZone.getTimeZone("UTC"), Locale.ROOT);
<<

The reason for the change:

>>

r1756230 | kwright | 2016-08-12 18:20:00 -0400 (Fri, 12 Aug 2016) | 1 line

Fix for CONNECTORS-1332.  Committed on behalf of Furkan KAMACI.
<<
CONNECTORS-1332 is about calling forbidden APIS:

>>
We should avoid forbidden 
calls
 and check for it in the ant build.
<<

The actual change was:
>>
C:\wip\mcf\trunk\framework\ui-core\src\main\java\org\apache\manifoldcf\ui\util>svn
 diff -c 1756230
Index: Formatter.java
===
--- Formatter.java  (revision 1756229)
+++ Formatter.java  (revision 1756230)
@@ -32,7 +32,7 @@
   */
   public static String formatTime(long time)
   {
-Calendar c = new GregorianCalendar();
+Calendar c = new GregorianCalendar(TimeZone.getTimeZone("UTC"), 
Locale.ROOT);
 c.setTimeInMillis(time);
 // We want to format this string in a compact way:
 // mm-dd- hh:mm:ss.mmm
<<


As you see, formerly the timezone was local time.  The change required an 
explicit timezone in order to pass the forbidden