Skip to content

Commit

Permalink
Merge pull request #2022 from asluk/specialchars_squashed
Browse files Browse the repository at this point in the history
[sdf, usd] Fix crash when URL-encoded characters are used to generate session layer identifiers

(Internal change: 2251339)
  • Loading branch information
pixar-oss committed Oct 21, 2022
2 parents 5cd971b + 87dd545 commit abb4c1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
5 changes: 0 additions & 5 deletions pxr/usd/usd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,6 @@ pxr_install_test_dir(
DEST testUsdAppliedAPISchemas
)

pxr_install_test_dir(
SRC testenv/testUsdStage
DEST testUsdStage
)

pxr_install_test_dir(
SRC testenv/testUsdAppliedAPISchemas
DEST testUsdAppliedAPISchemas_AutoApplyDisabled
Expand Down
3 changes: 3 additions & 0 deletions pxr/usd/usd/testenv/testUsdStage.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@

class TestUsdStage(unittest.TestCase):
def test_URLEncodedIdentifiers(self):
with open("Libeccio%20LowFBX.usda", "w") as f:
f.write('#usda 1.0\ndef Xform "hello" {\n}\n')
f.close()
stage = Usd.Stage.Open("Libeccio%20LowFBX.usda")
assert stage

Expand Down
17 changes: 0 additions & 17 deletions pxr/usd/usd/testenv/testUsdStage/Libeccio%20LowFBX.usda

This file was deleted.

0 comments on commit abb4c1c

Please sign in to comment.