Skip to content

[ADD] website_hr_recruitment_ux: do not expose recruiter contact on public job form - #72

Closed
fw-bot-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-18.0-h-127390-mav-8687-fw
Closed

fw-bot-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-18.0-h-127390-mav-8687-fw

Conversation

@fw-bot-adhoc

Copy link
Copy Markdown

El endpoint público /website_hr_recruitment/check_recent_application (auth="public") agrega al aviso de postulación duplicada el nombre, el email y el teléfono del reclutador asignado (recruiter_contact, en website_hr_recruitment/controllers/main.py). Como la ruta se consulta por nombre, email, teléfono o LinkedIn, cualquier visitante del portal de empleo puede enumerar esos datos.

Este módulo overridea el controller para devolver el mismo aviso sin el contacto. En master el core ya eliminó el endpoint completo, así que el cambio se adelanta a esa decisión.

Se copia el método entero en vez de recortar el mensaje que devuelve el nativo: así un cambio de wording o de traducción aguas arriba no puede reintroducir el dato en silencio.

Test plan

  • tests/test_check_recent_application.py: el aviso no contiene nombre, email ni teléfono del reclutador.
  • Verificado que el test discrimina: sin el override falla con 'zzrecruiter@example.com' unexpectedly found in 'An application already exists for ... In case of issue, contact ...'.
  • Local 18.0: 0 failed, 0 error(s) of 1 tests.

Ticket: https://www.adhoc.inc/odoo/helpdesk.ticket/127390

Forward-Port-Of: #70

…ublic job form

The public check_recent_application route appended the recruiter name,
email and phone to the duplicate application warning, so any visitor
could enumerate them from the job form. Override it to return the same
warning without the contact, as the core does from Odoo 20 on.

X-original-commit: d69c3fe
@roboadhoc

Copy link
Copy Markdown
Contributor

Pull request status dashboard

@fw-bot-adhoc

Copy link
Copy Markdown
Author

@mav-adhoc @les-adhoc cherrypicking of pull request #70 failed.

stdout:

Auto-merging website_hr_recruitment_ux/__init__.py
Auto-merging website_hr_recruitment_ux/__manifest__.py
CONFLICT (add/add): Merge conflict in website_hr_recruitment_ux/__manifest__.py
Auto-merging website_hr_recruitment_ux/i18n/es.po
CONFLICT (add/add): Merge conflict in website_hr_recruitment_ux/i18n/es.po

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

:shipit: you can use git-fw to re-do the forward-port for you locally.

⚠️ after resolving this conflict, you will need to merge it via @roboadhoc.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants