Archiva

Default cron expression for database update is invalid

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0.2
  • Fix Version/s: 1.0.2
  • Component/s: Web Interface
  • Labels:
    None
  • Number of attachments :
    0

Description

The default cron expression on the Database page is "0 0 * * ?" which is invalid.

When adding a managed repository, the log shows:
2008-04-02 22:48:29,346 [btpool0-2] WARN org.apache.maven.archiva.scheduled.ArchivaTaskScheduler:default - Cron expression [0 0 * * ?] for database update is invalid. Defaulting to hourly.

If you click 'Update cron' on the Databases page, there is no validation error (but the same log message appears.)

I think it should be [0 0 * * * ?] instead.

Activity

Hide
Brett Porter added a comment -

tested and found this to work in a clean build. I believe this was fixed some time ago.

However, there were a number of test cases that had the wrong expressions, so they were updated.

Show
Brett Porter added a comment - tested and found this to work in a clean build. I believe this was fixed some time ago. However, there were a number of test cases that had the wrong expressions, so they were updated.
Hide
Wendy Smoak added a comment -

I was seeing this with a clean build from the 1.0.x branch (last changed rev 642856) and 'mvn jetty:run'.

Show
Wendy Smoak added a comment - I was seeing this with a clean build from the 1.0.x branch (last changed rev 642856) and 'mvn jetty:run'.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: