Skip to content

CGit with Libravatar: value too long for type character varying(250) #386

Closed
@rick-gnous

Description

@rick-gnous

Some instances of CGit have a plugin for avatar using libravatar. It adds a span in the author field and, because of his length, raises "value too long for type character varying(250)". Check the code below to see the difference. I use the official cgit repo for example.

Without libravatar

<tr><th>author</th>
<td>Christian Hesse &lt;[email protected]&gt;</td>
<td class="[right]()">2021-05-18 22:49:13 +0200</td></tr>
<tr><th>committer</th><td>Christian Hesse &lt;[email protected]&gt;</td>
<td class="[right]()">2021-06-08 12:37:46 +0200</td></tr>

With libravatar

<tr><th>author</th>
<td><span class="[libravatar]()"><img class="[inline]()" src="[https://seccdn.libravatar.org/avatar/d39edb2018ca5544c1c390a8266096fb?s=13&amp;d=retro](view-source:https://seccdn.libravatar.org/avatar/d39edb2018ca5544c1c390a8266096fb?s=13&d=retro)"><img class="[onhover]()" src="[https://seccdn.libravatar.org/avatar/d39edb2018ca5544c1c390a8266096fb?s=128&amp;d=retro](view-source:https://seccdn.libravatar.org/avatar/d39edb2018ca5544c1c390a8266096fb?s=128&d=retro)"></span>Christian Hesse &lt;[email protected]&gt;</td>
<td class="[right]()">2021-05-18 22:49:13 +0200</td></tr>
<tr><th>committer</th><td><span class="[libravatar]()"><img class="[inline]()" src="[https://seccdn.libravatar.org/avatar/d39edb2018ca5544c1c390a8266096fb?s=13&amp;d=retro](view-source:https://seccdn.libravatar.org/avatar/d39edb2018ca5544c1c390a8266096fb?s=13&d=retro)"><img class="[onhover]()" src="[https://seccdn.libravatar.org/avatar/d39edb2018ca5544c1c390a8266096fb?s=128&amp;d=retro](view-source:https://seccdn.libravatar.org/avatar/d39edb2018ca5544c1c390a8266096fb?s=128&d=retro)"></span>Christian Hesse &lt;[email protected]&gt;</td>
<td class="[right]()">2021-06-08 12:37:46 +0200</td></tr>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions