Closed Bug 1583831 Opened 5 years ago Closed 5 years ago

Missing string in nsserrors.ftl for PR_END_OF_FILE_ERROR

Categories

(Firefox :: Security, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1584585

People

(Reporter: oudin+mozilla, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0

Steps to reproduce:

Tried to access this URL : https://freelibrary.host/?hash=QNxUWN5EGO3kzM1IDNiBTNkRTOmNjNjVDdz9GauknchJnYpxWZlJnZ

Actual results:

A template variable appears instead of being replaced by its value.

Expected results:

The variable of the template shouldn't appear.
It seems that the .ftl file for nss errors does not includes an entry for the PR_END_OF_FILE_ERROR.
Something like

pr-end-of-file = The peer closed unexpectedly the connection.

should be sufficient.
I'm not sure of the formulation though.
I can submit a patch when we agree on a formulation?

(Confirming the bug on nightly; stable is unaffected)

Status: UNCONFIRMED → NEW
Ever confirmed: true

Same in my end in Ubuntu 18.04 - nighlty 71.0a1, beta 70.0b10, release 69.0.1. Further I will set a component for the issue, if isn't the right one please fell free to change it.
Regards,
Liviu

Assignee: nobody → nobody
Component: Untriaged → Test
Product: Firefox → NSS
QA Contact: mwobensmith
Version: 71 Branch → other

In NSPR, the value of this variable is "Encountered end of file".
https://searchfox.org/mozilla-central/source/nsprpub/pr/src/misc/prerr.c#75

In NSS, this error is reached during the handshake in two places:
https://searchfox.org/mozilla-central/source/security/nss/lib/ssl/sslcon.c#83
https://searchfox.org/mozilla-central/source/security/nss/lib/ssl/sslsecur.c#376

So, I suggested to follow the same standard message for this VARIABLE.
Guinness, this patch looks to be outside the NSS scope and I will confirm that, but you can go ahead and push a patch for review. : )

Thanks,

Johann, can you help me find the right triage for this one? Thanks!

Assignee: nobody → nobody
Component: Test → Security
Flags: needinfo?(jhofmann)
Product: NSS → Core
QA Contact: mwobensmith
Version: other → unspecified

Technically this is a dupe of bug 1584585 (it should just stay blank if there's no translation) but feel free to re-open this if you want to add a new string anyway.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(jhofmann)
Product: Core → Firefox
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.