Archiva

Invalid cron expressions are accepted in Database Scanning

Details

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

Description

Invalid Cron Expressions are still accepted in Database - Unprocessed Artifacts Scanning

I entered "asdf" in Cron and clicked on the Update Cron button; invalid value was accepted.

  1. MRM-814.patch
    01/Aug/08 6:01 PM
    5 kB
    Mark Jeffery
  2. MRM-814-trunk.patch
    03/Aug/08 10:32 AM
    5 kB
    Mark Jeffery
  3. MRM-895-trunk-level.patch
    03/Aug/08 10:30 AM
    2 kB
    Mark Jeffery

Activity

Hide
Mark Jeffery added a comment -

This patch checks for blank field and for a valid cron expression.

Used custom field validator to wrap org.codehaus.plexus.scheduler.CronExpressionValidator.

The diff is on project level (archiva-webapp). Not sure if this is the standard.

Show
Mark Jeffery added a comment - This patch checks for blank field and for a valid cron expression. Used custom field validator to wrap org.codehaus.plexus.scheduler.CronExpressionValidator. The diff is on project level (archiva-webapp). Not sure if this is the standard.
Hide
Mark Jeffery added a comment - - edited

This patch (MRM-814-trunk.patch) is done off trunk level. Please delete

MRM-814.patch
MRM-895-trunk-level.patch

Show
Mark Jeffery added a comment - - edited This patch (MRM-814-trunk.patch) is done off trunk level. Please delete MRM-814.patch MRM-895-trunk-level.patch
Hide
Maria Odea Ching added a comment -

Patch MRM-814-trunk.patch applied in trunk -r682588. Thanks for the patch Mark!

Show
Maria Odea Ching added a comment - Patch MRM-814-trunk.patch applied in trunk -r682588. Thanks for the patch Mark!

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: