]> git.immae.eu Git - github/wallabag/wallabag.git/log
github/wallabag/wallabag.git
6 years agoFix tags count in tags list on baggy 3203/head
Jeremy Benoist [Sat, 10 Jun 2017 09:21:47 +0000 (11:21 +0200)] 
Fix tags count in tags list on baggy

6 years agoMerge pull request #3192 from wallabag/validate-content-fields
Jérémy Benoist [Fri, 9 Jun 2017 11:51:26 +0000 (13:51 +0200)] 
Merge pull request #3192 from wallabag/validate-content-fields

Validate language & preview picture fields

6 years agoCleanup test 3192/head
Jeremy Benoist [Fri, 9 Jun 2017 09:52:40 +0000 (11:52 +0200)] 
Cleanup test

Looks like we didn't ALWAYS get a value for language from 20minutes.
Ahem.

6 years agoConvert - to _ in language
Jeremy Benoist [Fri, 9 Jun 2017 09:42:04 +0000 (11:42 +0200)] 
Convert - to _ in language

Mostly to increase language supports

6 years agoUse Locale instead of Language
Jeremy Benoist [Fri, 9 Jun 2017 09:28:04 +0000 (11:28 +0200)] 
Use Locale instead of Language

6 years agoMerge pull request #3195 from wallabag/authentication-error
Jérémy Benoist [Fri, 9 Jun 2017 09:05:34 +0000 (11:05 +0200)] 
Merge pull request #3195 from wallabag/authentication-error

Log an error level message when user auth fail

6 years agoUse a listener to catch auth failure 3195/head
Jeremy Benoist [Fri, 9 Jun 2017 07:45:43 +0000 (09:45 +0200)] 
Use a listener to catch auth failure

6 years agoCS
Jeremy Benoist [Thu, 8 Jun 2017 20:52:26 +0000 (22:52 +0200)] 
CS

6 years agoFix test
Jeremy Benoist [Thu, 8 Jun 2017 20:51:30 +0000 (22:51 +0200)] 
Fix test

de_DE is not valid language.
Zataz doesn’t send a valid language in their content (they use `fr-FR`).

6 years agoLog an error level message when user auth fail
Jeremy Benoist [Thu, 8 Jun 2017 20:24:49 +0000 (22:24 +0200)] 
Log an error level message when user auth fail

When a user login using the form we know log an error level information with information about the user:
- username used
- IP
- User agent

For example:

> Authentication failure for user "eza", from IP "127.0.0.1", with UA: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36".

It’ll allows server admin using fail2ban to configure it to block these people if they generate too much failure authentication.

6 years agoCS
Jeremy Benoist [Thu, 8 Jun 2017 19:56:20 +0000 (21:56 +0200)] 
CS

6 years agoValidate language & preview picture fields
Jeremy Benoist [Thu, 8 Jun 2017 19:51:46 +0000 (21:51 +0200)] 
Validate language & preview picture fields

Instead of saving the value of each field right into the content without any validation, it seems better to validate them.
This might sounds obvious now we say that.

6 years agoMerge pull request #3187 from wallabag/api-client-credentials
Jérémy Benoist [Thu, 8 Jun 2017 15:24:49 +0000 (17:24 +0200)] 
Merge pull request #3187 from wallabag/api-client-credentials

Create (and return) a client after creating a new user using the API

6 years agoAdd ability to name the client 3187/head
Jeremy Benoist [Thu, 8 Jun 2017 12:25:44 +0000 (14:25 +0200)] 
Add ability to name the client

6 years agoMerge pull request #3189 from wallabag/add-discourse
Nicolas Lœuillet [Thu, 8 Jun 2017 12:02:12 +0000 (14:02 +0200)] 
Merge pull request #3189 from wallabag/add-discourse

Added link to community in issue template

6 years agoAdded link to community in issue template 3189/head
Nicolas Lœuillet [Thu, 8 Jun 2017 11:34:14 +0000 (13:34 +0200)] 
Added link to community in issue template

6 years agoCS
Jeremy Benoist [Wed, 7 Jun 2017 21:23:34 +0000 (23:23 +0200)] 
CS

6 years agoCreate a client when creating a user using the api
Jeremy Benoist [Wed, 7 Jun 2017 21:23:28 +0000 (23:23 +0200)] 
Create a client when creating a user using the api

While creating a new user using the API, we also create a new client for the current user.
So the app which just create the user can use its newly created client to configure the app.

That new client is only return after creating the user.
When calling the endpoint /api/user to get user information, the new client information won’t be return.

6 years agoMerge pull request #3093 from aaa2000/annotation-error-on-save
Nicolas Lœuillet [Wed, 7 Jun 2017 14:30:27 +0000 (16:30 +0200)] 
Merge pull request #3093 from aaa2000/annotation-error-on-save

Displays an error with an annotation with a too long quote

6 years agoMerge pull request #3181 from wallabag/api-content-patch
Jérémy Benoist [Wed, 7 Jun 2017 13:40:59 +0000 (15:40 +0200)] 
Merge pull request #3181 from wallabag/api-content-patch

Add ability to patch an entry with more fields

6 years agoRefactorize the way to save an Entry in the API 3181/head
Jeremy Benoist [Wed, 7 Jun 2017 13:07:55 +0000 (15:07 +0200)] 
Refactorize the way to save an Entry in the API

6 years agoMerge pull request #3184 from wallabag/better-way-image-extension
Jérémy Benoist [Wed, 7 Jun 2017 11:41:25 +0000 (13:41 +0200)] 
Merge pull request #3184 from wallabag/better-way-image-extension

Use an alternative way to detect images

6 years agoMerge pull request #3179 from wallabag/show-user-command
Jérémy Benoist [Wed, 7 Jun 2017 07:40:56 +0000 (09:40 +0200)] 
Merge pull request #3179 from wallabag/show-user-command

Show user command

6 years agoFix postgresql migration 3093/head
adev [Tue, 6 Jun 2017 22:12:20 +0000 (00:12 +0200)] 
Fix postgresql migration

6 years agoMerge remote-tracking branch 'origin/master' into 2.3
Jeremy Benoist [Tue, 6 Jun 2017 18:15:21 +0000 (20:15 +0200)] 
Merge remote-tracking branch 'origin/master' into 2.3

6 years agoMerge pull request #3177 from wallabag/api-create-user-update
Jérémy Benoist [Tue, 6 Jun 2017 13:25:05 +0000 (15:25 +0200)] 
Merge pull request #3177 from wallabag/api-create-user-update

API user creation behing a toggle

6 years agoMerge pull request #3165 from wallabag/it-translation-update
Jérémy Benoist [Tue, 6 Jun 2017 09:44:18 +0000 (11:44 +0200)] 
Merge pull request #3165 from wallabag/it-translation-update

Update Italian translation

6 years agoUse an alternative way to detect image 3184/head
Jeremy Benoist [Mon, 5 Jun 2017 20:54:02 +0000 (22:54 +0200)] 
Use an alternative way to detect image

When parsing content to retrieve images to save locally, we only check for the content-type of the image response.
In some case, that value is empty.
Now we’re also checking for the first few bytes of the content as an alternative to detect if it’s an image wallabag can handle.
We might get higher image supports using that alternative method.

6 years agoFix review 3179/head
Thomas Citharel [Sun, 4 Jun 2017 15:57:40 +0000 (17:57 +0200)] 
Fix review

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
6 years agoDisplays an error with an annotation with a too long quote
adev [Sun, 7 May 2017 15:21:30 +0000 (17:21 +0200)] 
Displays an error with an annotation with a too long quote

Fix #2762

6 years agoMerge pull request #3180 from wallabag/mruminski-patch-1 3177/head
Jérémy Benoist [Fri, 2 Jun 2017 19:02:07 +0000 (21:02 +0200)] 
Merge pull request #3180 from wallabag/mruminski-patch-1

Update PL translation

6 years agoAdd ability to patch an entry with more fields
Jeremy Benoist [Fri, 2 Jun 2017 18:52:49 +0000 (20:52 +0200)] 
Add ability to patch an entry with more fields

Like when we create an entry, we can now patch an entry with new fields:
- content
- language
- preview_picture
- published_at
- authors

6 years agoReturn 201 on user creation
Jeremy Benoist [Fri, 2 Jun 2017 18:03:25 +0000 (20:03 +0200)] 
Return 201 on user creation

6 years agoUpdate PL transation 3180/head
Mateusz Rumiński [Fri, 2 Jun 2017 17:35:25 +0000 (19:35 +0200)] 
Update PL transation

add missing translation

6 years agoAdd show user command
Thomas Citharel [Fri, 2 Jun 2017 14:53:03 +0000 (16:53 +0200)] 
Add show user command

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
6 years agoAdd :it: translation
Jérémy Benoist [Fri, 2 Jun 2017 09:45:45 +0000 (11:45 +0200)] 
Add :it: translation

6 years agoUse a dedicated file for wallabag config
Jeremy Benoist [Fri, 2 Jun 2017 08:46:04 +0000 (10:46 +0200)] 
Use a dedicated file for wallabag config

6 years agoAdd translation
Jeremy Benoist [Fri, 2 Jun 2017 08:27:15 +0000 (10:27 +0200)] 
Add translation

6 years agoAPI user creation behing a toggle
Jeremy Benoist [Fri, 2 Jun 2017 08:19:33 +0000 (10:19 +0200)] 
API user creation behing a toggle

I've added a toggle feature (in internal settings) so that user api creation can be disabled while form registration still can be enabled.
Also, the /api/user endpoint shouldn't require authentication. Even if we check the authentication when sending a GET request, to retrieve current user information.

I've moved all the internal settings definition to config to avoid duplicated place to define them.
I don't know why we didn't did that earlier.

6 years agoMerge pull request #2708 from jcharaoui/import-disablecontentupdate
Jérémy Benoist [Fri, 2 Jun 2017 09:26:37 +0000 (11:26 +0200)] 
Merge pull request #2708 from jcharaoui/import-disablecontentupdate

Import disableContentUpdate

6 years agoUpdate messages.it.yml 3165/head
Jérémy Benoist [Fri, 2 Jun 2017 07:17:45 +0000 (09:17 +0200)] 
Update messages.it.yml

6 years agoMerge pull request #3176 from wallabag/fix-image-download
Nicolas Lœuillet [Fri, 2 Jun 2017 07:12:11 +0000 (09:12 +0200)] 
Merge pull request #3176 from wallabag/fix-image-download

Replace images with & in url

6 years agoCS 3176/head
Jeremy Benoist [Thu, 1 Jun 2017 20:58:38 +0000 (22:58 +0200)] 
CS

6 years agoReplace images with &
Jeremy Benoist [Thu, 1 Jun 2017 20:50:33 +0000 (22:50 +0200)] 
Replace images with &

Images with `&` in the path weren’t well replaced because they might be with `&amp;` in the html instead.

Replacing `&` with `&amp;` fix the problem.

6 years agoFix option attributes 2708/head
Jeremy Benoist [Thu, 1 Jun 2017 13:44:36 +0000 (15:44 +0200)] 
Fix option attributes

6 years agoMerge pull request #3171 from wallabag/drop-fucking-sqlite
Nicolas Lœuillet [Thu, 1 Jun 2017 12:46:01 +0000 (14:46 +0200)] 
Merge pull request #3171 from wallabag/drop-fucking-sqlite

Defined MySQL as the default rdbms for wallabag

6 years agoWe don't need that getter
Jeremy Benoist [Thu, 1 Jun 2017 10:46:07 +0000 (12:46 +0200)] 
We don't need that getter

6 years agoNo need to catch that Exception
Jeremy Benoist [Thu, 1 Jun 2017 09:45:02 +0000 (11:45 +0200)] 
No need to catch that Exception

6 years agoRewrote code & fix tests
Jeremy Benoist [Thu, 1 Jun 2017 09:31:45 +0000 (11:31 +0200)] 
Rewrote code & fix tests

6 years agoMerge pull request #3172 from wallabag/more-scruti
Jérémy Benoist [Thu, 1 Jun 2017 08:29:32 +0000 (10:29 +0200)] 
Merge pull request #3172 from wallabag/more-scruti

More Scrutinizer issues fixed

6 years agoCS
Jeremy Benoist [Thu, 1 Jun 2017 07:52:09 +0000 (09:52 +0200)] 
CS

6 years agoFix tests
Jeremy Benoist [Tue, 30 May 2017 15:48:24 +0000 (17:48 +0200)] 
Fix tests

6 years agoCS
Jeremy Benoist [Tue, 30 May 2017 14:21:25 +0000 (16:21 +0200)] 
CS

6 years agoReplace Wallabag v1 error strings with v2 strings
Jerome Charaoui [Fri, 16 Dec 2016 14:46:21 +0000 (09:46 -0500)] 
Replace Wallabag v1 error strings with v2 strings

6 years agoAdd disableContentUpdate import option
Jerome Charaoui [Wed, 7 Dec 2016 20:16:49 +0000 (15:16 -0500)] 
Add disableContentUpdate import option

This commit also decouples the "import" and "update" functions inside
ContentProxy. If a content array is available, it must be passed to the
new importEntry method.

6 years agoPut default fetching error title in global config
Jerome Charaoui [Wed, 7 Dec 2016 03:27:08 +0000 (22:27 -0500)] 
Put default fetching error title in global config

6 years agoAvoid returning objects passed by reference.
Jerome Charaoui [Wed, 7 Dec 2016 03:17:44 +0000 (22:17 -0500)] 
Avoid returning objects passed by reference.

Objects are always passed by reference, so it doesn't make sense to
return an object which is passed by reference as it will always be the
same object. This change makes the code a bit more readable.

6 years agofixup! Set the right variable type 3172/head
Jeremy Benoist [Thu, 1 Jun 2017 07:36:01 +0000 (09:36 +0200)] 
fixup! Set the right variable type

6 years agoBoth parameter wasn't used in the function, removing them
Jeremy Benoist [Thu, 1 Jun 2017 07:30:38 +0000 (09:30 +0200)] 
Both parameter wasn't used in the function, removing them

6 years agoSet the right variable type
Jeremy Benoist [Thu, 1 Jun 2017 07:30:20 +0000 (09:30 +0200)] 
Set the right variable type

6 years agoPage parameter was never used in the function
Jeremy Benoist [Thu, 1 Jun 2017 07:29:16 +0000 (09:29 +0200)] 
Page parameter was never used in the function

It could have been used if we set the current page inside PreparePagerForEntries.
But we did that in each controller because we can have an OutOfRangeCurrentPageException

6 years agoChanged default database name 3171/head
Nicolas Lœuillet [Thu, 1 Jun 2017 07:17:05 +0000 (09:17 +0200)] 
Changed default database name

6 years agoMerge pull request #3137 from aaa2000/isolated-tests
Jérémy Benoist [Thu, 1 Jun 2017 05:58:17 +0000 (07:58 +0200)] 
Merge pull request #3137 from aaa2000/isolated-tests

Isolated tests

6 years agoFixed @tcitworld 's review
Nicolas Lœuillet [Wed, 31 May 2017 20:50:18 +0000 (22:50 +0200)] 
Fixed @tcitworld 's review

6 years agoDefined MySQL as the default rdbms for wallabag
Nicolas Lœuillet [Wed, 31 May 2017 20:36:21 +0000 (22:36 +0200)] 
Defined MySQL as the default rdbms for wallabag

6 years agoUpdated :it: translations
Nicolas Lœuillet [Wed, 31 May 2017 20:20:44 +0000 (22:20 +0200)] 
Updated :it: translations
Thank you @matteocoder

6 years agoMerge pull request #3077 from wallabag/add-tags-list-view
Nicolas Lœuillet [Wed, 31 May 2017 19:18:14 +0000 (21:18 +0200)] 
Merge pull request #3077 from wallabag/add-tags-list-view

Added tags on list view

6 years agoReduced border-radius for tags 3077/head
Nicolas Lœuillet [Wed, 31 May 2017 18:31:35 +0000 (20:31 +0200)] 
Reduced border-radius for tags

6 years agoMerge pull request #3106 from wallabag/api-content
Jérémy Benoist [Wed, 31 May 2017 15:26:05 +0000 (17:26 +0200)] 
Merge pull request #3106 from wallabag/api-content

Allow other fields to be send using API

6 years agoIsolated tests 3137/head
adev [Mon, 15 May 2017 18:47:59 +0000 (20:47 +0200)] 
Isolated tests

Use https://github.com/dmaicher/doctrine-test-bundle to have test isolation.

6 years agoAdd some flex magic
Thomas Citharel [Wed, 31 May 2017 12:34:46 +0000 (14:34 +0200)] 
Add some flex magic

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
6 years agoPR has been merged in graby 3106/head
Jérémy Benoist [Tue, 30 May 2017 16:11:55 +0000 (18:11 +0200)] 
PR has been merged in graby

6 years agoFix tests following rebase
Jeremy Benoist [Tue, 30 May 2017 08:08:50 +0000 (10:08 +0200)] 
Fix tests following rebase

6 years agoCS
Jeremy Benoist [Mon, 29 May 2017 08:14:01 +0000 (10:14 +0200)] 
CS

6 years agoForced date can now be a timestamp too
Jeremy Benoist [Wed, 24 May 2017 14:44:03 +0000 (16:44 +0200)] 
Forced date can now be a timestamp too

Add adding more tests for forced content

6 years agoImprove docs
Jeremy Benoist [Wed, 24 May 2017 14:02:49 +0000 (16:02 +0200)] 
Improve docs

6 years agoRemove htmlawed and use graby instead
Jeremy Benoist [Tue, 16 May 2017 21:11:20 +0000 (23:11 +0200)] 
Remove htmlawed and use graby instead

Instead of using htmlawed (which is already used in graby) use graby directly (which require some refacto on graby side).
Still needs some tests.

6 years agoReduce imported entries
Jeremy Benoist [Tue, 16 May 2017 19:17:10 +0000 (21:17 +0200)] 
Reduce imported entries

Down from 2.2 minutes to 1.39 minutes

6 years agoUse graby ContentExtractor to clean html
Jeremy Benoist [Fri, 12 May 2017 05:53:21 +0000 (07:53 +0200)] 
Use graby ContentExtractor to clean html

It might be better to re-use some graby functionalities to clean html instead of building a new system.

6 years agoAdd support for authors
Jeremy Benoist [Thu, 11 May 2017 18:10:22 +0000 (20:10 +0200)] 
Add support for authors

6 years agoAllow other fields to be send using API
Jeremy Benoist [Thu, 11 May 2017 06:14:29 +0000 (08:14 +0200)] 
Allow other fields to be send using API

Entry API can now have these new fields:
- content
- language
- preview_picture
- published_at

Re-use the ContentProxy to be able to do the same using the web UI (in the future).
htmLawed is used to clean stuff from content, I hope it’ll be enough to avoid security breach.

Lower content validation when we want to update an entry with content already defined. Before, language & content_type were required. If there weren’t provided, we re-fetched the content using graby. I think these fields aren’t required for an entry to be created. So I removed them.
Which means some import from the v1 export won’t be re-fetched since they provide content, url & title.

Also, remove liberation link from Readability import to avoid overlaping import (from wallabag v1, which had the same link)

6 years agoFixed tags display on grid view
Nicolas Lœuillet [Mon, 29 May 2017 08:59:30 +0000 (10:59 +0200)] 
Fixed tags display on grid view

6 years agoMerge pull request #3168 from wallabag/instapaper-tags-import
Nicolas Lœuillet [Wed, 31 May 2017 10:32:09 +0000 (12:32 +0200)] 
Merge pull request #3168 from wallabag/instapaper-tags-import

Add support for tag in Instapaper import

6 years agoMerge pull request #3138 from Kdecherf/2835-tags
Nicolas Lœuillet [Wed, 31 May 2017 09:48:42 +0000 (11:48 +0200)] 
Merge pull request #3138 from Kdecherf/2835-tags

Ignore ActionMarkAsRead when removing tag from entry

6 years agoMerge pull request #3161 from wallabag/scrutinizer-2.3
Nicolas Lœuillet [Wed, 31 May 2017 09:46:41 +0000 (11:46 +0200)] 
Merge pull request #3161 from wallabag/scrutinizer-2.3

Fix some Scrutinizer issues

6 years agoEnsure retrieved data are fresh 3138/head
Jeremy Benoist [Wed, 31 May 2017 09:11:02 +0000 (11:11 +0200)] 
Ensure retrieved data are fresh

6 years agoCS & improve tags assertions 3168/head
Jeremy Benoist [Wed, 31 May 2017 08:38:15 +0000 (10:38 +0200)] 
CS & improve tags assertions

6 years agoAdd support for tag in Instapaper import
Jeremy Benoist [Wed, 31 May 2017 08:38:00 +0000 (10:38 +0200)] 
Add support for tag in Instapaper import

6 years agoMerge pull request #3143 from wallabag/fix-wllbg2-import
Nicolas Lœuillet [Wed, 31 May 2017 07:08:34 +0000 (09:08 +0200)] 
Merge pull request #3143 from wallabag/fix-wllbg2-import

Fixed is_starred for wallabag v2 import

6 years agoMerge pull request #3167 from wallabag/doc-github-template
Nicolas Lœuillet [Wed, 31 May 2017 07:06:21 +0000 (09:06 +0200)] 
Merge pull request #3167 from wallabag/doc-github-template

Fix link in Github template

6 years agoFix link in Github template 3167/head
Jérémy Benoist [Wed, 31 May 2017 05:12:55 +0000 (07:12 +0200)] 
Fix link in Github template

6 years agoTagController: ignore ActionMarkAsRead when removing tag from entry
Kevin Decherf [Sun, 21 May 2017 14:35:06 +0000 (16:35 +0200)] 
TagController: ignore ActionMarkAsRead when removing tag from entry

Fixes #2835

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
6 years agoAdd tests 3143/head
Jeremy Benoist [Tue, 30 May 2017 18:15:41 +0000 (20:15 +0200)] 
Add tests

6 years agoMerge pull request #3065 from wallabag/api-creation-endpoint
Jérémy Benoist [Tue, 30 May 2017 13:26:11 +0000 (15:26 +0200)] 
Merge pull request #3065 from wallabag/api-creation-endpoint

Register through API

6 years agoUpdate :it: translation
Jérémy Benoist [Tue, 30 May 2017 12:06:38 +0000 (14:06 +0200)] 
Update :it: translation

6 years agoCS 3161/head
Jeremy Benoist [Tue, 30 May 2017 11:01:25 +0000 (13:01 +0200)] 
CS

6 years agoUse a better way to set input for command
Jeremy Benoist [Tue, 30 May 2017 10:47:25 +0000 (12:47 +0200)] 
Use a better way to set input for command

Actually use the correct to way handle that

http://symfony.com/doc/current/components/console/helpers/questionhelper.html#testing-a-command-that-expects-input

6 years agoFix some Scrutinizer issues
Jeremy Benoist [Tue, 30 May 2017 09:39:15 +0000 (11:39 +0200)] 
Fix some Scrutinizer issues

6 years agoMerge remote-tracking branch 'origin/master' into 2.3
Jeremy Benoist [Tue, 30 May 2017 07:59:06 +0000 (09:59 +0200)] 
Merge remote-tracking branch 'origin/master' into 2.3

6 years agoAvoid side effect on other tests 3065/head
Jeremy Benoist [Tue, 30 May 2017 07:57:57 +0000 (09:57 +0200)] 
Avoid side effect on other tests