mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 12:05:58 +03:00
[PR #163] [CLOSED] Digest size and validation #562
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#562
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ciur/papermerge/pull/163
Author: @francescocarzaniga
Created: 10/13/2020
Status: ❌ Closed
Base:
master← Head:db📝 Commits (3)
bcd1eb7Fixed digest size and validatione50cdc8Fixed mysql requirements53f2770Fix for no actual digest📊 Changes
4 files changed (+17 additions, -7 deletions)
View changed files
📝
config/settings/base.py(+0 -2)📝
papermerge/core/migrations/0001_initial.py(+1 -1)📝
papermerge/core/models/document.py(+15 -3)📝
papermerge/core/views/documents.py(+1 -1)📄 Description
Digest database size is way too big and due to uniqueness was interfering with MySQL databases without innodb_large_prefix on. Now model performs correct validation of user+digest and MySQL constraints can be removed.
The digest is actually not generated though. It would probably be a good idea to user DocumentImporter also in the upload view and put the logic there.
Also I would have changed a few of the lengths in the model fields (1024 character file name? seems a bit excessive...) but I left it out since this is purely a design choice.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.