Commit Graph

37039 Commits

Author SHA1 Message Date
Neeraj Gupta
c0ce7a97b1 [mob] Reduce lock expiry buffer 2025-01-10 14:29:54 +05:30
Neeraj
0a8f7a995b Fixes to make the source 32bit compatible (#4643)
## Description
I have tried to build ente server using the source and have found
various bugs that in a 64bit system would not pose an issue but when ran
on 32bit architecture would result in errors. After the fixes, Ente
works beautifully.

## Why bother merging?
I understand that Ente does not support 32bit architectures by nature
and hence there would be no point in merging this PR and solving these
issues but I have put this PR out there in hopes that it helps others
run Ente on their own desired architecture.

## Changes Description
1. `billing.go` - `storage` variables are not properly typed as int64
despite them being able to hold more than the 32bit integer limit. On a
32bit system, this will lead to an integer overflow (especially with the
default 5GB value). Typing them appropriately as an int64 will resolve
this bug and have no impacts on a 64bit execution.
2. `rate_limit.go` - The code as is will result in an unaligned 64bit
atomic operation ([read
more](https://blog.openziti.io/my-pi-day-journey-with-go-64-bit-alignment)).
In short, the fields were ordered in a way that `count` would start at
the middle of an 8-byte block which is not permitted. Aligning it by
reordering it does not affect the functional aspect but in terms of
golang's memory management, the int64 fields are now properly at an
8-byte boundary, fixing the issue.

## Other 32bit changes
To other open source tinkerers out there, if you wish to use Ente on a
32bit architecture, the dependencies will also need to be recompiled and
rebuilt as they do not have openly available docker images for arm32.
Feel free to use [my built
images](https://github.com/fourjr/ente-megarepo-arm32v7).
2025-01-10 11:19:59 +05:30
Neeraj
d8c68ed0ee [auth] Add QR Code Scanning from Saved Images for 2FA Setup (#4457) 2025-01-10 11:16:17 +05:30
Neeraj
683506a54e [mob] Improve index fetch when localIndexing is disabled (#4650)
## Description

## Tests
2025-01-10 10:57:47 +05:30
Manav Rathi
39103e6937 [web] Misc improvements (non functional) (#4654) 2025-01-09 20:13:00 +05:30
Manav Rathi
ea417bd46a H 2025-01-09 19:57:11 +05:30
Manav Rathi
5f33fe9215 F 2025-01-09 19:48:14 +05:30
Manav Rathi
fe9cccd3ab LO 2025-01-09 19:46:03 +05:30
Manav Rathi
623bb66fa7 T 2025-01-09 19:29:43 +05:30
Manav Rathi
efb15e3866 T 2025-01-09 19:19:33 +05:30
Manav Rathi
f46a0befdf T 2025-01-09 19:06:19 +05:30
Manav Rathi
1d5af6f3bc T 2025-01-09 18:59:27 +05:30
Manav Rathi
784073df7f [web] Improve font handling (#4653) 2025-01-09 18:40:51 +05:30
Manav Rathi
f3852948c8 lf 2025-01-09 18:34:56 +05:30
Manav Rathi
02a1679255 uc 2025-01-09 18:30:57 +05:30
Manav Rathi
1570cf9745 From theme 2025-01-09 18:15:38 +05:30
Manav Rathi
df8108f027 mui 2025-01-09 18:12:17 +05:30
Manav Rathi
15dbd9ee3e Unused 2025-01-09 17:49:47 +05:30
Manav Rathi
a453668138 pk 2025-01-09 17:49:47 +05:30
Manav Rathi
60c136d9a9 T 2025-01-09 17:49:47 +05:30
Manav Rathi
ef5856abe4 T 2025-01-09 17:49:47 +05:30
Manav Rathi
6123d00361 Prune 2025-01-09 17:49:47 +05:30
Manav Rathi
e4990d1fd5 MU 2025-01-09 17:49:47 +05:30
Manav Rathi
485f0e25a7 sx 2025-01-09 17:49:47 +05:30
Manav Rathi
107cfe53bf Fix 2025-01-09 17:49:47 +05:30
Manav Rathi
2c2b8c1522 sx 2025-01-09 17:49:47 +05:30
Manav Rathi
fb9f99bc1c sx 2025-01-09 17:49:47 +05:30
Manav Rathi
35a47828e9 occam 2025-01-09 17:49:47 +05:30
Manav Rathi
940f91e4e1 Set h3 default to medium
In couple of places this changes the look, but this was intentional.
2025-01-09 17:49:46 +05:30
Manav Rathi
a6e16092f9 Fix 2025-01-09 17:49:46 +05:30
Manav Rathi
6db07c30e2 Update 2025-01-09 17:49:46 +05:30
Manav Rathi
dd41b1fb29 Update 2025-01-09 17:49:46 +05:30
Manav Rathi
3302a8a6ca Update 2025-01-09 17:49:46 +05:30
Manav Rathi
830185a089 Rest 2025-01-09 17:49:46 +05:30
Manav Rathi
e9153635ea NEXT_PUBLIC_ENTE_TRACE 2025-01-09 17:49:46 +05:30
Manav Rathi
5da89e0e65 Unused 2025-01-09 17:49:46 +05:30
Manav Rathi
a52a159691 Reuse 2025-01-09 17:49:46 +05:30
Manav Rathi
e47accb866 Medium 2025-01-09 17:49:46 +05:30
Manav Rathi
bd7e300959 fw 2025-01-09 17:49:46 +05:30
Manav Rathi
5456a17e04 Use Inter Var 2025-01-09 17:49:46 +05:30
Manav Rathi
f0d7343a69 Dup and redirect 2025-01-09 17:49:46 +05:30
Manav Rathi
81d031d03e Inline 2025-01-09 17:49:46 +05:30
Manav Rathi
1a3b51eb0e iv 2025-01-09 17:49:46 +05:30
Manav Rathi
baa44d98d1 Add debug instrumentation for route change 2025-01-09 17:49:46 +05:30
Manav Rathi
307a8bba88 [web] Fix video upload on metadata parsing errors (#4651) 2025-01-09 17:46:14 +05:30
Manav Rathi
404706f1ef [web] Fix video upload on metadata parsing errors 2025-01-09 17:45:08 +05:30
Neeraj Gupta
c49aeb0be8 Lint fix 2025-01-09 17:19:52 +05:30
Neeraj Gupta
feb9414636 [mob] Bump version 2025-01-09 15:28:33 +05:30
Neeraj Gupta
54be847f80 [mob] Extract strings 2025-01-09 15:27:59 +05:30
Neeraj Gupta
0a6121e1fa [mob] Fix fetch for shared file index when local indexing is disabled 2025-01-09 15:25:40 +05:30