Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12645

MemClassLoader#loadResource() is broken

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Plugin system
    • None

    Description

      ResourceLoader#openResource() in this impl always returns null and ignores the ByteBuffer with data that it fetched before (it should warp it with an InputStream). If ResourceLoader#openResource is not supported, it should throw UOE, but returning "null" is against the contract! In addition, it does not ask the parent ResourceLoader first (like when finding classes).

      This class is completely new to me, but looks like it's used with the plugin system. It should be fixed, as it might be passed as ResourceLoader around, leading to NPEs.

      Any comments what's wrong here?

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            Unassigned Unassigned
            uschindler Uwe Schindler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: