Error trying to access to admin account #451

Closed
gitblit opened this Issue Aug 12, 2015 · 6 comments

Comments

Projects
None yet
1 participant
@gitblit
Owner

gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 155

What steps will reproduce the problem?
1.login as admin
2.I enter the user option on the main page
3.I try to edit the admin user account

What is the expected output? What do you see instead?
GitBlit throws >> Internal Error

What version of the product are you using? On what operating system?
v1.2.0-SNAPSHOT commit >> 092f0a62302e87f44403ba24fc519c65534dbfff

Please provide any additional information below.

This is the console log of eclipse:

ERROR Can't instantiate page using constructor public com.gitblit.wicket.pages.EditUserPage(org.apache.wicket.PageParameters)
and argument user = "[admin]"
org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor
public com.gitblit.wicket.pages.EditUserPage(org.apache.wicket.PageParameters) and
argument user = "[admin]"
    at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:212)
    at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:89)
    at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:305)
    at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320)
    at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234)
    at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
    at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1279)
    at org.apache.wicket.RequestCycle.step(RequestCycle.java:1358)
    at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1465)
    at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
    at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
    at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    at org.eclipse.jetty.server.Server.handle(Server.java:363)
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:920)
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:982)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:188)
    ... 35 more
Caused by: java.lang.NullPointerException
    at com.gitblit.wicket.pages.EditUserPage.setupPage(EditUserPage.java:107)
    at com.gitblit.wicket.pages.EditUserPage.<init>(EditUserPage.java:75)
    ... 40 more


Reported by eguervos on 2012-10-30 13:33:16

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
P.S.

The other accounts don't throw that Error.

Reported by eguervos on 2012-10-30 13:36:06

Owner

gitblit commented Aug 12, 2015

P.S.

The other accounts don't throw that Error.

Reported by eguervos on 2012-10-30 13:36:06

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
Can you set a breakpoint @ EditUserPage:L107?

Reported by James.Moger on 2012-10-30 13:42:29

Owner

gitblit commented Aug 12, 2015

Can you set a breakpoint @ EditUserPage:L107?

Reported by James.Moger on 2012-10-30 13:42:29

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
Create a breakpoint on that line throws this:
http://www.eswow2.org/files/debug_mode.png

-EG

Reported by eguervos on 2012-10-30 15:51:18

Owner

gitblit commented Aug 12, 2015

Create a breakpoint on that line throws this:
http://www.eswow2.org/files/debug_mode.png

-EG

Reported by eguervos on 2012-10-30 15:51:18

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
I added some logging and improved the code for a breakpoint.  This will hopefully make
it clearer what your null source is.

Reported by James.Moger on 2012-10-30 21:31:02

Owner

gitblit commented Aug 12, 2015

I added some logging and improved the code for a breakpoint.  This will hopefully make
it clearer what your null source is.

Reported by James.Moger on 2012-10-30 21:31:02

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
Indeed, those lines you entered, have fixed the error, which I describe you way to as
occurs:
   When deleting a repository of a User externally to Gitblit, this is reflected even
in the file user.conf and still displayed in the the user control panel [access permissions]
tab, within the repository permissions window.

I think there should be a mechanism [SanityCheck] that check out the integrity of data
of repositories accounts user.
Though the solution that you have given is valid, but it does not inform you of that
this repository does not exist.

Best Regards

Reported by eguervos on 2012-10-31 11:11:41

Owner

gitblit commented Aug 12, 2015

Indeed, those lines you entered, have fixed the error, which I describe you way to as
occurs:
   When deleting a repository of a User externally to Gitblit, this is reflected even
in the file user.conf and still displayed in the the user control panel [access permissions]
tab, within the repository permissions window.

I think there should be a mechanism [SanityCheck] that check out the integrity of data
of repositories accounts user.
Though the solution that you have given is valid, but it does not inform you of that
this repository does not exist.

Best Regards

Reported by eguervos on 2012-10-31 11:11:41

@gitblit

This comment has been minimized.

Show comment
Hide comment
@gitblit

gitblit Aug 12, 2015

Owner
The latest master gracefully handles missing repositories.

Reported by James.Moger on 2012-11-01 13:47:48

  • Status changed: Fixed
Owner

gitblit commented Aug 12, 2015

The latest master gracefully handles missing repositories.

Reported by James.Moger on 2012-11-01 13:47:48

  • Status changed: Fixed

@gitblit gitblit closed this Aug 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment