Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unable to sync a git repository if the token contains some special characters #397

@dgarros

Description

@dgarros

Environment

  • Python version: 3.7
  • Nautobot version: 1.0.0

Steps to Reproduce

  1. Create a new Git repository
  2. Add a token containing a special character like /
  3. Try to sync the repository

Expected Behavior

Either it shouldn't be possible to create a repository with an invalid token or the sync should work as expected

Observed Behavior

The synchronization fail with an exit code of 128 and the following messages

  • name : Test Wrong token
  • username: test
  • token qwertytrew/qewrtsdfgtrew
  • repo : https://github.com/networktocode-llc/nautobot-datasource
2021-05-01T20:25:14.013404 | Failure |   | Cmd('git') failed due to: exit code(128) cmdline: git clone -v --progress https://test:qwertytrew/[email protected]/networktocode-llc/nautobot-datasource /opt/nautobot/git/test-wrong-token
2021-05-01T20:25:14.045399 | Failure |   | Error while refreshing Test Wrong token: Cmd('git') failed due to: exit code(128) cmdline: git clone -v --progress https://test:qwertytrew/[email protected]/networktocode-llc/nautobot-datasource /opt/nautobot/git/test-wrong-token

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions