Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #4235

Closed
Open
Created Jun 06, 2013 by Administrator@rootOwner

GitLab 5.2: Edit File does not commit changes -- Your changes could not be commited, because the file has been changed

Created by: sroth80021

In our 5.2 repository, the file edit functionality does not work -- when we click the Commit button, we get the message:

Your changes could not be commited, because the file has been changed

Unfortunately, no error is logged in any of the GitLab logfiles.

Repro steps: 1- commit text file to repo, push to GitLab 2- click on repo, click on Files, click on the txt File, click edit button 3- make change, enter commit message, click Commit

In the header, you briefly see the message: Your changes could not be commited, because the file has been changed

The page refreshes (still in edit mode), and your change disappears. The change was not pushed to the repository.

None of the GitLab logfiles indicate any errors. The production logfile is updated, but does not show any errors. The other logfiles are not updated.

production logfile has:

Started PUT "/some_repo/edit/master/README" for 127.0.0.1 at 2013-06-06 07:37:43 -0700
Processing by EditTreeController#update as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"5xWP6CrrML7HzMFyDlJkir4nEK3UWJdjDZ/HR2H80n0=", "commit_message"=>"Update README", "last_commit"=>"21890c76a7ca1d6897b2a398967425970af1a0c1", "content"=>"Some text\r\n", "project_id"=>"some_repo", "id"=>"master/README"}
  Rendered edit_tree/show.html.haml within layouts/project_resource (3.4ms)
  Rendered layouts/_head.html.haml (1.2ms)
  Rendered layouts/_search.html.haml (19.0ms)
  Rendered layouts/_head_panel.html.haml (22.9ms)
  Rendered layouts/_init_auto_complete.html.haml (5.2ms)
  Rendered layouts/_flash.html.haml (0.1ms)
  Rendered shared/_no_ssh.html.haml (0.9ms)
  Rendered layouts/nav/_project.html.haml (14.9ms)
Completed 200 OK in 148ms (Views: 51.5ms | ActiveRecord: 4.4ms)
Started GET "/assets/logo-white.png" for 127.0.0.1 at 2013-06-06 07:37:44 -0700
Served asset /logo-white.png - 304 Not Modified (0ms)
Started GET "/assets/icon-search.png" for 127.0.0.1 at 2013-06-06 07:37:44 -0700
Served asset /icon-search.png - 304 Not Modified (0ms)
Assignee
Assign to
Time tracking