Commit Graph

2364 Commits

Author SHA1 Message Date
Aina Sitraka
e3789b6833 case download_async (#4583)
Co-authored-by: Nicolas Maillat <maillat@alchemy.fr>
2025-02-19 08:16:38 +01:00
Aina Sitraka
b33bcd930b save user filename choice when export (#4577) 2025-01-22 11:34:11 +01:00
Aina Sitraka
0e0b8d2536 fix secure cookie (#4566) 2024-12-20 18:03:04 +01:00
Aina Sitraka
59342a6975 PHRAS-3857 : Check CSRF token on account (#4556)
* fix csrf account

* fix

* csrf new application

* fix
2024-10-23 17:46:31 +02:00
jygaulier
555646232e PHRAS-4085_data-volumes-api (#4529)
* new route `/api/v3/monitor/data/?oauth_token=xxx&blocksize=16ko`

* add `unit` parameter for size restults ('', 'o', ''ko', 'mo', 'go'), default '' (=octets, same as 'o')

* new units "octet", "octets"

* fix round error (don't sum rounded values: round the real sum)

* add infos about downloads;
round sizes to 2 decimals

* add `...&details=1` url parameter to get values by collection and subdef name

* add column size in LazaretFiles table

add command bin/maintenance lazaret:set_sizes

* add api monitor data by databox

* fix size
2024-07-17 17:25:42 +02:00
jygaulier
1979ad0f79 PHRAS-4078_ExpiringRight-to-core (#4526)
* wip do not merge

* fix event EXPORT_CREATE for basket download

* fix bad conf (not a worker)

* fix bad table name
2024-07-17 17:11:55 +02:00
jygaulier
ecc5398a2d copy of https://github.com/alchemy-fr/Phraseanet/pull/4527/files (#4528) 2024-06-27 14:46:22 +02:00
Aina Sitraka
cf4267214b inspector delete application (#4521) 2024-06-11 10:51:51 +02:00
Aina Sitraka
99de0c0b37 PHRAS-4062: admin users delete and request improvement (#4509)
PHRAS-4062 clean registration when user delete

PHRAS-4062 delete user's access requests

PHRAS-4062 generate translation
2024-06-11 08:50:53 +02:00
Aina Sitraka
b8786852e0 PHRAS-4067: admin - dashboard - 500 error (#4513)
* fix error 500 on dashboard : remove unused swiftools requirement

* unused

* patch on 4.1.8
2024-06-10 18:18:34 +02:00
Aina Sitraka
5769be7799 keycloak expose refresh token (#4512) 2024-06-06 10:04:29 +02:00
Aina Sitraka
d6849fd580 PHRAS-4007: Auth provider - add keycloak provider - openid (#4462)
* keycloak provider

* add readme

* comment regenarete password

* add exclusive option to provider an column can_renew_passwor to user

* default exclusive false

* always compatible with psauth

* bump image tag .env

* bump Version to 4.1.8-rc9

* bump version to rc12

* add autoconnect
2024-04-30 14:15:56 +02:00
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