View Ticket
Ticket Hash: d34bf8dda67e3cc097e03dff617ee3d6da022b9a
Title: new repo project-code override does NOT override it
Status: Open Type: Code_Defect
Severity: Important Priority: Immediate
Subsystem: Resolution: Open
Last Modified: 2023-01-26 01:34:51
Version Found In:
User Comments:
anonymous added on 2022-02-10 18:17:02: (text/x-markdown)
I created a new (private) repository.  *Although I pasted in an overriding project code*, I get "Error: login failed" when I tried to push to it with, even though I specified the pw that I used when I created the repo

```
$ fossil push https://eschen42:zyxxyPlugh@chiselapp.com/user/eschen42/repository/my_tools -R my_tools.fossil --once
Round-trips: 1   Artifacts sent: 0  received: 0
Error: login failed
Round-trips: 1   Artifacts sent: 0  received: 0
Push done, wire bytes sent: 3932  received: 309  ip: 74.208.146.128
```

When I cloned the repo or when I downloaded it, I found that it had a different project-code from the one that I entered (the cloned and downloaded repos had identical project codes, just not the one that I specified when creating the repo).

In summary, the override appears to be ignored.

I rated this only as "Important" because it is blocking my ability to start using ChiselApp rather than preventing me from getting my work done. :)

anonymous (claiming to be bencollver) added on 2023-01-26 01:24:01: (text/x-markdown)
I am experiencing this same problem.  Below are steps to reproduce it.

# Get project code from existing local repo:

```
$ fossil info lopher.fossil
...
project-code: 5247ec281a1667111e76ebd063528cd30ed4ff48
```

# Create new repo on chiselapp.com

* Log into my account bencollver on chiselapp.com
* Open https://chiselapp.com/secure/repository/create/
* At Repository name:, enter: lopher
* At Override project code..., enter 5247ec281a1667111e76ebd063528cd30ed4ff48
* Click Create Repository
* Save the username bencollver and password [saved password]

# Check the project code

* Browse to the repository URL https://chiselapp.com/user/bencollver/repository/lopher
* Click Login
* At User ID:, enter: bencollver
* At Password:, enter: [saved password]
* Click Admin
* Click SQL
* Click CONFIG Table Query
* Note that the value for project-code is 0b56a1577ad3b4b50ed298b849ef9a0e2e803e69, which does not match my input for Override project code.

# Attempt to sync local repo to chiselapp.com

```
$ fossil sync https://chiselapp.com/user/bencollver/repository/lopher -R lopher.fossil -B bencollver:[saved password]
Round-trips: 1   Artifacts sent: 0  received: 0
Error: wrong project
Round-trips: 1   Artifacts sent: 0  received: 0
Sync done, wire bytes sent: 483  received: 295  ip: A.B.C.D
```

anonymous added on 2023-01-26 01:30:17: (text/x-markdown)
Related to the following ticket:

[[22b852d25a]](https://chiselapp.com/user/rkeene/repository/flint/tktview/22b852d25a1edb07dd4c7ae19e7a68daa9663c36) - unable to sync existing repository correctly

anonymous added on 2023-01-26 01:34:51: (text/x-markdown)
Workaround given in the following ticket:

[[36fa86ac51]](https://chiselapp.com/user/rkeene/repository/flint/tktview?name=36fa86ac51) - Override project code - NOT worki