NPe when accessing a Servlet while the responsible bundle starts

Description

When a HTTP Clienttry to load a resource on a servlet which is starting, PaxWeb can return an error 500 showing a NPE (below). It should rather return a 404 pages

Environment

None

Activity

Show:
Jean-Baptiste Onofre
January 8, 2020, 2:45 PM

I think it makes more sense to have 500 as 404 actually means that the resource is not present at all.

Thoughts ?

Grzegorz Grzybek
January 9, 2020, 1:26 PM

Hmm, 404 suits better OSGi env IMO. Servlet that didn't start yet is like an OSGi runtime with HttpService where no servlet (or resource) was registered (yet) under given alias. So 404 sounds more natural at 2nd (but I agree that not at first) glance.

Jean-Baptiste Onofre
May 20, 2020, 7:32 AM

Fair enough, let me go for 404.

Assignee

Jean-Baptiste Onofre

Reporter

Jérémie Brébec

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure