Skip to content

Commit 11809d3

Browse files
committed
fix issue with identifier string generation.
#244
1 parent 2b0a938 commit 11809d3

File tree

3 files changed

+4
-26
lines changed

3 files changed

+4
-26
lines changed

Diff for: internal/common/identifier.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ func GetIdentiferByPaths(jsonpaths []string, jsonld string) ([]string, string, e
113113

114114
func url2Path(idstring string) string {
115115
u, err := url.Parse(idstring)
116-
if err != nil {
116+
if err != nil || u.Path == "" {
117117
return idstring
118118
}
119+
119120
return u.Path[1:]
121+
120122
}
121123
func encodeark(arkid string) string {
122124
arkid = strings.Replace(arkid, ":/", "_", 1)

Diff for: runConfigurations/cli batch --cfgName ecrr (1).run.xml

-25
This file was deleted.

Diff for: runConfigurations/cli batch --cfgName ecrr ecrr_submitted.run.xml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
</ENTRIES>
1919
</EXTENSION>
2020
<kind value="FILE" />
21+
<package value="github.com/gleanerio/gleaner" />
2122
<directory value="$PROJECT_DIR$" />
2223
<filePath value="$PROJECT_DIR$/cmd/glcon/main.go" />
2324
<method v="2" />

0 commit comments

Comments
 (0)