Skip to content

Fix for entering a backslash in the custom entry preview dialog#7851

Merged
calixtus merged 3 commits into
mainfrom
fix-7526
Jun 27, 2021
Merged

Fix for entering a backslash in the custom entry preview dialog#7851
calixtus merged 3 commits into
mainfrom
fix-7526

Conversation

@koppor

@koppor koppor commented Jun 27, 2021

Copy link
Copy Markdown
Member

This fixes #7526 (besides #7526 (comment)). When entering a backslash, JabRef does not throw an exception any more.

I thought long about using Optionals for a good code quality (see https://github.com/JabRef/jabref/pull/7539/files#r611956179). After discussing with @calixtus, I think, this is still an exertional case and should be treated as such. I changed the implementation to return the declared exception only and added tests.

The exception is already properly handled in at org.jabref.logic.layout.TextBasedPreviewLayout#setText, thus I did not need to touch that code.

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked documentation: Is the information available and up to date? If not created an issue at https://github.com/JabRef/user-documentation/issues or, even better, submitted a pull request to the documentation repository.

@calixtus calixtus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took me a while to understand. But now I think it's good!

@calixtus calixtus merged commit aa60dd6 into main Jun 27, 2021
@calixtus calixtus deleted the fix-7526 branch June 27, 2021 22:29
@wujastyk

Copy link
Copy Markdown

JabRef 5.3--2021-06-27--aa60dd6
Linux 5.4.0-77-generic amd64
Java 16.0.1
JavaFX 16+8

i.e., after today's patch, I'm afraid I still see an exception, with Customized Preview Style and also with all the others, but seemingly randomly (sometimes there's no popup, sometimes there is).

Or did I pull a version from main too soon?

image

@Siedlerchr

Copy link
Copy Markdown
Member

I think this is a different error, related to the list itself

Siedlerchr added a commit that referenced this pull request Jun 30, 2021
* upstream/main: (26 commits)
  Add unit test to four test classes (#7651)
  Fix IEEE test (#7852)
  New Crowdin updates (#7859)
  Fix markdown syntax of ADRs
  add missing l10n (#7857)
  New Crowdin updates (#7847)
  Bump mockito-core from 3.11.1 to 3.11.2 (#7856)
  Bump checkstyle from 8.43 to 8.44 (#7855)
  Fix for issue #4652: Add Find Unlinked Files Filter based on Date (#7846)
  Fix for entering a backslash in the custom entry preview dialog (#7851)
  Fixed INSPIREFetcherTest
  Fixed TitleFetcherTest
  Ignore baeldung.com and tldrlegal.com from out link checks
  New Crowdin updates (#7845)
  New Crowdin updates (#7843)
  Refactoring and addition of unit tests (#7597)
  CLI option to write XMP metadata to pdfs (#7814)
  Add query validation for web search (#7809)
  change eclipse default output dir (#7842)
  Bump lucene-queryparser from 8.8.2 to 8.9.0 (#7835)
  ...
Siedlerchr added a commit that referenced this pull request Jul 4, 2021
…kflow-for-slr-search

* upstream/main: (31 commits)
  New translations JabRef_en.properties (German) (#7868)
  Fix test "higherTrustLevelWins()" (#7866)
  Change WM_CLASS to jabref (#7858)
  [Bot] Update CSL styles (#7865)
  Add unit test to four test classes (#7651)
  Fix IEEE test (#7852)
  New Crowdin updates (#7859)
  Fix markdown syntax of ADRs
  add missing l10n (#7857)
  New Crowdin updates (#7847)
  Bump mockito-core from 3.11.1 to 3.11.2 (#7856)
  Bump checkstyle from 8.43 to 8.44 (#7855)
  Fix for issue #4652: Add Find Unlinked Files Filter based on Date (#7846)
  Fix for entering a backslash in the custom entry preview dialog (#7851)
  Fixed INSPIREFetcherTest
  Fixed TitleFetcherTest
  Ignore baeldung.com and tldrlegal.com from out link checks
  New Crowdin updates (#7845)
  New Crowdin updates (#7843)
  Refactoring and addition of unit tests (#7597)
  ...

# Conflicts:
#	src/main/resources/l10n/JabRef_en.properties
@koppor

koppor commented Jul 5, 2021

Copy link
Copy Markdown
Member Author

@wujastyk This is a different issue. Could you please open a separate issue in our issue tracker so that we can track it properly? 😇

@k3KAW8Pnf7mkmdSMPHz27

k3KAW8Pnf7mkmdSMPHz27 commented Jul 5, 2021

Copy link
Copy Markdown
Member

@koppor #7860

(now it is linked from here as well)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editing "Custom preview style" triggers exception

5 participants