Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lease date field error when past date entered #4758

Closed
jlhardes opened this issue Feb 26, 2021 · 3 comments
Closed

Lease date field error when past date entered #4758

jlhardes opened this issue Feb 26, 2021 · 3 comments
Assignees
Labels
Milestone

Comments

@jlhardes
Copy link
Contributor

Descriptive summary

In Hyrax 3.x, entering a date in the past in the Lease date field on a Work produces a stack trace error when saving the Work.

Rationale

Stack trace errors shouldn't happen for this action.

Expected behavior

Error message should show on Work form (like it does when doing this same action on Embargo) to indicate:

Lease reduced access date Must be a future date.

Error checking applied to Embargo seems to not be applied to Lease.

Actual behavior

See attached stack trace error screenshot

Steps to reproduce the behavior

  1. Login to nurax-dev
  2. Create a new Work
  3. Fill in required text fields (title, creator, rights statement)
  4. Select Lease for Visibility
  5. Enter a date in the past in date field
  6. Check box for deposit agreement
  7. Click Save button

Related work

Related to #3978 and #4757

Screen Shot 2021-02-26 at 10 51 16 AM

@jlhardes jlhardes added the bug label Feb 26, 2021
@jlhardes jlhardes added this to the 3.x series milestone Feb 26, 2021
@rjkati rjkati self-assigned this Feb 26, 2021
@rjkati
Copy link

rjkati commented Feb 26, 2021

I receive the same error message on nurax-dev when entering a past Lease date.
old_lease

@crisr15
Copy link

crisr15 commented Feb 26, 2021

Uploading Action Controller_ Exception caught - nurax-dev.curationexperts.com.png…
This should provide you the whole trace.

@jlhardes
Copy link
Contributor Author

jlhardes commented Apr 2, 2021

Stack trace error is no longer occurring so this issue is being closed.

@jlhardes jlhardes closed this as completed Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants