forked from Qortal/qortal
Fixed bugs.
This commit is contained in:
parent
9c58faa7c2
commit
eea98d0bc7
@ -203,12 +203,13 @@ public class RenderResource {
|
|||||||
@SecurityRequirement(name = "apiKey")
|
@SecurityRequirement(name = "apiKey")
|
||||||
public HttpServletResponse getIndexByName(@PathParam("service") Service service,
|
public HttpServletResponse getIndexByName(@PathParam("service") Service service,
|
||||||
@PathParam("name") String name,
|
@PathParam("name") String name,
|
||||||
|
@QueryParam("identifier") String identifier,
|
||||||
@QueryParam("theme") String theme) {
|
@QueryParam("theme") String theme) {
|
||||||
if (!Settings.getInstance().isQDNAuthBypassEnabled())
|
if (!Settings.getInstance().isQDNAuthBypassEnabled())
|
||||||
Security.requirePriorAuthorization(request, name, service, null);
|
Security.requirePriorAuthorization(request, name, service, null);
|
||||||
|
|
||||||
String prefix = String.format("/render/%s", service);
|
String prefix = String.format("/render/%s", service);
|
||||||
return this.get(name, ResourceIdType.NAME, service, null, "/", null, prefix, true, true, theme);
|
return this.get(name, ResourceIdType.NAME, service, identifier, "/", null, prefix, true, true, theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -426,7 +426,7 @@ public class ArbitraryTransactionUtils {
|
|||||||
|
|
||||||
// If "build" has been specified, build the resource before returning its status
|
// If "build" has been specified, build the resource before returning its status
|
||||||
if (build != null && build == true) {
|
if (build != null && build == true) {
|
||||||
ArbitraryDataReader reader = new ArbitraryDataReader(name, ArbitraryDataFile.ResourceIdType.NAME, service, null);
|
ArbitraryDataReader reader = new ArbitraryDataReader(name, ArbitraryDataFile.ResourceIdType.NAME, service, identifier);
|
||||||
try {
|
try {
|
||||||
if (!reader.isBuilding()) {
|
if (!reader.isBuilding()) {
|
||||||
reader.loadSynchronously(false);
|
reader.loadSynchronously(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user