question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ocrd workspace validate: strange behaviour with symbolic links

See original GitHub issue

If you have an workspace, which has symbolic links in Image Source Folder (OCR-D-IMG), then it looks like that the command ocrd workspace validate creates an copy for this image additional to the symbolic link. This is only the case, if the symbolic link has an absolute path (not a relative one).

Before validate: grafik

After validate: grafik

Example workspace: reproduceStrangeValidate.zip

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mexthecatcommented, Feb 18, 2022

I think the problem is in workspace.py on line 146

url_path = Path(f.url).resolve()

If the file url is with symbolic links, resolve will return the real path and this is usually not in the workspace directory.

any chance to replace resolve with absolute?

url_path = Path(f.url).absolute()

1reaction
stefanCCScommented, Nov 25, 2022

@kba: Just tested out - works fine - many thanks 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Behavior Change in Oracle 18c/19c: No symbolic links for ...
sql AS SYSDBA after upgrade. Recreate any directory objects listed, using path names that contain no symbolic links.
Read more >
does not work at all for paths containing symbolic links on ...
General Description. The first time I observed a strange behaviour was by using terraform. terrform switched to the use of filepath.EvalSymlinks ...
Read more >
Path2College 529 Plan
The Plan Web site contains links to other Web sites. ... for suspicious and unusual behavior to help verify that they are authentic...
Read more >
Acura.com: Premium Sedans and SUVs
Discover Acura's exceptional line of cars and SUVs built for exhilarating performance and unsurpassed comfort. Enjoy top safety ratings across the entire ...
Read more >
Enabling Symlinks on Windows - Perforce
For command line clients, you need to start your command console with "Run as Administrator". This is normal behavior for Windows - see...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found