Re: [PR] Prevent inserting illegal ddocs via mango [couchdb]

2024-10-31 Thread via GitHub


nickva merged PR #5330:
URL: https://github.com/apache/couchdb/pull/5330


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] Prevent inserting illegal ddocs via mango [couchdb]

2024-10-31 Thread via GitHub


nickva commented on PR #5330:
URL: https://github.com/apache/couchdb/pull/5330#issuecomment-2450715747

   With the fix:
   
   ```
   % http put $DB/db/_design%2f
   HTTP/1.1 400 Bad Request
   
   {
   "error": "illegal_docid",
   "reason": "Illegal document id `_design/`"
   }
   
   
% http post $DB/db/_index index:='{"fields":["_id"]}' ddoc:='"_design/"'
   HTTP/1.1 400 Bad Request
   
   
   {
   "error": "illegal_docid",
   "reason": "Illegal document id `_design/`"
   }
   ```
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org