Curriki
  1. Curriki
  2. CURRIKI-5702

NullPointerException on resource display

    Details

    • Similar issues:
      CURRIKI-4213Flag: Display Resource Flagges dialog.
      CURRIKI-2283Groups > Newly Address Resource is not getting displayed in the grid.
      CURRIKI-6449The Resource type of uploaded PDF document is displayed as "Web" but when I open the resource, it has its appropriate resource type.
      CURRIKI-4374RVE > Archive Resource > "Show Files" button not displaying Archive Tree
      CURRIKI-3614web link resource: customized title is not displayed after save
      CURRIKI-4273AT&T Current > Search >Advanced Search >Newly created resources are not displayed in search.
      CURRIKI-3417 My Contributions> The Resource type is not getting displayed.
      CURRIKI-3733REV - Organize - Unavailable resource is displayed as 'Private Asset' in CTV
      CURRIKI-3873Filechecker >Gave a resource improvement requested status. If filter option selected to view that resource, then the corresponding resource is not getting displayed.
      CURRIKI-2514user1 added user2's resource. Now user2 deleted that resource. Then user1 newly buidup resources not displaying.

      Description

      The resource http://next.dev.curriki.org/xwiki/bin/view/Coll_singhparamjit90/MandBudhiPunjabi

      delivers with an error while it delivers fine on current...

      It seems to be a NullPointerException in the CurrikiSpaceManager.

        Activity

        Hide
        Paul Libbrecht added a comment -

        The console shows an error in the curriki-space-manager when calculating the parents.

        paul

        Show
        Paul Libbrecht added a comment - The console shows an error in the curriki-space-manager when calculating the parents. paul
        Hide
        Paul Libbrecht added a comment -

        Though I haven't been able to tell for sure, this NPE seems due to a velocity variable that is not properly defined (about the space of a resource). It is likely, thus, to be fixed by the macro-param-by-ref issue.
        paul

        Show
        Paul Libbrecht added a comment - Though I haven't been able to tell for sure, this NPE seems due to a velocity variable that is not properly defined (about the space of a resource). It is likely, thus, to be fixed by the macro-param-by-ref issue. paul
        Hide
        Paul Libbrecht added a comment -
        Show
        Paul Libbrecht added a comment - This is happening several others. E.g. http://current.dev.curriki.org/xwiki/bin/view/Coll_Nobiah/THEHISTORYOFPIZZA paul
        Hide
        Paul Libbrecht added a comment -

        Right now on current, I tried transferring the history-of-pizza (to my desktop) and it stopped showing the issue.
        Also, the other URL
        http://current.dev.curriki.org/xwiki/bin/view/Coll_singhparamjit90/MandBudhiPunjabi
        works flawlessly.
        I note that in none of these cases is there a parent (I also checked on prod). So it was the collection parent display into the breadcrumbs.
        paul

        Show
        Paul Libbrecht added a comment - Right now on current, I tried transferring the history-of-pizza (to my desktop) and it stopped showing the issue. Also, the other URL http://current.dev.curriki.org/xwiki/bin/view/Coll_singhparamjit90/MandBudhiPunjabi works flawlessly. I note that in none of these cases is there a parent (I also checked on prod). So it was the collection parent display into the breadcrumbs. paul
        Hide
        Paul Libbrecht added a comment -

        I'm starting to detect the reason for this issue: the resources that appear candidates as parent are protected resources thus are not displayed.

        http://current.dev.curriki.org/xwiki/bin/view/Coll_Nobiah/THEHISTORYOFPIZZA can be viewed worry-free as administrator.
        But not as normal user (same error).

        When you view as admin you see that the parents are the collection 3s and Language Arts Reviewed Resources. The latter is restricted (and requires me to login).

        The null-check just committed should fix it.
        But maybe we're underperforming.

        paul

        Show
        Paul Libbrecht added a comment - I'm starting to detect the reason for this issue: the resources that appear candidates as parent are protected resources thus are not displayed. http://current.dev.curriki.org/xwiki/bin/view/Coll_Nobiah/THEHISTORYOFPIZZA can be viewed worry-free as administrator. But not as normal user (same error). When you view as admin you see that the parents are the collection 3s and Language Arts Reviewed Resources . The latter is restricted (and requires me to login). The null-check just committed should fix it. But maybe we're underperforming. paul
        Hide
        Joshua Marks added a comment -

        This seems a likely cause. The question is, why does this error not occur in the current released version? We need to narrow this down further and identify what changed.

        Show
        Joshua Marks added a comment - This seems a likely cause. The question is, why does this error not occur in the current released version? We need to narrow this down further and identify what changed.
        Hide
        Paul Libbrecht added a comment -

        Joshua,

        I won't find out "what was changed that broke it" if I cannot differentiate the collection 3s and the root collection which, apparently should not be displayed.

        paul

        Show
        Paul Libbrecht added a comment - Joshua, I won't find out "what was changed that broke it" if I cannot differentiate the collection 3s and the root collection which, apparently should not be displayed. paul
        Hide
        Paul Libbrecht added a comment -

        Fixed for all.
        Now also checking for authorization before adding a parent.
        Apparently that was not made.
        Paul

        Show
        Paul Libbrecht added a comment - Fixed for all. Now also checking for authorization before adding a parent. Apparently that was not made. Paul
        Hide
        Todd Sherman added a comment -

        The problem with the fix is now I cannot see the collection especially on the left TOC. So now, even as an Admin, I cannot tell that there is more to the collection.

        Works fine on Production.

        Show
        Todd Sherman added a comment - The problem with the fix is now I cannot see the collection especially on the left TOC. So now, even as an Admin, I cannot tell that there is more to the collection. Works fine on Production.
        Show
        Todd Sherman added a comment - compare http://current.dev.curriki.org/xwiki/bin/view/Coll_Nobiah/THEHISTORYOFPIZZA to http://www.curriki.org/xwiki/bin/view/Coll_Nobiah/THEHISTORYOFPIZZA To see what I mean. Log-In as an Admin.
        Hide
        Paul Libbrecht added a comment -

        Todd,
        I think your difference was an editorial one. Janet probably added it to a collection later.
        At least on prod, with the new code, it shows with Janet's collection.
        paul

        Show
        Paul Libbrecht added a comment - Todd, I think your difference was an editorial one. Janet probably added it to a collection later. At least on prod, with the new code, it shows with Janet's collection. paul

          People

          • Assignee:
            Paul Libbrecht
            Reporter:
            Paul Libbrecht
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response: