Commit Graph

2352 Commits

Author SHA1 Message Date
Aina Sitraka
a3160ffec8 PHRAS-4038 fix token in form (#4484) 2024-03-19 14:11:57 +01:00
Aina Sitraka
f02e5b8e5f PHRAS-4023 hcaptcha in Phraseanet (#4473)
* use hcaptcha

* add conf

* use captcha-provider key instead of captchas-enabled in configuration

* fix test

* test

* bump back version to rc9
2024-02-29 14:59:46 +01:00
Aina Sitraka
3bf99cb5d6 PHRAS-4018: admin inspector log_docs (#4476)
* inspector log_docs

* add column owner login in api information
2024-02-17 15:57:24 +01:00
Aina Sitraka
c39659630a fix js error on change password (#4475) 2024-02-16 18:15:04 +01:00
Aina Sitraka
52faf4eb03 add instance_id in route api monitor (#4472) 2024-02-09 17:38:10 +01:00
Aina Sitraka
1fd3377e27 PHRAS-4018: admin - object inspector - more informations about a record (#4465)
* admin object inspector display record subdef

* fix multiple cancelling job

* api inspector and some fix

* admin inspector get record basket

* admin inspector get record stories

* some fix, generate token
2024-02-07 12:29:19 +01:00
Aina Sitraka
0ccd109196 PHRAS-3999: admin - databases - subdefinition - error 400 and 500 when create subdefinition (#4452)
* fix subdef creation

* add default background color in preset
2023-12-22 14:51:36 +01:00
jygaulier
e2fb405924 disable excel report for legacy download (#4449)
log async downloads
send EXPORT_CREATE event for async download (listened by ExpiringRights plugin)
2023-12-21 14:48:53 +01:00
jygaulier
8df3cf55b7 add stamp / no-stamp to export-by-email and export-by-ftp (#4437)
add default (disabled) stamp settings on new collections
add "record_edit" & "image_tools" to conf / export-stamp-choice privilege
2023-12-14 17:20:53 +01:00
Aina Sitraka
f0baae969f PHRAS-3947: Prod - Editing - restrict field content to thesaurus and or suggested values (#4426)
* add property input-disabled in field

* fix

* fix
2023-12-04 09:50:01 +01:00
jygaulier
00fc6e1c7a PHRAS-3958_download-one-asset (#4425)
* fix sync-download 1 doc ; fix stamp not removed

* remove test
2023-11-30 15:15:34 +01:00
Aina Sitraka
de6a104c8c move pusher conffiguration (#4413) 2023-11-28 09:22:03 +01:00
jygaulier
07f4462672 PHRAS-3520_stamper-enhance (#4385)
* WIP DO NOT MERGE
add: stamp subdefs of class "preview"
apply watermark on stamped subdef (cache to be fixed)
fix: admin/collection settings (new ux, clean xml)

* WIP DO NOT MERGE
add: stamp subdefs of class "preview"
apply watermark on stamped subdef (cache to be fixed)
fix: admin/collection settings (new ux, clean xml)

* conf.export_stamp_choice now supports 'manage_collection' and 'manage_databox' (and bc true) to restrict right to remove stamp.

* fix test

* WIP DO NOT MERGE
add: stamp subdefs of class "preview"
apply watermark on stamped subdef (cache to be fixed)
fix: admin/collection settings (new ux, clean xml)

* conf.export_stamp_choice now supports 'manage_collection' and 'manage_databox' (and bc true) to restrict right to remove stamp.

* fix test

* fix compatibility with download-async ; add registry/actions/stamp-subdefs=false to conf
2023-11-22 12:30:55 +01:00
Aina Sitraka
1ccba2d9a0 PHRAS-3668 subtitle notification (#4416)
* subtitle notification

* fix notif
2023-11-22 12:15:30 +01:00
Aina Sitraka
a29aa3355b PHRAS-3770: generate translation (#4414)
* generate translation

* fix
2023-11-17 16:04:09 +01:00
Aina Sitraka
ca449d6933 PHRAS-3668 happyscribe autosubtitle (#4405)
* happyscribe autosubtitle mvp

* list source lang
2023-11-17 15:43:00 +01:00
jygaulier
dc80246f56 PHRAS-3770_quarantine-enhancement (#4352)
* wip

* add: quarantine: when "adding", can copy metadata from the selected record

* fix failing test ; add test for "add & copy caption" (to be completed with field values...)

* wip

* add: quarantine: when "adding", can copy metadata from the selected record

* fix failing test ; add test for "add & copy caption" (to be completed with field values...)

* fix add button (did nothing when no doc selected at right) ; add clickable label on "copy meta" ckbox

* fix missing sb-off icons
2023-11-16 17:32:19 +01:00
jygaulier
65732343ee PHRAS-3918_subdef-substituable-setting (#4381)
* add checkbox "substituable" to admin/subdef ; bump to 4.1.8-rc7 and bump production-client ; migrate and remove conf 'registry/modules/thumb-substitution'

* bump production-client to 94

* fix test ; add test ; move "substituable" node to all subdefs (attribute)

* fix test

* fix test

* set "flatten layers"=true for new subdefs (PHRAS-3852 fix it)
2023-10-31 15:52:45 +01:00
jygaulier
179431d1b5 PHRAS-3931_phraseanet_local_id_in_api (#4400)
* add "resource_id" to record / story ; formula defined into InstanceIdAware.php

* fix tests

* fix tests

* switch to main/instance_id
2023-10-30 17:15:04 +01:00
jygaulier
7d703b690f PHRAS-3928_download_async WIP ok to test (#4386)
* WIP/POC DO NOT MERGE
use "pusher" to wait for export-by-email worker to tell client that export is done.
nb: export worker is artificially delayed by 30s !

* WIP OK TO TEST ; DO NOT MERGE

* WIP/POC DO NOT MERGE
use "pusher" to wait for export-by-email worker to tell client that export is done.
nb: export worker is artificially delayed by 30s !

* WIP OK TO TEST ; DO NOT MERGE

* cleanup

* cleanup

* better conf & cleanup

* fix typo

* fix stamp transparency (bump imagine)
fix missing cgu for one file download
better cli feedback
add (re)download link on cli

* fix test

* fix missing js feedback (when worker publish before client subscribes)

* cleanup

* fix "remove stamp" choice

* add default conf

* WIP/POC DO NOT MERGE
use "pusher" to wait for export-by-email worker to tell client that export is done.
nb: export worker is artificially delayed by 30s !

* WIP OK TO TEST ; DO NOT MERGE

* WIP/POC DO NOT MERGE
use "pusher" to wait for export-by-email worker to tell client that export is done.
nb: export worker is artificially delayed by 30s !

* WIP OK TO TEST ; DO NOT MERGE

* cleanup

* cleanup

* better conf & cleanup

* fix typo

* fix stamp transparency (bump imagine)
fix missing cgu for one file download
better cli feedback
add (re)download link on cli

* fix test

* fix missing js feedback (when worker publish before client subscribes)

* cleanup

* fix "remove stamp" choice

* add default conf

* WIP OK TO TEST generates an excel report for async download.
define some env-vars for Pusher (todo: fix entrypoint to add during install)

* fix xl formating for tabs >1
add env_vars to config build

* fix test
2023-10-30 15:08:55 +01:00
Aina Sitraka
b6a5f90fd3 PHRAS-3857 Check CSRF token on Prod and Admin forms (#4361)
* csrf token form

* add csrf token

* add csrf

* add csrf

* add csrf

* test

* test

* test

* add form token in report

* csrf token upload

* lazaret csrf form

* upload test

* lazaret test

* add csrf token

* fix test

* fix set cover publication

---------

Co-authored-by: jygaulier <gaulier@alchemy.fr>
2023-10-03 16:28:33 +02:00
Aina Sitraka
06193f2640 PHRAS-3903 Admin - object inspector - record index debug tools (#4369)
* add admin record index tools

* add databox_id filter

* add url encode

* use options provider

* return uri along with es result

---------

Co-authored-by: jygaulier <gaulier@alchemy.fr>
2023-09-07 13:51:35 +02:00
Aina Sitraka
ec4a22527d PHRAS-3890: Admin - add "auth failure" - display and purge auth failure - only for super U (#4368)
* admin auth failure

* add check superU
2023-09-05 17:25:08 +02:00
Aina Sitraka
8d67bf6653 fix export mail caption (#4363) 2023-08-09 09:42:13 +02:00
Aina Sitraka
51c71dc6f0 PHRAS-3851 Untranslated terms : in Notifications, Detailed View, Map (#4351)
* untranslated geoloc tab, validate - preview resultat

* fix notification translation

* PHRAS-2642 alt text video records
2023-07-28 14:15:15 +02:00
Aina Sitraka
59a60ba8ac PHRAS-3796 bin/setup check:system - download , lazaret, wrong repo is checked (#4349)
* fix directory check

* fix test

* PHRAS-3882 change filter order
2023-07-26 20:48:06 +02:00
Aina Sitraka
5fbf37937d PHRAS-3884 translation and advanced search field name (#4348)
* translation and advanced search field name

* fix date field label , add string
2023-07-26 16:40:17 +02:00
Aina Sitraka
98ab55e9ff PHRAS-3876 Prod - Create - Story Title fix (#4343)
* create story title fix

* fix test

* fix test

* up

* bump front version
2023-07-24 13:41:18 +02:00
Aina Sitraka
41b17868a9 use subdef label instead of subdef name (#4337) 2023-07-14 15:05:37 +02:00
Aina Sitraka
8d60402a68 secure locale cookie (#4333) 2023-07-12 11:14:09 +02:00
Aina Sitraka
43659dd994 PHRAS-3836 admin - status bits name - fix character encoding (#4298)
* fix status name input

* some fix
2023-04-20 08:53:13 +02:00
Aina Sitraka
bbd6a240e5 PHRAS-3823 : add permalink in report GUI (#4291) 2023-04-06 14:10:00 +02:00
Aina Sitraka
43115d419c PHRAS-3764: missing string in admin empty collection (#4280) 2023-03-20 13:06:55 +01:00
Aina Sitraka
c7ad97e9cd PHRAS-3827 Admin- users list - keep selection and page when validate or back in users edit (#4276)
* keep selection and page

* add last connection information
2023-03-17 12:23:05 +01:00
jygaulier
e7027c7220 PHRAS-3800_xss (#4219)
* add encode option to record::get_title ; render preview.record_title in twig

* html-escape facet values
2023-03-15 11:05:34 +01:00
Aina Sitraka
137f5944f9 fix string when send email share (#4254) 2023-02-23 13:59:22 +01:00
Aina Sitraka
9477c9b340 PHRAS-2948 Lazaret ( quarantine ) - disabled a checker cause a 500 error (#4241) 2023-02-07 10:00:37 +01:00
Aina Sitraka
d7cf5e3998 shared basket right expiration (#4207)
PHRAS-3793 : When shared basket expire, only the documents access is revoked, previews access is keep
2023-01-30 10:39:59 +01:00
Aina Sitraka
9902457c42 PHRAS-1718 add google recaptcha (#4224)
* PHRAS-1718 Add google recaptcha lib - Dont merge some quick fixes remaining

* PHRAS-1718 Add error on registration form if captcha is not filled

* Update dependencies

* PHRAS-1718 Add trials-before-display var on admin setup form. Add integer constraint on this field

* fix

* test

* test

* fix

* test

* test

* fix

* test

* fix

* test

* add captcha on forgotten password

* fix

* add patch

* add locale on captcha

* bump version

Co-authored-by: Xavier Rousset <xrousset78800@gmail.com>
2023-01-25 18:30:46 +01:00
Aina Sitraka
2d6c8a3651 PHRAS-3694 clean:user some fix (#4221)
* some fix

* generate translation

* mail:test string
2023-01-20 17:53:38 +01:00
Aina Sitraka
12d58cb5c2 PHRAS-3802 forgotten password change string (#4218)
* forgotten password change string

* fix test

* fix test
2023-01-20 11:00:49 +01:00
Aina Sitraka
a892887dd2 PHRAS-3783 Prod - Order manager - add Download Expiration date (#4191)
* add download expiration date

* add expiration info in mail

* add calendar on order-manager validation

* add a default config on patch if not exist

* fix

* add predifined expireon date

* expiration override

* fix order manager deny and sen in the same time

* patch for todo column

* bump version

record acl admin

fix pusher and date on order

* some improvement

* some fix
2022-12-20 12:42:59 +01:00
jygaulier
7e7435469d PHRAS-2995_phr-as-auth-idp-BIS (#4180)
* WIP ; allow multiple instances of some auth clients (migrate conf) ; add ps-oauth ; remove google+

* WIP ; fix ps-oauth ; fix tests

* WIP ; add api-auth to extra_hosts

* WIP ; fix yaml syntax error

* WIP ; fix yaml syntax error ; better conf sample

* WIP ; add "everyone-group"

* WIP ; add the provider-id in session

* WIP ; add getOptions() to providers (so phr/expose can filter providers)

* WIP ; add auto-logout option so logout from phr also logouts from ps-auth

* connect to expose using IDP from connected user

* WIP ; auto-logout redirects to phr home

* unnecessary session var

* unused

* fix

* catch some error

* fix navigation in train thumbnail

* update file version

* pass params in session to have constant redirect_uri ; add debug

* invalidate session --> parade test ok

* cleanup
2022-12-01 16:27:54 +01:00
Aina Sitraka
0da7b20c92 Removing Geonames error logs and worker idle message (#4170) 2022-11-08 15:13:18 +01:00
Aina Sitraka
69ccdefb51 PHRAS-3754 admin - user detail - Record ACL tab (#4148)
* record acl tab in admin

* fix email locked, limit record right to 200

* fix

* add filter

* update

* feed element, basket element

* feed list

* feed entries

* when not expand

* some improvement
2022-10-25 23:21:25 +02:00
jygaulier
c8e575c1e7 PHRAS-3765_oauth-parms-in-session (#4153)
PHRAS-3765: fetch parms from session

PHRAS-3765 : fix : pass custom parameters as argument (don't try to hack request)
2022-10-25 12:27:21 +02:00
Aina Sitraka
7ce6ce0947 PHRAS-3755 admin > connected user > disconnect user (#4150) 2022-10-08 00:42:24 +02:00
Aina Sitraka
f9de6877d2 PHRAS-3742 Admin flush session (#4131)
PHRAS-3742 : 
- flush session
- command
- redis remove by pattern
- cmd
- add log
- clean table session
2022-10-05 16:56:13 +02:00
Aina Sitraka
ae5becc090 fix quit share (#4115) 2022-09-08 19:58:10 +02:00
Aina Sitraka
d4caa47b2a PHRAS-3737 fix delete story and children (#4120) 2022-09-08 17:35:36 +02:00