Details

    • Epic Link:
    • Sprint:
      Blue Ocean - 1.1-beta-1, Blue Ocean - 1.1-beta2
    • Similar Issues:

      Description

      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

       

       

        Attachments

          Activity

          Hide
          vivek Vivek Pandey added a comment -

          Roman Malík I have a fix for you to try

          I have attached blueocean-rest-impl.hpi with this ticket (old one has been deleted).

          Here are steps for testing the fix:

          1. Download blueocean-rest-impl.hpi from this ticket
          2. Shutdown your Jenkins
          3. Within your home directory delete rm -rf plugins/blueocean-rest-impl*
          4. Move blueocean-rest-impl.hpi into plugins/
          5. Start Jenkins

          Let me know if it fixes your problem then will open a PR and get it merged.

          blueocean-rest-impl.hpi

          Show
          vivek Vivek Pandey added a comment - Roman Malík I have a fix for you to try I have attached blueocean-rest-impl.hpi with this ticket (old one has been deleted). Here are steps for testing the fix: Download blueocean-rest-impl.hpi from this ticket Shutdown your Jenkins Within your home directory delete rm -rf plugins/blueocean-rest-impl* Move blueocean-rest-impl.hpi into plugins/ Start Jenkins Let me know if it fixes your problem then will open a PR and get it merged. blueocean-rest-impl.hpi
          Hide
          hustoles Roman Malík added a comment -

          Vivek Pandey I have issue. Meantime I updated plugins on my test machine, now I have error>

          There are dependency errors loading some plugins:

          • Blue Ocean v1.0.1
            • Personalization for Blue Ocean v1.0.1 failed to load. Fix this plugin first.
          • Personalization for Blue Ocean v1.0.1
            • Events API for Blue Ocean v1.0.1 failed to load. Fix this plugin first.
          • Dashboard for Blue Ocean v1.0.1
            • Events API for Blue Ocean v1.0.1 failed to load. Fix this plugin first.
          • GitHub Pipeline for Blue Ocean v1.0.1
            • Pipeline REST API for Blue Ocean v1.0.1 failed to load. Fix this plugin first.
          • Pipeline REST API for Blue Ocean v1.0.1
            • REST Implementation for Blue Ocean v1.1.0-SNAPSHOT (private-97049dfc-vivek) failed to load. Fix this plugin first.
          • Git Pipeline for Blue Ocean v1.0.1
            • Pipeline REST API for Blue Ocean v1.0.1 failed to load. Fix this plugin first.
          • Blue Ocean Pipeline Editor v0.2.0
            • Pipeline REST API for Blue Ocean v1.0.1 failed to load. Fix this plugin first.
          • Config API for Blue Ocean v1.0.1
            • REST Implementation for Blue Ocean v1.1.0-SNAPSHOT (private-97049dfc-vivek) failed to load. Fix this plugin first.
          • Events API for Blue Ocean v1.0.1
            • Pipeline REST API for Blue Ocean v1.0.1 failed to load. Fix this plugin first.
          • REST Implementation for Blue Ocean v1.1.0-SNAPSHOT (private-97049dfc-vivek)
            • JWT for Blue Ocean v1.0.1 is older than required. To fix, install v1.1.0-SNAPSHOT or later.
            • REST API for Blue Ocean v1.0.1 is older than required. To fix, install v1.1.0-SNAPSHOT or later.
            • Web for Blue Ocean v1.0.1 is older than required. To fix, install v1.1.0-SNAPSHOT or later.

          Can you do that fix on newer plugin v 1.0.1?

          Show
          hustoles Roman Malík added a comment - Vivek Pandey I have issue. Meantime I updated plugins on my test machine, now I have error> There are dependency errors loading some plugins: Blue Ocean v1.0.1 Personalization for Blue Ocean v1.0.1 failed to load. Fix this plugin first. Personalization for Blue Ocean v1.0.1 Events API for Blue Ocean v1.0.1 failed to load. Fix this plugin first. Dashboard for Blue Ocean v1.0.1 Events API for Blue Ocean v1.0.1 failed to load. Fix this plugin first. GitHub Pipeline for Blue Ocean v1.0.1 Pipeline REST API for Blue Ocean v1.0.1 failed to load. Fix this plugin first. Pipeline REST API for Blue Ocean v1.0.1 REST Implementation for Blue Ocean v1.1.0-SNAPSHOT (private-97049dfc-vivek) failed to load. Fix this plugin first. Git Pipeline for Blue Ocean v1.0.1 Pipeline REST API for Blue Ocean v1.0.1 failed to load. Fix this plugin first. Blue Ocean Pipeline Editor v0.2.0 Pipeline REST API for Blue Ocean v1.0.1 failed to load. Fix this plugin first. Config API for Blue Ocean v1.0.1 REST Implementation for Blue Ocean v1.1.0-SNAPSHOT (private-97049dfc-vivek) failed to load. Fix this plugin first. Events API for Blue Ocean v1.0.1 Pipeline REST API for Blue Ocean v1.0.1 failed to load. Fix this plugin first. REST Implementation for Blue Ocean v1.1.0-SNAPSHOT (private-97049dfc-vivek) JWT for Blue Ocean v1.0.1 is older than required. To fix, install v1.1.0-SNAPSHOT or later. REST API for Blue Ocean v1.0.1 is older than required . To fix, install v1.1.0-SNAPSHOT or later. Web for Blue Ocean v1.0.1 is older than required. To fix, install v1.1.0-SNAPSHOT or later. Can you do that fix on newer plugin v 1.0.1?
          Hide
          vivek Vivek Pandey added a comment -

          Roman Malík Ah, sorry about that. Ok, I have build one from 1.0.1 branch, can you try this. Remember to delete existing blueocean-rest-impl* from plugins directory.

          blueocean-rest-impl.hpi

          Show
          vivek Vivek Pandey added a comment - Roman Malík Ah, sorry about that. Ok, I have build one from 1.0.1 branch, can you try this. Remember to delete existing blueocean-rest-impl* from plugins directory. blueocean-rest-impl.hpi
          Hide
          hustoles Roman Malík added a comment -

          Vivek Pandey now I can confirm that your patch works. Please get it merged. And thank you so much!

          Show
          hustoles Roman Malík added a comment - Vivek Pandey now I can confirm that your patch works. Please get it merged. And thank you so much!
          Show
          vivek Vivek Pandey added a comment - Roman Malík thanks. I have a PR: https://github.com/jenkinsci/blueocean-plugin/pull/995 .

            People

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

              Dates

              • Created:
                Updated:
                Resolved: