Randomnicode
4b852c53e2
Fix Test Queries for limits
2019-11-01 14:26:45 -07:00
jvoisin and GitHub
a9a7b08230
Use the try-with-resource construct where possible
2019-10-25 19:43:24 +00:00
Evan Harris and jvoisin
2da9c7310a
Changed final constant to add static
2019-10-24 19:43:51 +00:00
jvoisin and GitHub
9f6b02c5d0
Refactor a bit how we're handling avatars
...
- Remove an unnecessary cast
- Fix two stored XSS, since the name of the avatar is user-controlled
- Tighten the type of some exceptions
2019-10-24 19:39:39 +00:00
François-Xavier Thomas and GitHub
b37cbf6617
Merge pull request #1359 from randomnicode/minorfixtostatictimeunit
...
Minor fix to static time unit call
2019-10-22 21:33:39 +02:00
François-Xavier Thomas and GitHub
320e2a7b77
Merge pull request #1352 from fxthomas/1333-allow-previous-migration-checksums-for-mariadb
...
Allow previous Liquibase migration checksums for MariaDB
2019-10-22 20:27:53 +02:00
François-Xavier Thomas
78a99d5860
Allow previous Liquibase migration checksums for MariaDB
...
If someone was using MariaDB before #1188 , they were probably doing so
by using the MySQL JDBC driver to pass the migration (which had the
proper workarounds in place for some column types).
This commit assumes that the migrations done that way were valid and
produced the same result as running the MariaDB migrations after #1188 .
2019-10-21 22:00:37 +02:00
Randomnicode
acb4e033aa
Minor fix to static time unit call
2019-10-21 11:55:01 -07:00
jvoisin
f910c572c9
Use a static access in a test file, because we can.
2019-10-20 22:43:10 +02:00
François-Xavier Thomas and GitHub
2438044c5d
Merge pull request #1265 from benferreri/master
...
Add discogs search link to main album page
2019-10-20 16:08:16 +02:00
jvoisin and GitHub
d3a9a3226f
Replace deprecated Date by Calendar
...
Apparently, Date.setYear and Date.getYear are deprecated in favour of Calendar, since Java6!
Source: https://docs.oracle.com/javase/6/docs/api/java/util/Date.html
2019-10-17 21:28:40 +00:00
jvoisin and Andrew DeMaria
d17c00115a
Minor refactor of CsrfSecurityRequestMatcher
...
- use plain string comparison instead of regexp
- Simplify data structures
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-15 21:15:55 -06:00
Andrew DeMaria
d61a00e830
Merge remote-tracking branch 'origin/pr/1315'
2019-10-15 21:13:46 -06:00
Andrew DeMaria
75a280457e
Merge remote-tracking branch 'origin/pr/1327'
2019-10-15 21:09:48 -06:00
Andrew DeMaria
0d0683d066
Merge remote-tracking branch 'origin/pr/1335'
2019-10-15 21:08:39 -06:00
Andrew DeMaria
ceb6b3e598
Merge remote-tracking branch 'origin/pr/1332'
2019-10-15 21:07:42 -06:00
Evan Harris
c728d267c7
Fixed inconsistencies in SVG icon colors
2019-10-15 20:51:04 -05:00
Evan Harris
4fb9820a08
Added test case sources to checkstyle
...
Fixes #1328 .
2019-10-15 12:38:52 -05:00
Phil Hudson
0a94058a62
Fix broken update link
2019-10-15 17:24:50 +08:00
Andrew DeMaria
666bc66ec8
Merge remote-tracking branch 'origin/pr/1313'
2019-10-14 21:38:45 -06:00
jvoisin and GitHub
82fa09d198
Bump jwt
2019-10-13 23:32:45 +00:00
jvoisin
78480ab766
Remove a homemade implementation of Pair
...
Since apache-commons is already implementing a Pair
type, there is no need to reinvent the wheel.
2019-10-13 23:36:33 +02:00
jvoisin
c25e26d61a
Remove a dead file
2019-10-12 13:07:35 +02:00
jvoisin
06e36ff154
Mark a field as private
...
Since we're synchronising on playQueue, we should make
it final.
2019-10-12 12:55:58 +02:00
Evan Harris
06f81f8b97
Added separate user icon from logout icon
...
Fixes #1305 and improves navigation.
2019-10-12 00:45:25 -05:00
Andrew DeMaria
89ea120a2f
Merge remote-tracking branch 'origin/pr/1310'
2019-10-11 21:16:59 -06:00
Andrew DeMaria
357758ba4e
Merge remote-tracking branch 'origin/pr/1312'
2019-10-11 21:15:17 -06:00
Andrew DeMaria
7058b5098d
Merge remote-tracking branch 'origin/pr/1302'
2019-10-11 21:14:05 -06:00
François-Xavier Thomas
6b2c7e338d
Remove white underline from player controls
2019-10-12 01:03:51 +02:00
François-Xavier Thomas
09808b170e
Update dark icons for the 'groove' theme
2019-10-12 00:49:09 +02:00
François-Xavier Thomas
8b72964086
Display file id and path in debug scanning logs
2019-10-11 23:40:19 +02:00
jvoisin
b6414ebb6c
Simplify a condition
2019-10-11 23:27:53 +02:00
jvoisin
9f027f333e
Upgrade PlaylistService to non-deprecated methods
...
As documented here: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/util/Assert.html#notNull-java.lang.Object-java.lang.String-
2019-10-11 22:17:42 +02:00
Andrew DeMaria
3fe6e8b267
Add logger name checkstyle
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-10 00:05:35 -06:00
Evan Harris and Andrew DeMaria
f644f5a1d0
Improved handling of missing/failed transcoder
...
Fixes #659 .
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-08 18:41:55 -06:00
Andrew DeMaria and jvoisin
431b42bfb3
Ensure commons logging is excluded ( #1274 )
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-08 14:27:56 +00:00
Evan Harris
6783ced897
Removed inability to change roles for admin user
2019-10-08 06:38:57 -05:00
jvoisin and Andrew DeMaria
6f590f7740
Check the return value of delete calls
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-08 00:39:16 -06:00
Kessiler Rodrigues and Andrew DeMaria
4b3890f6ec
Replace custom circular buffer with Apache commons(CircularFifoQueue)
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-08 00:34:46 -06:00
jvoisin and Andrew DeMaria
42b4aaafc7
Use EnumMap in IndexManager
...
EnumMap are _much_ more efficient than HashMaps,
so we should use them if we can.
See here for more details: https://docs.oracle.com/javase/8/docs/api/java/util/EnumMap.html
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-08 00:29:03 -06:00
Andrew DeMaria
85f85fd88c
Make test results quieter
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-07 22:41:12 -06:00
jvoisin
1a7bb68dc6
Remove a leftover of the Radexo removal
...
This is a followup of 85e0e08d9a
2019-10-07 17:11:42 +02:00
jvoisin
da34bf0d3f
Improve Windows system detection
...
Use apache commons instead of terrifyingly fragile black magic.
2019-10-07 01:16:34 +02:00
jvoisin and Andrew DeMaria
85e0e08d9a
Remove radeox
...
Radeox is a rendering engine for an unspecified markup.
Its [website](http://radeox.org/ ) is dead, the website
of its [authors](http://www.codehaus.org/ ) is dead too,
its [last commit](https://github.com/codehaus/radeox ) was 13 years ago.
It's only used for the welcome and login messages,
as well as comments from users. If we want to have some markup parsing,
we should use something maintained with autoescaping guarantees,
instead of a piece of zombie code prone to $DEITY knows what injections.
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-06 16:02:46 -06:00
jvoisin and Andrew DeMaria
e5404648a4
Remove unnecessary exceptions and unused imports
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-06 16:00:29 -06:00
Evan Harris and Andrew DeMaria
90e6c77563
Fix incorrect absolute paths in css
...
Fixes #1256
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-06 15:55:19 -06:00
Andrew DeMaria
776bb2cfef
Switch to newer modelAttribute
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-06 15:45:32 -06:00
jvoisin and Andrew DeMaria
dddf8dc0aa
Fix some javadoc comments
...
- Remove a dangling comment
- Delete half-documented parameters
- Fix some @see/@link
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-06 15:37:54 -06:00
jvoisin
889add6848
More lambdaification
2019-10-06 15:00:34 +02:00
Andrew DeMaria
45d789b64e
Option to disable timestamps during scan
...
I accidentally deleted most of my music directory. The database was
still intact. I recovered the music directory by rolling back to a
previous ZFS snapshot and performed a reindex. However, libresonic did
not mark the deleted files as present. Turns out the file timestamp was
unchanged through the ZFS restore, and so libresonic still thought the
last indexing effort was still "good".
This adds the option to ignore file timestamps when scanning files. This
can be helpful in the case of a restore as described above. There might
be a better way to do this, as this was really a quick effort on my part
to fix my own libresonic.
This does not add a UI, just a single property that can be turned on by
editing the lilbresonic.properties file.
@fxthomas suggested this could instead be a query parameter on the
initial issue #359 . That would basically move the potential UI to the
scan page. That would be fine, but I could imagine there might be cases
where people want this setting on all the time.
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-05 21:25:17 -06:00