Closed hahschaa closed 5 months ago
Hi, would you like to contribute?
Sorry, no, I do not have time to be a contributor. I would like to fix this bug for you though, but the only thing you have to do is to change the 4 into a 0. I cannot push my change to your repo since I do not have permissions.
I cannot push my change to your repo since I do not have permissions.
This is how Pull Request works. You don't need permission for commit in one repo.
Anyway, if you don't have time, it's fine.
I mean that I have a local branch with the fix, but that I cannot push it:
git push --set-upstream origin bugfix/incorrect-nsid-for-abstract-num
ERROR: Permission to nissl-lab/npoi.git denied to hahschaa.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I mean that I have a local branch with the fix, but that I cannot push it:
git push --set-upstream origin bugfix/incorrect-nsid-for-abstract-num ERROR: Permission to nissl-lab/npoi.git denied to hahschaa. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
You should fork the repo, make changes in your fork and then create a PR to main branch
Like I said, it's just a single character to change, so I think creating a fork just for that is a bit much. But here you go: https://github.com/nissl-lab/npoi/pull/1362
NPOI 2.7.0
File Type
Reproduce Steps
The issue is illustrated by the following example code: In the top example the lower bytes are used, which change between successive calls. The bottom example uses the higher bytes, which will not change quick enough.
Issue Description
I ran into an issue when creating abstract num instances. The constructor will assign an nsid based on the current tick count, but the wrong 4 bytes are used, which result in successive identical identifiers.
The issue can be found here: https://github.com/nissl-lab/npoi/blob/master/OpenXmlFormats/Wordprocessing/Numbering.cs#L974