Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43462

BlueOcean favorite permisson bug

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • Jenkins ver. 2.46.1, BlueOcean 1.0.0, Favorite 2.0.4
    • Blue Ocean - 1.1-beta-1, Blue Ocean - 1.1-beta2

      Hi, I just updated Jenkins and install BlueOcean. 

      Users on my jenkins have a problem with favorite:

      1. User can click on star and made job his favorite in normal view.
      2. When user switch to BlueOcean gets error: Favoriting Error Something went wrong setting the favorite.
      3. When uset is in BlouOcean and click on favorite star gets same error: Favoriting Error Something went wrong setting the favorite.

      I am using Project-based Matrix Authorization Strategy for access management, and I dont want to give admin right to everybody.


       

      Thanks for solution


      Maybe this error is it


      Apr 10, 2017 7:07:37 AM hudson.ExpressionFactory2$JexlExpression evaluate
      WARNING: Caught exception evaluating: preloader.stateJson in /blue/. Reason: java.lang.reflect.InvocationTargetException
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125)
      at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
      at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)
      at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75)



      .....


      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.eclipse.jetty.server.Server.handle(Server.java:499)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
      at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: io.jenkins.blueocean.commons.ServiceException$ForbiddenException: You do not have access to this resource.
      at io.jenkins.blueocean.service.embedded.rest.UserImpl.getFavorites(UserImpl.java:86)
      at io.jenkins.blueocean.preload.FavoritesStatePreloader.getFetchData(FavoritesStatePreloader.java:60)
      at io.jenkins.blueocean.commons.RESTFetchPreloader.getStateJson(RESTFetchPreloader.java:64)
      ... 114 more

       

       

        1. blueocean-rest-impl.hpi
          85 kB
          Vivek Pandey
        2. error.jpg
          47 kB
          Roman Malík

            vivek Vivek Pandey
            hustoles Roman Malík
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: