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

Error when GC is left blank #662

Closed
gitblit opened this issue Aug 12, 2015 · 3 comments
Closed

Error when GC is left blank #662

gitblit opened this issue Aug 12, 2015 · 3 comments

Comments

@gitblit
Copy link
Collaborator

gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 366

What steps will reproduce the problem?
1.Create a new empty Repo
2.No filled GC options (GC is enabled into gitblit.properties)
3.push [save]

What is the expected output? What do you see instead?
quote log:
Caused by: java.lang.IllegalArgumentException: Can not set int field com.gitblit.models.RepositoryModel.gcPeriod
to null value
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
    at sun.reflect.UnsafeIntegerFieldAccessorImpl.set(UnsafeIntegerFieldAccessorImpl.java:80)
    at java.lang.reflect.Field.set(Field.java:680)
    at org.apache.wicket.util.lang.PropertyResolver$FieldGetAndSetter.setValue(PropertyResolver.java:1389)
    ... 53 more


What version of the product are you using? On what operating system?
1.4.0 (screenshot)

Please provide any additional information below.

I think the option to enable GC in gitblit.properties should not have to use by the
force.
Ie: Allow the option of not using it, to skip creation in the form of Repo, if it's
not necessary.

Reported by eguervos on 2014-02-08 19:01:51

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Reported by James.Moger on 2014-02-21 14:44:54

  • Status changed: Started
  • Labels added: Milestone-1.4.0

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Fix pushed to master.

Reported by James.Moger on 2014-02-21 14:59:32

  • Status changed: Queued

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

1.4.0 released.

Reported by James.Moger on 2014-03-09 18:06:21

  • Status changed: Done

@gitblit gitblit closed this as completed Aug 12, 2015
@flaix flaix modified the milestone: 1.4.0 Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants