Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • I Issue Tracker
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 401
    • Issues 401
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Insights
    • Issue
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar

GitLab 15.0 has launched! Please visit Breaking changes in 15.0 and 15.0 Removals to see which breaking changes may impact your workflow.

  • crossref
  • Issue Tracker
  • Issues
  • #1612
Closed
Open
Created Dec 03, 2021 by Shayn Smulyan@ssmulyanDeveloper4 of 16 tasks completed4/16 tasks

URL in bibtex output via Content Negotiation and REST API unnecessarily encodes slash between DOI prefix and suffix as %2F

Background

This came in through the Community Forum https://community.crossref.org/t/content-negotiation-bibtex-url-field/2252

And originally posted as an issue in the habanero github from one of their users https://github.com/sckott/habanero/issues/99

Observed behavior

both curl -L -H "Accept: application/x-bibtex" "https://doi.org/10.1021/acs.jpcc.0c05161"

and

https://api.crossref.org/works/10.1021/acs.jpcc.0c05161/transform/application/x-bibtex

return the URL with the slash between the DOI prefix and suffix as "%2F" rather than "/"

url = {https://doi.org/10.1021%2Facs.jpcc.0c05161},

This behavior can be replicated across DOIs, e.g. https://api.crossref.org/works/10.7748/ns2005.04.19.31.41.c3841/transform/application/x-bibtex

url = {https://doi.org/10.7748%2Fns2005.04.19.31.41.c3841},

https://api.crossref.org/works/10.1016/0022-247X(92)90144-3/transform/application/x-bibtex

url = {https://doi.org/10.1016%2F0022-247x%2892%2990144-3},

And the same behavior is observed when using the Actions > Cite feature in CRMDS Screen_Shot_2021-12-03_at_6.47.37_PM

Expected behavior

URL should not have that slash encoded

url = {https://doi.org/10.1021/acs.jpcc.0c05161},

How urgent

Definition of ready

  • Product owner: @ppolischuk1
  • Tech lead: @dtkaczyk
  • Service:: label applied
  • Definition of done updated
  • Acceptance testing plan: staging
  • Weight applied

Definition of done

  • Unit tests identified, implemented, and passing
  • Code reviewed
  • Available for acceptance testing via a staging URL, or otherwise
  • Consider any impacts to current or future architecture/infrastructure, and update specifications and documentation as needed
  • Knowledge base reviewed and updated
  • Public documentation reviewed and updated
  • Acceptance criteria met
    • URL field in bibtex response does not include unnecessarily encoded slashes
  • Acceptance testing passed
  • Deployed to production

Notes

Edited Dec 09, 2021 by Patrick Polischuk
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking