Open Closed

Bug in abp suite 4.0.1 #698


User avatar
0
Anthony_Albutt created

In all the createModal.js and editModal.js files the url: abp.appPath + 'api/app/app-service path is incorrectly pluralised (with additional 's' )

  • ABP Framework version: v4.0.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): no
  • Exception message and stack trace:Failed to load resource: the server responded with a status of 404
  • Steps to reproduce the issue: Add navigation property Dropdown

for example if your service is FlightSegmentAppService then the route is 'api/app/flight-segments/travel-request-lookup' instead of 'api/app/flight-segment/travel-request-lookup'

Below is from createModal.js and editModal.js

publicApi.onOpen(function () {
            $('#FlightSegment_TravelRequestId').select2({
                ajax: {
                    url: abp.appPath + 'api/app/flight-segments/travel-request-lookup',
                    type: 'GET',
                    data: function (params) {
                        return { filter: params.term, maxResultCount: 50 }
                    },
                    processResults: function (data) {
                        var mappedItems = _.map(data.items, function (item) {
                            return { id: item.id, text: item.displayName };
                        });

                        mappedItems.unshift({ id: '00000000-0000-0000-0000-000000000000', text: ' - ' });
                        return { results: mappedItems };
                    }
                }
            });
        });


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    We have created internal issue, It will be fixed soon.

  • User Avatar
    0
    alper created
    Support Team Director

    this is fixed in v4.1. it'll be released in a couple of days.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11