You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/06/27 13:57:49 UTC

[GitHub] [pulsar] tuteng opened a new issue #4622: [pulsar-dashboard]Dashboard report MultipleObjectsReturned

tuteng opened a new issue #4622: [pulsar-dashboard]Dashboard report MultipleObjectsReturned
URL: https://github.com/apache/pulsar/issues/4622
 
 
   **Describe the bug**
   If cross-regional replication is turned on, the same Topic will appear, Django uses get_object_or_404  will throw  an exception MultipleObjectsReturned
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Go to '...'
   2. Click on '....'
   3. Scroll down to '....'
   4. See error
   
   **Expected behavior**
   In case of duplicate data, the information will be displayed normally.
   
   **Screenshots**
   If applicable, add screenshots to help explain your problem.
   
   **Desktop (please complete the following information):**
    - OS: [e.g. iOS]
   
   **Additional context**
   Add any other context about the problem here.
   
   Fix
   Use  get_list_or_404 instead of get_object_or_404, but check the logic elsewhere to prevent similar errors.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services