git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Returning error message from custom smart http server

From
ÁTÁkos, Tajti <akos.tajti@intland.com>
Date
May 13, 2014, 07:39 UTC
Message-ID
<5371CC4F.80602@intland.com>
Dear List,

we implemented our own git smart http server to be able to check permissions and other thing before pushes. It works fine, however, the error messages we generate on the server side are not displayed by the command line client. On the server we generate error messages like this:

         response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
         response.getWriter().write(msg);
On the command line we get this:

Total 0 (delta 0), reused 0 (delta 0) POST git-receive-pack (290 bytes) efrror: RPC failed; result=22, HTTP code = 401 atal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly

The server message is completely missing. Is there a solution for this?

Thanks, Ákos Tajti

--- A levél vírus, és rosszindulatú kód mentes, mert az avast! Antivirus védelme ellenőrizte azt. http://www.avast.com

Next: brian m. carlson
Message 1 of 5 in “Returning error message from custom smart http server”
  1. Ákos, TajtiMay 13, 2014
  2. brian m. carlsonMay 16, 2014
  3. Bryan TurnerMay 19, 2014
  4. Carlos Martín NietoMay 19, 2014
  5. Jeff KingMay 19, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.