Serge Huber created UNOMI-1008:
----------------------------------

             Summary: Admin requests without a tenant header do not see 
migrated data
                 Key: UNOMI-1008
                 URL: https://issues.apache.org/jira/browse/UNOMI-1008
             Project: Apache Unomi
          Issue Type: Bug
    Affects Versions: unomi-4.0.0
            Reporter: Serge Huber
             Fix For: unomi-4.0.0


h3. Summary

After a migration from 3.0, all the data is in the "default" tenant. An admin 
request with Basic authentication and no X-Unomi-Tenant-Id header does not see 
this data, and nothing tells the user why. A request with a tenant id that does 
not exist also gives no error.

The migration guide shows such a request without the header, and two manual 
pages disagree about what happens: one says the header is optional, another 
says that an unknown tenant gives an error 401.

The goal of this ticket is clear behaviour, matched by the documentation.

h3. Ways to explore
* Answer with a clear error when the tenant id does not exist. Check the tenant 
only after authentication succeeds.
* Decide what a request without the header should do, and document it in one 
place.
* Add the header to the examples in the migration guide.

h3. How to test

Send an admin request with a tenant id that does not exist, and check that it 
gets a clear error. Send one without the header, and check that the result 
matches the documentation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to