Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

esi:include not stable #212

Closed
tripodsan opened this issue May 8, 2019 · 6 comments
Closed

esi:include not stable #212

tripodsan opened this issue May 8, 2019 · 6 comments
Assignees
Labels
bug Something isn't working released

Comments

@tripodsan
Copy link
Contributor

@davidnuescheler reported, that when having several esi includes on the site, the HTML is sometimes corrupted....

@tripodsan tripodsan self-assigned this May 8, 2019
@tripodsan
Copy link
Contributor Author

adobe/helix-pipeline#227

@tripodsan
Copy link
Contributor Author

endless loop issue on typo: Schibsted-Tech-Polska/nodesi#10

@trieloff trieloff added the bug Something isn't working label May 8, 2019
@tripodsan
Copy link
Contributor Author

tripodsan commented May 8, 2019

the problem seems to be that the pipeline removes the empty tag marker from the tag. eg:

<div>
    <esi:include src="/head.plain.html" />
    <esi:include src="/header.plain.html" />
</div>

becomes

<div>
    <esi:include src="/head.plain.html">
    <esi:include src="/header.plain.html">
</esi:include></esi:include></div>

when it reaches the ESI processor....

if it's followed by a closing tag, then it works:

<div>
    <esi:include src="/head.plain.html" />
</div>

is transformed to:

<div>
    <esi:include src="/head.plain.html">
</esi:include></div>

@trieloff
Copy link
Contributor

trieloff commented May 8, 2019

Please see explanation here: adobe/helix-pipeline#317 (comment)

tl;dr: <esi include src="…" /> is invalid, use <esi include src="…" ></esi:include> instead.

@trieloff trieloff closed this as completed May 8, 2019
@tripodsan
Copy link
Contributor Author

REOPEN: there is still a bug in nodesi that produces an endless loop...

@tripodsan tripodsan reopened this May 8, 2019
tripodsan pushed a commit that referenced this issue May 13, 2019
## [2.12.8](v2.12.7...v2.12.8) (2019-05-13)

### Bug Fixes

* **esi:** use latest nodesi ([e7bfb2d](e7bfb2d)), closes [#212](#212)
* **server:** fallback to static resolution if template execution fails with 404 ([16f53cf](16f53cf)), closes [#216](#216)
* **server:** Proxy strains does not work on URL path ([a5f3f8e](a5f3f8e)), closes [#213](#213)
@adobe-bot
Copy link

🎉 This issue has been resolved in version 2.12.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working released
Projects
None yet
Development

No branches or pull requests

3 participants