# Bug COSTS-82 - Time entry cannot be saved when comment is >255 characters long

Project: Stream Time & Costs
Status: closed
URL: https://community.openproject.org/work_packages/COSTS-82

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.3.1 |
| Observed in versions | 8.0.0 |
| Bug found in version (deprecated) | 8.0.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Klaus Zanders |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Create a time entry
    
2.  Enter more than 255 characters in the comment field
    
3.  Try to save it
    

### What is the buggy behavior?

*   An Internal Server error is returned
    

### What is the expected behavior?

We do have 2 options how to handle this:

1.  The comment field is limited to 255 characters and a validation error is shown when the comment is too long
    
2.  Change the database type to a text field to allow arbitrary lengths
    

For the bugfix for 15.3.1 we chose to limit the field to 255 characters and add a validation, and [there is a follow up ticket for 15.4](https://community.openproject.org/projects/stream-time-and-costs/work_packages/61607) that will increase the limit to 1000 characters (basically option 2).&nbsp;

### **Logs**

_AppSignal: https://appsignal.com/openproject-gmbh/sites/63237184d2a5e463ef717e6e/exceptions/incidents/1967_

### Environment information

_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_

**OpenProject installation type**

*   all of them
    

**OpenProject version**

*   all of them
    

**Browser**

*   [x] Chrome
*   [x] Firefox
*   [x] Safari
*   [x] Mobile Safari
*   [x] Other (please specify)

**Operating System**

*   [x] Windows
*   [x] Mac OS X
*   [x] Mobile iOS
*   [x] Mobile Android
*   [x] Linux (please specify distro)
*   [x] Chrome OS
*   [x] Other (please specify)
